/* ==========================================================================
   Plaza Real · Cloudbeds — Public CSS
   Estilos para el shortcode [prc_availability_search] y los resultados
   en tarjetas estilo Booking.com.
   ========================================================================== */

/* --- Formulario de búsqueda ---------------------------------------------- */
.prc-search-form {
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 32px;
}

.prc-search-form .prc-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
}

.prc-search-form .prc-field {
	flex: 1 1 160px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.prc-search-form label {
	font-weight: 600;
	font-size: 13px;
	color: #333;
}

.prc-search-form input[type="date"],
.prc-search-form input[type="number"],
.prc-search-form select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
	background: #fff;
	width: 100%;
}

.prc-search-form .prc-submit-btn {
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 24px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	white-space: nowrap;
}

.prc-search-form .prc-submit-btn:hover {
	background: #005d8a;
}

/* --- Loading spinner ------------------------------------------------------- */
#prc-loading {
	text-align: center;
	padding: 40px;
	font-size: 15px;
	color: #555;
}

/* --- Encabezado de resultados --------------------------------------------- */
.prc-results-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #333;
}

/* --- Grid de tarjetas ------------------------------------------------------- */
.prc-results-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 300px, 1fr ) );
	gap: 24px;
}

/* --- Tarjeta individual ---------------------------------------------------- */
.prc-result-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 8px rgba( 0,0,0,0.08 );
	transition: box-shadow 0.2s, transform 0.2s;
}

.prc-result-card:hover {
	box-shadow: 0 6px 18px rgba( 0,0,0,0.14 );
	transform: translateY( -2px );
}

.prc-card-media {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.prc-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.prc-card-img-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient( 135deg, #e8ecef 0%, #d0d9e0 100% );
}

.prc-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
}

.prc-card-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.prc-card-title a {
	color: #0073aa;
	text-decoration: none;
}

.prc-card-title a:hover {
	color: #005d8a;
	text-decoration: underline;
}

.prc-card-desc {
	font-size: 13px;
	color: #666;
	line-height: 1.5;
	margin: 0;
}

