/* --- BASE Y CONTENEDOR PRINCIPAL --- */
.vr-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
    font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: #222;
}

/* ==========================================================================
   1. BUSCADOR HOME (ESTILO PÍLDORA AIRBNB)
   ========================================================================== */
.vr-search-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

.vr-search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 40px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    padding: 8px 8px 8px 24px;
    transition: box-shadow 0.2s ease;
    max-width: 850px;
    width: 100%;
}

.vr-search-bar:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.vr-search-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 16px;
    flex: 1;
    cursor: pointer;
    border-radius: 32px;
}

.vr-search-item:hover {
    background-color: #f7f7f7;
}

.vr-search-item label {
    font-size: 12px;
    font-weight: 800;
    color: #222;
    margin-bottom: 2px;
    cursor: pointer;
}

.vr-search-item input, 
.vr-search-item select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #717171;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
}

.vr-divider {
    width: 1px;
    height: 32px;
    background-color: #dddddd;
    margin: 0 8px;
}

.vr-search-button-circle {
    background: #E61E4D;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.vr-search-button-circle:hover {
    background: #D90B3E;
}

.vr-search-button-circle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #fff;
}


/* ==========================================================================
   2. FICHA APARTAMENTO: HEADER Y GALERÍA GRID
   ========================================================================== */
.vr-header h1 {
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.vr-meta-top {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: underline;
    margin-bottom: 24px;
}

.vr-gallery-wrapper {
    position: relative;
    margin-bottom: 48px;
    border-radius: 12px;
    overflow: hidden; 
}

.vr-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 8px;
    height: 400px; 
}

.vr-grid-col-main { height: 100%; width: 100%; }

.vr-grid-col-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 100%;
}

.vr-gallery-item {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.vr-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.3s ease, filter 0.3s;
}

.vr-gallery-item:hover img { filter: brightness(0.85); }

.vr-gallery-empty { background: #f0f0f0; width: 100%; height: 100%; }

.vr-btn-photos {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 7px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.1s;
}
.vr-btn-photos:active { transform: scale(0.96); }

.vr-no-photos {
    background: #eee;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #777;
}


/* ==========================================================================
   3. FICHA APARTAMENTO: CONTENIDO Y CARACTERÍSTICAS
   ========================================================================== */
.vr-content-wrapper {
    display: grid;
    grid-template-columns: 1.8fr 1fr; 
    gap: 80px;
}

.vr-section-title { font-size: 22px; margin: 0 0 5px 0; font-weight: 600; }
.vr-subtitle { margin: 0; color: #222; margin-bottom: 20px; font-size: 16px; }
hr { border: 0; border-top: 1px solid #ddd; margin: 32px 0; }
.vr-description { line-height: 1.6; color: #222; font-size: 16px; }

.vr-features-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vr-feature-item { display: flex; align-items: center; gap: 12px; font-size: 16px; }


/* ==========================================================================
   4. FICHA APARTAMENTO: FORMULARIO STICKY (RESERVA)
   ========================================================================== */
.vr-booking-card {
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    position: sticky;
    top: 30px; 
    background: white;
    z-index: 50;
}

.vr-price-header { margin-bottom: 24px; }
.vr-price { font-size: 22px; font-weight: 600; color: #222; }
.vr-night { font-size: 16px; color: #717171; }

.vr-input-group {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.vr-date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #b0b0b0;
}

.vr-date-field {
    padding: 10px 12px;
    position: relative;
    background: white;
}
.vr-date-field:first-child { border-right: 1px solid #b0b0b0; }

.vr-date-field label, .vr-guest-input label {
    font-size: 10px;
    font-weight: 800;
    display: block;
    margin-bottom: 2px;
}

.vr-date-field input, .vr-guest-input select {
    border: none;
    width: 100%;
    padding: 0;
    margin: 0;
    outline: none;
    font-size: 14px;
    color: #222;
    background: transparent;
    cursor: pointer;
}

.vr-guest-input { padding: 10px 12px; background: white; }

/* Sección Oculta (Datos Personales) */
#vr-personal-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    animation: fadeIn 0.4s ease;
}
#vr-personal-section h4 { margin: 0 0 15px 0; font-size: 16px; font-weight: 600; }

.vr-fields-wrapper input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box; 
}

.vr-summary { margin-top: 15px; font-size: 16px; font-weight: 600; }
.vr-row-sum { display: flex; justify-content: space-between; }

/* Botones de formulario */
.vr-submit-btn {
    width: 100%;
    background: #E61E4D;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}
.vr-submit-btn:hover { background: #D90B3E; }
.vr-submit-btn:disabled { background: #ddd; cursor: not-allowed; }
.vr-btn-active { background: #222 !important; }

.vr-secure-txt { text-align: center; margin-top: 12px; font-size: 14px; color: #717171; }
#vr-ajax-msg { color: #c13515; font-size: 13px; margin-bottom: 10px; font-weight: 500; display: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }


/* ==========================================================================
   5. RESPONSIVE (MÓVIL)
   ========================================================================== */
@media (max-width: 768px) {
    /* Buscador Home Móvil */
    .vr-search-bar { 
        flex-direction: column; 
        border-radius: 20px; 
        padding: 16px; 
        gap: 10px; 
    }
    .vr-search-item { width: 100%; border-radius: 8px; padding: 10px; }
    .vr-divider { width: 100%; height: 1px; margin: 0; }
    .vr-search-button-circle { 
        width: 100%; 
        border-radius: 8px; 
        margin-top: 10px; 
        margin-left: 0;
    }
    
    /* Ficha Apartamento Móvil */
    .vr-gallery-grid { grid-template-columns: 1fr; height: auto; }
    .vr-grid-col-sub { display: none; }
    .vr-grid-col-main { height: 250px; }
    .vr-content-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .vr-booking-card { position: static; margin-top: 20px; }
    .vr-features-list { grid-template-columns: 1fr; }
}