/* ============================================
   IHS Residencia – Home page styles
   ============================================ */

/* Hero */
.home-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.home-hero .hero-swiper {
    height: 100vh;
    min-height: 520px;
}

.home-hero .swiper-slide {
    position: relative;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22, 69, 54, 0.75) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem 1.5rem;
}

.home-hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 7vw, 4.25rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.home-hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    margin: 0 0 0.25rem;
    opacity: 0.95;
    font-weight: 500;
}

.home-hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 2rem;
    opacity: 0.9;
}

.btn-hero-cta {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 100px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
    color: #fff;
    text-decoration: none;
}

.home-hero-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
    width: 10px;
    height: 10px;
    transition: opacity 0.2s, transform 0.2s;
}

.home-hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

.home-hero-prev,
.home-hero-next {
    color: #fff;
    opacity: 0.9;
}

.home-hero-prev:hover,
.home-hero-next:hover {
    opacity: 1;
}

/* Stats */
.home-stats {
    background: linear-gradient(135deg, var(--color-accent-dark) 0%, #1e5f4a 50%, #247a5f 100%);
    color: #fff;
    padding: 3rem 1.25rem;
    position: relative;
    z-index: 1;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
}

.home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.home-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.home-stat-icon-years {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
}

.home-stat-icon-guests {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z'/%3E%3C/svg%3E");
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
}

.home-stat-icon-rooms {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25'/%3E%3C/svg%3E");
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
}

.home-stat-icon-security {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23fff' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z'/%3E%3C/svg%3E");
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
}

.home-stat-num {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-stat-label {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Intro */
.home-intro {
    padding: 5rem 0;
    background: var(--color-bg);
}

.home-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.home-intro-media {
    position: relative;
}

.home-intro-image-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.12);
}

.home-intro-image-wrap::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 24px;
    bottom: 24px;
    border: 3px solid var(--color-accent);
    border-radius: 16px;
    z-index: 0;
}

.home-intro-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
}

.home-intro-content {
    padding-left: 0.5rem;
}

.home-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(30, 95, 74, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.home-badge-center {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.home-heading {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--color-text);
    line-height: 1.2;
}

.home-heading::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
    border-radius: 2px;
    margin-top: 0.5rem;
}

.home-heading-center {
    text-align: center;
}

.home-heading-center::after {
    margin-left: auto;
    margin-right: auto;
}

.home-intro-tagline {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.home-intro-text {
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1.5rem;
}

/* Why */
.home-why {
    padding: 4.5rem 0;
    background: var(--color-surface);
}

.home-why-intro {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Nearby */
.home-nearby {
    padding: 5rem 0;
    background: var(--color-bg);
}

.home-nearby-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.home-nearby-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    background: var(--color-accent-dark);
    background-image: var(--nearby-bg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home-nearby-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 35, 28, 0.97) 0%, rgba(22, 69, 54, 0.9) 35%, rgba(22, 69, 54, 0.5) 60%, transparent 100%);
}

.home-nearby-card-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem 1.25rem;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.home-nearby-card-body h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fff;
}

.home-nearby-card-body ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.98);
}

.home-nearby-card-body li {
    padding: 0.2rem 0;
    padding-left: 1.1rem;
    position: relative;
}

.home-nearby-card-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-gold);
}