.prc-card-meta {
	font-size: 13px;
	color: #555;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.prc-card-detail {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* --- Precio --------------------------------------------------------------- */
.prc-card-price {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

.prc-price-amount {
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
}

.prc-price-detail {
	font-size: 12px;
	color: #888;
	margin-left: 4px;
}

/* --- Acciones de la tarjeta ----------------------------------------------- */
.prc-card-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.prc-btn-reserve,
.prc-btn-details {
	flex: 1;
	text-align: center;
	padding: 9px 12px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.prc-btn-reserve {
	background: #0073aa;
	color: #fff !important;
	border: none;
	transition: background 0.2s;
}

.prc-btn-reserve:hover {
	background: #005d8a !important;
}

.prc-btn-details {
	background: #fff;
	color: #0073aa !important;
	border: 1px solid #0073aa;
	transition: background 0.2s;
}

.prc-btn-details:hover {
	background: #f0f6fc !important;
}

/* --- Sin resultados / error ------------------------------------------------ */
.prc-no-results,
.prc-error-msg {
	text-align: center;
	padding: 32px;
	color: #555;
	font-size: 15px;
}

.prc-error-msg {
	background: #fde8e8;
	border: 1px solid #dc3232;
	border-radius: 6px;
	color: #8b0000;
}

/* --- Responsivo ------------------------------------------------------------ */
@media ( max-width: 600px ) {
	.prc-search-form .prc-form-grid {
		flex-direction: column;
	}

	.prc-results-grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Widget de reserva por habitación — [prc_reserve_button]
   Diseño integrado: se funde con el fondo de la página (rojo o claro).
   ========================================================================== */

.prc-reserve-widget {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	background: transparent;
	border: none;
	max-width: 560px;
}

.prc-rw-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
}

.prc-rw-field {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 0 0 auto;
	width: 140px;
}

.prc-rw-field--btn {
	width: auto;
}

.prc-rw-field label {
	font-size: 10px;
	font-weight: 700;
	color: rgba(255, 255, 255, .75);
	text-transform: uppercase;
	letter-spacing: .06em;
	margin: 0;
}

/* Inputs — estilo oscuro traslúcido */
input.prc-rw-checkin,
input.prc-rw-checkout {
	padding: 0 10px !important;
	border: 1px solid rgba(255, 255, 255, .22) !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-family: inherit !important;
	color: #fff !important;
	width: 140px !important;
	box-sizing: border-box !important;
	background: rgba(0, 0, 0, .30) !important;
	transition: border-color .15s, background .15s;
	height: 34px !important;
	line-height: 34px !important;
	display: block !important;
}
input.prc-rw-checkin:focus,
input.prc-rw-checkout:focus {
	outline: none !important;
	border-color: rgba(255, 255, 255, .55) !important;
	background: rgba(0, 0, 0, .38) !important;
}
input.prc-rw-checkin::placeholder,
input.prc-rw-checkout::placeholder {
	color: rgba(255, 255, 255, .45);
	font-style: normal;
	font-size: 12px;
}
/* Icono de calendario — SVG blanco como background */
input.prc-rw-checkin,
input.prc-rw-checkout {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='1.5' y='3' width='13' height='12' rx='2' fill='none' stroke='rgba(255,255,255,.7)' stroke-width='1.5'/%3E%3Cline x1='1.5' y1='7' x2='14.5' y2='7' stroke='rgba(255,255,255,.7)' stroke-width='1.2'/%3E%3Cline x1='5' y1='1' x2='5' y2='5' stroke='rgba(255,255,255,.7)' stroke-width='1.5' stroke-linecap='round'/%3E%3Cline x1='11' y1='1' x2='11' y2='5' stroke='rgba(255,255,255,.7)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 9px center !important;
	background-size: 14px 14px !important;
	padding-right: 30px !important;
}

.prc-rw-btn {
	display: block;
	padding: 0 20px;
	height: 34px;
	line-height: 34px;
	background: #fff;
	color: #711019;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	font-family: inherit;
	letter-spacing: .01em;
	text-transform: none;
	cursor: pointer;
	transition: background .15s, color .15s;
	white-space: nowrap;
	box-sizing: border-box;
}
.prc-rw-btn:hover {
	background: #f5e8e8;
	color: #4a0c12;
}
.prc-rw-btn:disabled {
	opacity: .55;
	cursor: wait;
}

.prc-rw-error {
	font-size: 11.5px;
	color: #ffd6d6;
	margin: 2px 0 0;
}

@media (max-width: 480px) {
	.prc-rw-fields {
		flex-direction: column;
	}
	.prc-rw-btn {
		width: 100%;
		text-align: center;
	}
}

/* ── Botón simple de reserva [prc_reserve_simple] ─── */
.prc-reserve-simple {
	display: inline-block;
}
.prc-rs-btn {
	display: inline-block;
	padding: 10px 28px;
	background: #711019;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	font-family: inherit;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .15s;
	white-space: nowrap;
	box-sizing: border-box;
}
.prc-rs-btn:hover {
	background: #5a0d14;
}

/* ── Panel de selección de fechas en checkout (prc_needs_dates) ── */
#prc-needs-dates-banner {
	background: #f9f1f1;
	border: 1px solid #e0c0c2;
	border-radius: 8px;
	padding: 20px 24px 16px;
	margin-bottom: 24px;
}
.prc-nd-title {
	font-size: 16px;
	font-weight: 600;
	color: #711019;
	margin: 0 0 14px;
}
.prc-nd-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: flex-end;
}
.prc-nd-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.prc-nd-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #711019;
}
.prc-nd-input {
	height: 36px;
	padding: 0 10px;
	border: 1px solid #c9a0a4;
	border-radius: 4px;
	font-size: 13px;
	font-family: inherit;
	color: #333;
	background: #fff;
	box-sizing: border-box;
	width: 160px;
}
.prc-nd-input:focus {
	outline: none;
	border-color: #711019;
}
/* Flatpickr altInput hereda estilos del input original */
.prc-nd-input.flatpickr-input.active { display: none; }
.prc-nd-btn {
	height: 36px;
	padding: 0 20px;
	background: #711019;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s;
	white-space: nowrap;
	box-sizing: border-box;
}
.prc-nd-btn:hover { background: #5a0d14; }
.prc-nd-btn:disabled { opacity: .6; cursor: wait; }
.prc-nd-error {
	font-size: 12px;
	color: #c0392b;
	margin: 8px 0 0;
}
@media (max-width: 600px) {
	.prc-nd-fields { flex-direction: column; }
	.prc-nd-input { width: 100%; }
	.prc-nd-btn { width: 100%; }
}

/* --- MotoPress search form: ocultar huéspedes, distribuir espacio -------- */
.mphb_sc_search-wrapper .mphb-required-fields-tip,
.mphb_sc_search-wrapper .mphb_sc_search-adults,
.mphb_sc_search-wrapper .mphb_sc_search-children {
	display: none !important;
}

.mphb_sc_search-wrapper .mphb_sc_search-form {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-end !important;
	justify-content: center !important;
	gap: 40px !important;
}

.mphb_sc_search-wrapper .mphb_sc_search-check-in-date,
.mphb_sc_search-wrapper .mphb_sc_search-check-out-date,
.mphb_sc_search-wrapper .mphb_sc_search-submit-button-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

/* --- Variable pricing tiers — defined in mphb-results.css --- */
