/**
 * Estilos para la página individual de Vivienda
 * Plugin: Habitaciones La Laguna - Funcionalidad
 */

/* =============================================
   HERO SECTION
   ============================================= */
.vivienda-hero {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2c3e50;
    overflow: hidden;
}

.vivienda-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-end;
}

.vivienda-hero-content {
    padding-bottom: 60px;
    color: #fff;
}

.vivienda-title {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.vivienda-location {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 12px;
}

.vivienda-location i {
    margin-right: 6px;
    color: #f39c12;
}

.vivienda-tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0;
    line-height: 1.5;
}

.vivienda-gallery-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    z-index: 10;
}

.vivienda-gallery-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.vivienda-gallery-btn i {
    margin-right: 6px;
}

/* =============================================
   STATS BAR
   ============================================= */
.vivienda-stats-bar {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.vivienda-stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.vivienda-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vivienda-stat > i {
    font-size: 24px;
    color: #f39c12;
    width: 30px;
    text-align: center;
}

.vivienda-stat-info {
    display: flex;
    flex-direction: column;
}

.vivienda-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.vivienda-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vivienda-stat-price .vivienda-stat-value {
    color: #27ae60;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.vivienda-main-content {
    padding: 40px 0 60px;
    background: #f8f9fa;
}

.vivienda-section {
    margin-bottom: 30px;
}

.vivienda-block {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
}

.vivienda-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f39c12;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vivienda-section-title i {
    color: #f39c12;
    font-size: 20px;
}

.vivienda-section-content {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.vivienda-section-content p {
    margin-bottom: 12px;
}

/* =============================================
   GALLERY GRID
   ============================================= */
.vivienda-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.vivienda-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.vivienda-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vivienda-gallery-item:hover img {
    transform: scale(1.05);
}

.vivienda-gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.vivienda-gallery-more {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

/* =============================================
   DETAILS LIST
   ============================================= */
.vivienda-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.vivienda-details-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.vivienda-details-list li i {
    width: 20px;
    text-align: center;
    color: #f39c12;
    font-size: 16px;
}

.vivienda-details-list .detail-label {
    color: #888;
    font-size: 14px;
}

.vivienda-details-list .detail-value {
    margin-left: auto;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* =============================================
   AMENITIES GRID
   ============================================= */
.vivienda-amenities-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.vivienda-amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #444;
    transition: background 0.2s ease;
}

.vivienda-amenity:hover {
    background: #eef7ed;
}

.vivienda-amenity i {
    color: #27ae60;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* =============================================
   ROOMS SECTION
   ============================================= */
.vivienda-rooms-intro {
    color: #666;
    margin-bottom: 24px;
    font-size: 15px;
}

.vivienda-rooms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.vivienda-room-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    display: flex;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vivienda-room-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.vivienda-room-image {
    position: relative;
    width: 300px;
    min-width: 300px;
    overflow: hidden;
}

.vivienda-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vivienda-room-card:hover .vivienda-room-image img {
    transform: scale(1.05);
}

.vivienda-room-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #27ae60;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.vivienda-room-price-badge span {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.vivienda-room-info {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.vivienda-room-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.vivienda-room-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vivienda-room-title a:hover {
    color: #f39c12;
}

.vivienda-room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.vivienda-room-meta-item {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vivienda-room-meta-item i {
    color: #999;
    font-size: 14px;
}

.vivienda-room-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.vivienda-room-amenity-tag {
    background: #f0f7ff;
    color: #3b82f6;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.vivienda-room-amenity-more {
    background: #f0f0f0;
    color: #888;
}

.vivienda-room-excerpt {
    color: #777;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.vivienda-room-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f39c12;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.vivienda-room-btn:hover {
    background: #e67e22;
    color: #fff;
    text-decoration: none;
    transform: translateX(3px);
}

/* =============================================
   MAP
   ============================================= */
.vivienda-map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.vivienda-map-address {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.vivienda-map-address i {
    color: #f39c12;
    margin-right: 6px;
}

/* =============================================
   SIDEBAR
   ============================================= */
.vivienda-sidebar {
    position: sticky;
    top: 80px;
}

.vivienda-sidebar-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}

.vivienda-sidebar-card-header {
    padding: 18px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.vivienda-sidebar-card-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.vivienda-sidebar-card-body {
    padding: 24px;
}

/* Sidebar price */
.vivienda-sidebar-price {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.vivienda-sidebar-price-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.vivienda-sidebar-price-value {
    font-size: 36px;
    font-weight: 700;
    color: #27ae60;
    line-height: 1;
}

.vivienda-sidebar-price-period {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

/* Sidebar details */
.vivienda-sidebar-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.vivienda-sidebar-details li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f8f8f8;
}

.vivienda-sidebar-details li:last-child {
    border-bottom: none;
}

.vivienda-sidebar-details li i {
    color: #f39c12;
    width: 18px;
    text-align: center;
}

/* Sidebar CTA */
.vivienda-sidebar-cta {
    display: block;
    text-align: center;
    background: #f39c12;
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.vivienda-sidebar-cta:hover {
    background: #e67e22;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.vivienda-sidebar-cta i {
    margin-left: 6px;
}

/* Sidebar amenities */
.vivienda-sidebar-amenities {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vivienda-sidebar-amenities li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vivienda-sidebar-amenities li i {
    color: #27ae60;
    width: 18px;
    text-align: center;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991px) {
    .vivienda-hero {
        height: 400px;
    }

    .vivienda-title {
        font-size: 32px;
    }

    .vivienda-room-card {
        flex-direction: column;
    }

    .vivienda-room-image {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .vivienda-amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vivienda-details-list {
        grid-template-columns: 1fr;
    }

    .vivienda-sidebar {
        position: static;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .vivienda-hero {
        height: 350px;
    }

    .vivienda-title {
        font-size: 26px;
    }

    .vivienda-tagline {
        font-size: 14px;
    }

    .vivienda-hero-content {
        padding-bottom: 40px;
    }

    .vivienda-stats-grid {
        gap: 20px;
    }

    .vivienda-stat-value {
        font-size: 16px;
    }

    .vivienda-block {
        padding: 20px;
        border-radius: 8px;
    }

    .vivienda-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vivienda-gallery-featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .vivienda-amenities-grid {
        grid-template-columns: 1fr;
    }

    .vivienda-room-meta {
        gap: 10px;
    }

    .vivienda-gallery-btn {
        bottom: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vivienda-hero {
        height: 280px;
    }

    .vivienda-title {
        font-size: 22px;
    }

    .vivienda-stats-grid {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 0 10px;
    }

    .vivienda-section-title {
        font-size: 18px;
    }
}