.home-nearby-gallery {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.home-nearby-gallery-item {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

.home-nearby-gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.home-nearby-gallery-item:hover img {
    transform: scale(1.06);
}

.home-nearby-gallery-item figcaption {
    padding: 0.75rem 1rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Choose */
.home-choose {
    padding: 4.5rem 0;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.home-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0 2rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.home-choose-card {
    background: var(--color-surface);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-choose-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.home-choose-icon {
    display: block;
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(30, 95, 74, 0.12);
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
}

.home-choose-icon:not([class*="home-choose-icon-"]) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e5f4a' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25'/%3E%3C/svg%3E");
}

.home-choose-icon-security {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e5f4a' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z'/%3E%3C/svg%3E");
}

.home-choose-icon-wifi {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e5f4a' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8.288 15.038a5.25 5.25 0 017.424 0M5.106 11.856c3.807-3.808 9.98-3.808 13.788 0M3.128 8.67c5.683-5.683 14.917-5.683 20.6 0M12 20.25a.75.75 0 001.5 0v-4.5a.75.75 0 00-1.5 0v4.5z'/%3E%3C/svg%3E");
}

.home-choose-icon-location {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e5f4a' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 10.5a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z'/%3E%3C/svg%3E");
}

.home-choose-icon-value {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231e5f4a' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 6v12m-3-2.818l.879.659c1.171.879 3.07.879 4.242 0 1.172-.879 1.172-2.303 0-3.182C13.536 12.219 12.768 12 12 12c-.725 0-1.45-.22-2.003-.659-1.106-.879-1.106-2.303 0-3.182s2.9-.879 4.006 0l.415.33M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}

.home-choose-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.home-choose-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-muted);
}

.home-choose-content {
    max-width: 32rem;
    margin: 2rem auto 0;
    text-align: left;
    line-height: 2;
    color: var(--color-muted);
    font-size: 1.02rem;
}

.home-choose-content br + * {
    margin-top: 0.25rem;
}

/* Rooms */
.home-rooms {
    padding: 5rem 0;
    background: var(--color-bg);
}

.home-rooms-intro {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.home-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.home-room-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.home-room-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    background: var(--color-gold);
    color: #fff;
    border-radius: 100px;
}

.home-room-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.home-room-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-room-card:hover .home-room-card-img img {
    transform: scale(1.06);
}

.home-room-card-body {
    padding: 1.5rem;
}

.home-room-card-body h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.home-room-desc {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.home-room-rates {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    font-size: 1rem;
}

.home-room-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-room-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.home-rooms-more {
    text-align: center;
    margin: 0;
}

/* CTA */
.home-cta {
    position: relative;
    padding: 5rem 2rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.home-cta-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.home-cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22, 69, 54, 0.88) 0%, rgba(30, 95, 74, 0.82) 100%);
}

.home-cta-inner {
    position: relative;
    z-index: 1;
}

.home-cta-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #fff;
}

.home-cta-text {
    font-size: 1.1rem;
    margin: 0 0 2rem;
    opacity: 0.95;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.home-cta .btn-cta {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 100px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-cta .btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
    color: var(--color-accent);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .home-nearby-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .home-rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .home-hero .hero-swiper {
        min-height: 480px;
    }
}

@media (max-width: 900px) {
    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .home-intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .home-intro-content {
        padding-left: 0;
    }

    .home-intro-image-wrap::before {
        display: none;
    }

    .home-intro {
        padding: 3.5rem 0;
    }

    .home-why,
    .home-nearby,
    .home-rooms,
    .home-cta {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .home-hero .hero-swiper {
        min-height: 420px;
    }

    .home-hero-content {
        padding: 2rem 1rem;
        min-height: 420px;
    }

    .home-hero-title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .home-hero-subtitle {
        font-size: 1rem;
    }

    .home-stats {
        padding: 2rem 1rem;
    }

    /* Mobile: show text overlay cards, hide image gallery */
    .home-nearby-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        min-height: auto;
    }

    .home-nearby-card {
        min-height: 260px;
    }

    .home-nearby-card-body {
        padding: 1.25rem 1rem;
    }

    .home-nearby-card-body h3 {
        font-size: 1.1rem;
    }

    .home-nearby .home-nearby-gallery {
        display: none !important;
    }

    .home-rooms-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-room-actions {
        flex-direction: column;
    }

    .home-room-actions .btn {
        min-width: 100%;
        text-align: center;
    }

    .home-rooms-more {
        margin-top: 1.5rem;
    }

    .home-cta-bg {
        background-position: center;
    }

    .home-cta-inner {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .home-hero .hero-swiper {
        min-height: 380px;
    }

    .home-hero-content {
        padding: 1.5rem 0.875rem;
        min-height: 380px;
    }

    .home-hero-title {
        font-size: 1.85rem;
    }

    .home-hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 0.15em;
        margin-bottom: 1.5rem;
    }

    .btn-hero-cta {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
    }

    .home-stats {
        padding: 1.25rem 0.5rem;
    }

    .home-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
        max-width: 100%;
    }

    .home-stat {
        gap: 0.25rem;
    }

    .home-stat-icon {
        width: 32px;
        height: 32px;
        background-size: 18px;
    }

    .home-stat-num {
        font-size: 1rem;
        line-height: 1.2;
    }

    .home-stat-label {
        font-size: 0.6rem;
        letter-spacing: 0.02em;
        line-height: 1.2;
    }

    .home-intro {
        padding: 2.5rem 0;
    }

    .home-heading {
        font-size: 1.6rem;
    }

    .home-why,
    .home-nearby,
    .home-rooms {
        padding: 2.5rem 0;
    }

    .home-cta-inner {
        padding: 2.5rem 1rem;
    }

    .home-cta-title {
        font-size: 1.6rem;
    }
}
