/* ===================================
   Stay 메인 페이지 스타일
   모바일 우선 반응형 디자인
   =================================== */

:root {
    --primary-orange: #FF8400;
    --primary-orange-hover: #FF7300;
    --text-black: #0A0A0A;
    --text-gray: #797979;
    --text-dark-gray: #4E4E4E;
    --bg-white: #FFFFFF;
    --bg-light-gray: #F3F4F6;
    --bg-beige: #FFF8EF;
    --bg-dark: #2A2A2A;
    --border-gray: #DFE4EA;
}

body {
    background: #fff !important;
}

/* Global Focus Reset */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}


/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    /* 최적화를 위한 CSS */
    will-change: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* 부드러운 재생을 위한 하드웨어 가속 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* 비디오가 로드되기 전까지 숨김 */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.hero-bg-video.video-loaded {
    opacity: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 32px 40px;
    max-width: 980px;
    margin: 0 auto;
}

.hero-title-wrapper {
    margin-bottom: 40px;
    text-align: left;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: var(--bg-white);
    margin: 0;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
}

/* PC 전용 히어로 섹션 스타일 */
@media (min-width: 769px) {
    .hero-section {
        height: auto;
        min-height: 0;
        max-height: 768px;
    }

    .hero-background {
        position: relative;
        height: auto;
    }

    .hero-bg-video {
        position: relative;
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
    }

    .hero-content {
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%);
        padding-bottom: 0px;
    }

    .hero-title-wrapper {
        margin-bottom: 90px;
    }

    .hero-title {
        font-size: 72px;
    }
}

/* ===================================
   Search Filter Section (Redesigned)
   =================================== */
.search-filter-section {
    position: relative;
    z-index: 100;
    margin-top: -51.8px;
    /* 히어로 영상과 겹치게 (103.6 / 2) */
    padding: 0 16px;
    width: 100%;
}

.search-filter-section.sticky {
    position: fixed;
    left: 0;
    right: 0;
    margin-top: 0;
    padding: 10px 16px;
    background: transparent;
}

.search-filter-placeholder {
    height: 0;
    display: none;
}

.search-filter-section.sticky+.search-filter-placeholder {
    display: block;
}

.search-filter-container {
    max-width: 980px;
    margin: 0 auto;
    background: #FDFEFF;
    border-radius: 1000px;
    height: 103.6px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
    border: 1.4px solid rgba(174, 176, 178, 0.35);
    box-shadow: 0px 2.8px 16.8px 0px rgba(7, 7, 8, 0.07), 0px 4.2px 44.8px 0px rgba(7, 7, 8, 0.07);
}

.search-filter-container .vertical-divider {
    width: 1.4px;
    height: 44.8px;
    background: rgba(174, 176, 178, 0.35);
    flex-shrink: 0;
}

.search-btn-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 34px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 1000px;
    position: relative;
}

.search-btn-wrapper:hover {
    background: rgba(0, 0, 0, 0.03);
}

.search-btn-wrapper .label-group {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.search-btn-wrapper .label-group i,
.search-btn-wrapper .label-group svg {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn-wrapper .label-text {
    font-size: 16px;
    color: #6B7280;
    font-family: 'Pretendard', sans-serif;
}

.search-btn-wrapper .value-text {
    font-size: 18px;
    font-weight: 500;
    color: #0A0A0A;
    font-family: 'Pretendard', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-btn-wrapper .value-text input {
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 500;
    color: #0A0A0A;
    width: 100%;
    cursor: pointer;
    outline: none;
}

/* Budget Slider Styles */
.budget-slider-container {
    width: 200px;
    padding-bottom: 4px;
}

.budget-slider-wrapper {
    position: relative;
    height: 6px;
    background: #DEE2E6;
    border-radius: 100px;
    margin-top: 8px;
}

.budget-slider-fill {
    position: absolute;
    height: 100%;
    background: #0A0A0A;
    border-radius: 100px;
}

.slider-knob {
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 2;
}

.slider-knob.min {
    left: 0;
    margin-left: -6px;
}

.slider-knob.max {
    right: 0;
    margin-right: -6px;
}

.slider-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.slider-step-text {
    font-size: 12px;
    color: #6B7280;
    font-family: 'Pretendard', sans-serif;
}

.search-action-btn {
    width: 78.4px;
    height: 78.4px;
    background: #18191A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.4px solid rgba(174, 176, 178, 0.35);
    box-shadow: 0px 2.8px 16.8px 0px rgba(7, 7, 8, 0.07), 0px 4.2px 44.8px 0px rgba(7, 7, 8, 0.07);
    cursor: pointer;
    transition: transform 0.2s;
    margin-left: 8px;
}

.search-action-btn:hover {
    transform: scale(1.05);
}

.search-action-btn svg {
    width: 33.6px;
    height: 33.6px;
}

/* Dropdown */
.location-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 250px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    z-index: 100;
}

.location-dropdown.active {
    display: block;
}

.location-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.location-dropdown li {
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #4E4E4E;
    transition: background 0.2s;
}

.location-dropdown li:hover {
    background: #F3F4F6;
    color: #0A0A0A;
}

@media (max-width: 768px) {
    .search-filter-section {
        margin-top: -30px;
        padding: 0 8px;
        display: flex;
        justify-content: center;
    }

    .search-filter-container {
        height: 60px;
        width: 100%;
        max-width: 480px;
        padding: 0 4px;
        border-radius: 1000px;
        gap: 2px;
    }

    .search-btn-wrapper {
        padding: 0 2px;
        flex: 1;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0;
        min-width: 0;
    }

    .search-btn-wrapper .label-group {
        display: none;
        /* Hide icon and label */
    }

    .search-btn-wrapper .value-text {
        font-size: 13px;
        line-height: 1.2;
        width: 100%;
        text-align: center;
        font-weight: 500;
        padding: 0 2px;
        word-break: keep-all;
    }

    #dateDisplayText {
        font-size: 12px;
        line-height: 1.1;
        display: block;
    }

    #dateDisplayText.selected {
        font-size: 11px;
    }

    .search-filter-container .vertical-divider {
        display: block;
        height: 20px;
        align-self: center;
        opacity: 0.5;
    }

    .search-action-btn {
        width: 42px;
        height: 42px;
        margin-left: 2px;
    }

    .search-action-btn svg {
        width: 18px;
        height: 18px;
    }
}


/* ===================================
   Section 공통 스타일
   =================================== */
.section-container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
    display: block;
}

.section-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: var(--text-black);
    margin: 0 0 16px;
}

.section-subtitle {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Intro Section (Redesigned)
   =================================== */
.intro-section {
    background: var(--bg-white);
    padding: 40px 0 80px 0;
    overflow: hidden;
}

.intro-section .section-header {
    margin-bottom: 60px;
    padding: 0 16px;
}

.intro-section .section-label-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.intro-section .section-label {
    color: #6B7280;
    font-size: 16px;
    margin-bottom: 0;
    font-family: 'Pretendard', sans-serif;
}

.intro-section .label-line {
    flex: 1;
    max-width: 300px;
    height: 1px;
    background-color: #6B7280;
}

.intro-section .section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #1E1E1E;
}

/* property-slider-outer */
.property-slider-outer {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    padding: 0 33px 0 0;
}

.property-cards-container {
    overflow: visible;
}

.property-cards-wrapper {
    margin-top: 0;
    padding: 0;
}

.property-swiper {
    padding-bottom: 0;
    overflow: visible;
}

.property-card {
    background: #3D2A24;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 405px;
    width: 580px;
    box-shadow: none;
    transition: opacity 0.5s ease;
}

.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-next) .property-card {
    opacity: 0.3;
}

.property-card-image {
    height: 100%;
    border-radius: 16px;
}

.property-card-image img.content-img {
    position: absolute;
    width: 723px;
    height: 528px;
    max-width: none;
    object-fit: cover;
    top: 50%;
    left: -66px;
    transform: translateY(-50%);
}

.property-card-image .overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0) 40%, rgba(0, 0, 0, 0.7) 82%);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    color: white;
}

.property-card-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    line-height: 1.4;
    color: #ffffff;
}

.property-card-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: #ffffff;
    opacity: 0.9;
}

.property-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.64);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 8px 12px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: inset 0px -10px 33px -16px rgba(255, 255, 255, 0.12);
}

.property-location {
    font-size: 16px;
    color: #FFFCFA;
    font-family: 'Pretendard', sans-serif;
}

.badge-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Custom Navigation Buttons */
.property-slider-outer .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.property-slider-outer .nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.property-slider-outer .nav-btn.prev-btn {
    left: 33px;
    z-index: 21;
}

.property-slider-outer .nav-btn.next-btn {
    right: 33px;
    z-index: 21;
}

.property-slider-outer .nav-btn svg {
    width: 64px;
    height: 64px;
}

/* 기존 content 스타일 제거 (더 이상 사용하지 않음) */
.property-card-content {
    display: none;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: var(--text-black);
    background: var(--bg-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-pagination-bullet {
    background: var(--text-black);
}

/* ===================================
   Rooms Section
   =================================== */
.rooms-section {
    background: #f3f4f6;
    padding: 80px 0;
}

.rooms-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.rooms-section .section-title {
    font-size: 42px;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Room Card Design */
.room-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 342px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.05);
    /* subtle shadow like in reference */
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 22px 57px -2px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Slider Area */
.room-thumbnail-area {
    height: 265px;
    position: relative;
    overflow: hidden;
    background: #eeeeee;
}

.room-thumbnail-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-thumbnail-area img {
    transform: scale(1.05);
}

/* Pet Badge */
.pet-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #fff7da;
    border: 1px solid #ffffff;
    border-radius: 100px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pet-badge span {
    color: #f85700;
    font-size: 12px;
    font-weight: 700;
}

.pet-badge .pet-badge-icon {
    flex-shrink: 0;
    display: block;
    width: 16px !important;
    height: 16px !important;
    object-fit: contain;
}

/* Image Indicator */
.image-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
    z-index: 5;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    z-index: 10;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.8);
}

.room-card:hover .slider-nav {
    opacity: 1;
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

.slider-nav svg {
    width: 20px;
    height: 20px;
}

/* Room Info Area */
.room-info-area {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.room-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.room-title {
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.room-price-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

.room-price {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
}

.room-duration {
    font-size: 14px;
    color: #6b7280;
}

.room-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-specs {
    display: flex;
    gap: 4px;
    align-items: center;
    opacity: 0.72;
}

.room-spec-item {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #a65e3b;
    font-size: 14px;
}

.room-spec-item svg {
    width: 16px;
    height: 16px;
}

.room-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.room-location svg {
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.metro-dots {
    display: flex;
    gap: 4px;
}

.metro-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
}

.station-name {
    font-size: 14px;
    color: #6b7280;
}

/* Loading & More Button */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #6b7280;
}

.rooms-more {
    text-align: center;
    margin-top: 40px;
}

.btn-rooms-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0a0a0a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-rooms-all:hover {
    background: #1a1a1a;
}

.btn-rooms-all svg {
    width: 12px;
    height: 18px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 16px;
    }
}

@media (max-width: 768px) {
    .rooms-section {
        padding: 60px 0;
    }

    .rooms-section .section-title {
        font-size: 28px;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .room-card {
        height: auto;
        min-height: 280px;
    }

    .room-thumbnail-area {
        height: 230px;
    }
}

/* ===================================
   Experience Section (Redesigned)
   =================================== */
.experience-section {
    background: var(--bg-white);
    padding: 40px 0 0px;
}

.experience-section .section-header {
    text-align: left;
    margin-bottom: 16px;
    max-width: 1300px;
    margin: 0 auto 16px;
    padding: 0 16px;
}

.experience-section .section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0A0A0A;
}

.experience-section .section-container {
    padding-top: 0;
}

.experience-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 0;
}

.experience-card {
    background: #FFF9F0;
    border-radius: 8px;
    border: 1px solid #DFE4EA;
    display: flex;
    align-items: center;
    padding: 0;
    height: 56px;
    width: calc(25% - 12px);
    transition: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.experience-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #DFE4EA;
}

.experience-icon-box {
    width: 48px;
    height: 48px;
    background-color: #0A0A0A;
    border-radius: 4px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.experience-title {
    padding-left: 12px;
    font-size: 16px;
    color: #0A0A0A;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    background: var(--bg-dark);
    padding: 60px 0;
    color: var(--bg-white);
}

.features-section .section-title,
.features-section .section-subtitle {
    color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-black);
    margin: 0 0 8px;
}

.feature-description {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Community Section
   =================================== */
.community-section {
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-beige));
    padding: 60px 0;
}

.community-header {
    text-align: center;
    margin-bottom: 40px;
}

.community-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.community-spaces-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.space-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.space-item:hover,
.space-item.active {
    background: rgba(255, 132, 0, 0.1);
}

.space-item.active .space-name {
    color: var(--primary-orange);
    font-weight: 700;
}

.space-icon {
    font-size: 24px;
}

.space-name {
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    color: var(--text-black);
    transition: all 0.3s;
}

.community-images {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.community-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.community-image.active {
    opacity: 1;
}

.community-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   Review Section
   =================================== */
.review-section {
    background: var(--bg-beige);
    padding: 60px 0;
}

.review-overview {
    text-align: center;
    margin-bottom: 40px;
}

.review-rating {
    margin-bottom: 8px;
}

.rating-score {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: var(--text-black);
}

.rating-total {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    color: var(--text-gray);
}

.rating-label {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.review-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    color: var(--text-black);
    line-height: 1.6;
    margin: 0 0 16px;
}

.review-author {
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
}

/* ===================================
   FAQ Section
   =================================== */
/* ===================================
   FAQ Section (Refining to match reference)
   =================================== */
.faq-section {
    background: #fff;
    padding: 80px 0;
}

.faq-section .section-container {
    display: flex;
    gap: 70px;
    /* PC layout gap */
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sidebar */
.faq-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.faq-sidebar-label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.faq-sidebar-label span {
    font-size: 16px;
    color: #6b7280;
    font-family: 'Pretendard', sans-serif;
}

.faq-sidebar-label .line {
    flex: 1;
    height: 1px;
    background: #6b7280;
}

.faq-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.faq-sidebar-title {
    font-size: 48px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.2;
    margin: 0;
}

.btn-consultation {
    width: fit-content;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #0a0a0a;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0a0a0a;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-consultation:hover {
    background: #0a0a0a;
    color: #fff;
}

/* List */
.faq-list {
    flex: 1;
    max-width: 756px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: none;
}

.faq-item {
    background: #F9FAFB;
    /* Gray background for answer area */
    border: 1px solid #dfe4ea;
    border-radius: 54px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-question {
    width: 100%;
    height: 100px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    background: #fff;
    /* Question part is white */
    border: none;
    cursor: pointer;
    text-align: left;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.faq-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    margin-right: 16px;
    font-family: 'Outfit', sans-serif;
}

.q-icon {
    background: #0A0A0A;
}

.a-icon {
    background: #F85700;
}

.faq-q-text {
    flex: 1;
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1.4;
    word-break: keep-all;
}

.faq-arrow-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-arrow-icon svg {
    width: 100%;
    height: 100%;
    stroke: #0a0a0a;
}

.faq-item.active .faq-arrow-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px 24px 30px;
    background: transparent;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer-inner {
    display: flex;
    align-items: flex-start;
}

.faq-a-content {
    flex: 1;
}

.faq-a-text {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    color: #0a0a0a;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
    font-weight: 400;
}

/* Mobile Responsive Override within Section */
@media (max-width: 1024px) {
    .faq-section .section-container {
        flex-direction: column;
        gap: 40px;
    }

    .faq-sidebar {
        position: static;
        width: 100%;
        flex: none;
        align-items: flex-start;
        text-align: left;
    }

    .faq-sidebar-label {
        width: 200px;
    }

    .faq-sidebar-title {
        font-size: 36px;
    }

    .faq-list {
        width: 100%;
        max-width: none;
    }

    .faq-question {
        height: 80px;
        padding: 0 16px;
    }

    .faq-icon-circle {
        width: 32px;
        height: 32px;
        font-size: 16px;
        margin-right: 12px;
    }

    .faq-q-text {
        font-size: 18px;
    }

    .faq-item,
    .faq-item.active {
        border-radius: 40px;
    }

    .faq-answer {
        padding: 15px 16px 25px;
    }

    .faq-a-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq-answer {
        padding: 20px 20px 20px 20px;
    }

    .faq-q-text {
        font-size: 16px;
    }
}

/* ===================================
   반응형 디자인 (태블릿 이상)
   =================================== */
/* 모바일 전용 스타일 */
@media (max-width: 767px) {
    .search-filter-section {
        margin-top: -40px;
        padding: 0 30px;
    }

    .hero-search-bar {
        padding: 10px 16px;
        border-radius: 50px;
    }

    .search-bar-container {
        gap: 0;
    }

    .search-field {
        /* flex: 1; */
        min-width: 0;
    }

    .search-input,
    .search-input-btn {
        font-size: 14px;
        padding: 6px 8px;
    }

    .search-input-btn {
        padding: 6px 0;
    }

    .search-divider {
        height: 24px;
        margin: 0 8px;
    }

    .btn-search-main {
        width: 40px;
        height: 40px;
    }

    .search-icon {
        font-size: 18px;
    }

    .property-cards-wrapper {
        padding: 0;
        margin-left: -16px;
        margin-right: -16px;
        width: calc(100% + 32px);
    }

    .property-swiper {
        padding-right: 32px;
        padding-left: 18px;
    }

    .property-card {
        width: calc(100vw - 32px);
        max-width: none;
    }

    .property-card-image {
        height: 450px;
        border-radius: 0;
    }

    .property-card-overlay {
        padding: 20px 16px 16px;
    }

    .property-card-title {
        font-size: 18px;
    }

    .property-card-description {
        font-size: 13px;
    }

    .property-badge {
        top: 12px;
        right: 12px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        bottom: 10px !important;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 56px;
    }

    .search-filter-section {
        margin-top: -80px;
        padding: 0 32px;
    }

    .hero-search-bar {
        padding: 16px 24px;
    }

    .search-input,
    .search-input-btn {
        font-size: 16px;
        padding: 10px 16px;
    }

    .search-divider {
        height: 40px;
        margin: 0 16px;
    }

    .btn-search-main {
        width: 56px;
        height: 56px;
    }

    .property-card-image {
        height: 500px;
    }

    .search-bar-container {
        flex-direction: row;
        align-items: flex-end;
        gap: 0;
    }

    .search-field {
        flex: 1;
        padding: 0 16px;
        border-right: 1px solid #E5E7EB;
    }

    .search-field:last-child {
        border-right: none;
    }

    .search-field.search-btn-field {
        flex: 0 0 auto;
        padding-left: 16px;
    }

    .btn-search-main {
        width: auto;
        min-width: 160px;
        padding: 16px 32px;
    }

    .section-title {
        font-size: 42px;
    }

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

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-content {
        flex-direction: row;
        gap: 60px;
    }

    .community-spaces-list {
        flex: 0 0 300px;
    }

    .community-images {
        flex: 1;
        height: 500px;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-header {
        text-align: left;
    }

    .faq-list {
        max-width: 756px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        padding: 0 0px 60px;
    }

    .section-container {
        padding: 40px 0px;
    }

    .rooms-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .experience-grid {
        gap: 16px;
    }

    .experience-card {
        padding: 32px 24px;
    }

    .experience-icon {
        font-size: 48px;
    }

    .experience-title {
        font-size: 18px;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   유틸리티 클래스
   =================================== */
.hidden {
    display: none !important;
}

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

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* ===================================
   Mobile Overrides (Redesigned)
   =================================== */
@media (max-width: 768px) {
    .intro-section {
        padding: 40px 0 32px 0;
    }

    .intro-section .section-header {
        margin-bottom: 20px;
        padding: 0 16px;
    }

    .intro-section .section-label-group {
        justify-content: flex-start;
        width: 160px;
        gap: 8px;
        margin: 0 auto;
    }

    .intro-section .section-label {
        font-size: 14px;
        white-space: nowrap;
    }

    .intro-section .label-line {
        max-width: none;
    }

    .intro-section .section-title {
        font-size: 28px;
        text-align: center;
        margin-top: 12px;
    }

    .property-slider-outer {
        padding: 0;
    }

    .property-card {
        width: 317px;
        height: 190px;
        border-radius: 12px;
    }

    .swiper-slide:not(.swiper-slide-active) .property-card {
        opacity: 0.5;
    }

    .property-card-image img.content-img {
        width: 405px;
        height: 296px;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .property-card-image .overlay-gradient {
        padding: 12px 16px;
        gap: 2px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 4%, rgba(0, 0, 0, 0.9) 82%);
    }

    .property-card-title {
        font-size: 16px;
        line-height: 1.7;
    }

    .property-card-description {
        font-size: 12px;
        line-height: 1.4;
    }

    .property-badge {
        bottom: auto;
        right: 10px;
        padding: 2px 4px 2px 2px;
        border-radius: 4px;
        gap: 0;
        background: rgba(0, 0, 0, 0.64);
    }

    .property-location {
        font-size: 11px;
    }

    .property-slider-outer .nav-btn {
        width: 40px;
        height: 40px;
        box-shadow: 0px 4px 12px 0px rgba(13, 10, 44, 0.06);
    }

    .property-slider-outer .nav-btn svg {
        width: 40px;
        height: 40px;
    }

    .property-slider-outer .nav-btn.prev-btn {
        left: 20px;
        display: none;
        /* Hide prev button on mobile initially if at slide 1 */
    }

    .property-slider-outer .nav-btn.next-btn {
        right: 20px;
        left: auto;
    }

    .experience-section {
        padding: 40px 16px 32px;
        background: transparent;
    }

    .experience-section .section-header {
        text-align: center;
        margin-bottom: 16px;
    }

    .experience-section .section-title {
        font-size: 16px;
    }

    .experience-grid {
        justify-content: center;
        gap: 8px;
    }

    .experience-card {
        width: calc(50% - 4px);
        height: 44px;
        padding: 0;
    }

    .experience-icon-box {
        width: 32px;
        height: 32px;
        margin-left: 6px;
    }

    .experience-icon-box svg {
        width: 14px;
        height: 14px;
    }

    .experience-title {
        padding-left: 4px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Features Section */
.features-section {
    background-color: #0a0a0a;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.features-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.features-label-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    width: 100%;
    max-width: 396px;
    /* Similar to React Frame width */
}

.features-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

.features-line {
    flex: 1;
    height: 1px;
    background-color: #ffffff;
}

.features-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    padding: 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    /* min-height: 300px;  Adjust based on content */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.feature-text br {
    display: none;
}

.feature-card-title {
    font-size: 24px;
    font-weight: 400;
    color: #0a0a0a;
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
    word-spacing: -4px;
}

.feature-card-desc {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    word-break: keep-all;
}

.feature-icon-wrapper {
    width: 62px;
    height: 62px;
    background-color: #f85700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 10px 0;
}

.feature-icon-wrapper svg {
    width: 28px;
    height: 28px;
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-title {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }

    .features-title {
        font-size: 28px;
    }

    .features-label-row {
        justify-content: center;
        max-width: 100%;
        padding: 0 100px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 columns on mobile if possible */
        gap: 12px;
        padding: 0 12px;
    }

    .feature-card {
        padding: 20px;
    }

    .feature-card-title {
        font-size: 18px;
    }

    .feature-card-desc {
        font-size: 14px;
    }

    .feature-icon-wrapper {
        width: 54px;
        height: 54px;
        margin: 0px;
    }

    .feature-icon-wrapper svg {
        width: 38px;
        height: 38px;
    }

    .feature-text br {
        display: block;
    }
}

@media (max-width: 480px) {
    /* If 2 columns is too tight on very small screens, switch to 1 */
    /* But standard modern mobile width is 360-390px. 
       (360 - 32 padding - 12 gap) / 2 = ~158px per card.
       158px - 40px padding = 118px content width. 
       "보증금 및" fits. "추가요금 없음" fits.
       It should be fine. 
    */
}

/* Community Section */
.community-section {
    background: linear-gradient(to bottom, #ffffff 0%, #fff8ef 100%);
    padding: 32px 0 40px;
    position: relative;
    overflow: hidden;
}

.community-container {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    /* Mobile gap */
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 480px;
    /* Ensure height for absolute elements */
}

/* Left Column (Desktop) */
.community-left-col {
    display: none;
    /* Mobile Hidden */
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 60px 24px;
}

.community-left-col .comm-img-wrapper {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.community-left-col .comm-img-wrapper.comm-img-1 {
    width: 230px;
    height: 330px;
    left: -32px;
}

.community-left-col .comm-img-wrapper.comm-img-2 {
    width: 330px;
    height: 230px;
    left: -64px;
}

/* Text Column */
.community-text-col {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    z-index: 20;
    /* px-[16px] md:px-[8px] */
}

.community-label-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.community-label {
    font-size: 14px;
    color: #6b7280;
    font-family: 'Outfit', sans-serif;
    /* Use Outfit or pretendard */
    white-space: nowrap;
}

.community-line {
    display: none;
    flex: 1;
    height: 1px;
    background-color: #6b7280;
}

/* List Items */
.community-list {
    display: flex;
    flex-direction: column;
}

.community-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.community-icon-box {
    width: 24px;
    height: 24px;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    /* Align with text */
}

.community-icon-box svg,
.community-icon-box .community-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.community-icon-box svg {
    stroke: #0a0a0a;
    stroke-width: 4px;
}

/* img 아이콘 호버/활성 시 주황색 (#f85700) */
.community-item:hover .community-icon-box .community-icon-img,
.community-item.active .community-icon-box .community-icon-img {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(1deg) brightness(100%) contrast(101%);
}

.community-item-text {
    font-size: 24px;
    font-weight: 700;
    color: #0a0a0a;
    line-height: 1;
    transition: color 0.2s;
}

/* Active/Hover State */
.community-item:hover .community-item-text,
.community-item.active .community-item-text {
    color: #f85700;
}

.community-item:hover .community-icon-box,
.community-item.active .community-icon-box {
    display: flex;
    color: #f85700;
    /* Ensure currentColor works for SVG stroke */
}

/* Explicitly target SVG stroke just in case, though color above should handle it */
.community-item:hover .community-icon-box svg,
.community-item.active .community-icon-box svg {
    stroke: currentColor;
}


/* Right Column (Images) */
.community-right-col {
    position: absolute;
    right: 0;
    top: 50px;
    /* Adjust top */
    width: 191.5px;
    height: 356px;
    pointer-events: none;
    z-index: 10;
}

/* Image Wrappers */
.comm-img-wrapper {
    position: absolute;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.5s ease-out;
    background-color: #f0f0f0;
}

.comm-img-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

/* Animation trigger */
.animate-zoom {
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Image Positions (Based on React Right) */
/* Img2 (Main) */
.comm-img-right-1 {
    width: 191.5px;
    height: 132px;
    right: 8.25px;
    top: 50%;
    transform: translateY(-112.5px);
    z-index: 3;
}

/* Img4 (Top Right Small) */
.comm-img-right-2 {
    width: 110.5px;
    height: 89.5px;
    right: 42.75px;
    top: 50%;
    transform: translateY(8.5px);
    z-index: 2;
}

/* Img3 (Bottom Small) */
.comm-img-right-3 {
    width: 191.5px;
    height: 132px;
    right: 8.25px;
    top: 50%;
    transform: translateY(-112.5px);
    /* Same as right-1 normally, but we will offset it via JS or make it purely decorative */
    z-index: 1;
    opacity: 0;
    /* Hidden on mobile by default or used for transitions */
}


/* Desktop Styles */
@media (min-width: 768px) {
    .community-section {
        padding: 60px 0 80px;
    }

    .community-container {
        gap: 24px;
        align-items: center;
        padding: 0 32px;
    }

    .community-left-col {
        display: flex;
    }

    .community-line {
        display: block;
    }

    .community-label {
        font-size: 16px;
    }

    .community-label-row {
        width: 100%;
        max-width: 396px;
        /* Match Frame width */
    }

    /* List Items Desktop */
    .community-item {
        gap: 4px;
        padding: 10px 0;
    }

    .community-icon-box {
        width: 56px;
        height: 56px;
        margin-top: 10px;
    }

    .community-item-text {
        font-size: 56px;
        /* lg:text-[60px] */
        line-height: 72px;
    }

    /* Right Column Desktop */
    .community-right-col {
        position: relative;
        right: auto;
        top: auto;
        flex: 1;
        width: auto;
        height: 838px;
        pointer-events: none;
    }

    /* Desktop Image Positions */
    /* Img2 (Main) */
    .comm-img-right-1 {
        width: 450px;
        height: 310px;
        right: 20px;
        top: 50%;
        transform: translateY(-264px);
    }

    /* Img4 */
    .comm-img-right-2 {
        width: 260px;
        height: 210px;
        right: 100px;
        top: 50%;
        transform: translateY(20px);
    }

    /* Img3 */
    .comm-img-right-3 {
        width: 450px;
        height: 310px;
        right: 20px;
        top: 50%;
        transform: translateY(-50px);
        /* Just placeholder pos */
        opacity: 0;
    }
}

/* Override Community Image Positions for spacing fix */

/* Mobile Image Collages */
/* Mobile Image Collages (Stacked) */
.comm-img-right-1 {
    width: 191.5px;
    height: 125px;
    right: 12px;
    top: 0;
    transform: none;
    z-index: 1;
}

.comm-img-right-2 {
    width: 120px;
    height: 80px;
    right: 36px;
    top: 135px;
    transform: none;
    z-index: 2;
}

.comm-img-right-3 {
    width: 170.5px;
    height: 114px;
    right: 12px;
    top: 225px;
    transform: none;
    z-index: 1;
    opacity: 1 !important;
    /* Force visible */
}

/* Desktop Styles Overrides */
@media (min-width: 768px) {

    /* Ensure Left/Right Cols have height for absolute positioning */
    .community-left-col {
        position: relative;
        height: 800px;
        /* Match section height approx */
        width: 380px;
        /* Width Reduced from 450px to give text col more space */
        flex: 0.7;
        /* Disable flex shrinking */
        display: block;
        /* Override flex display to act as container */

    }

    .community-right-col {
        position: relative;
        height: 800px;
        /* Match section height approx */
        width: 380px;
        /* Width Reduced from 450px to give text col more space */
        flex: 1;
        /* Disable flex shrinking */
        display: block;
        /* Override flex display to act as container */
    }

    /* Left Column Images */
    /* Top Left (Portrait) */
    .comm-img-1 {
        width: 260px;
        height: 380px;
        left: 40px;
        top: 20px;
        transform: none;
        z-index: 2;
    }

    /* Bottom Left (Landscape) */
    .comm-img-2 {
        width: 340px;
        height: 240px;
        left: 0px;
        top: 480px;
        transform: none;
        z-index: 1;
    }


    /* Right Column Images */
    /* Top Right (Landscape) */
    .comm-img-right-1 {
        width: 380px;
        height: 260px;
        right: 0px;
        top: 20px;
        transform: none;
        z-index: 2;
    }

    /* Middle Right (Small Landscape) */
    .comm-img-right-2 {
        width: 220px;
        height: 160px;
        right: 140px;
        /* Indented */
        top: 340px;
        transform: none;
        z-index: 3;
    }

    /* Bottom Right (Landscape) */
    .comm-img-right-3 {
        width: 380px;
        height: 260px;
        right: 0px;
        top: 540px;
        transform: none;
        z-index: 1;
        opacity: 1 !important;
    }
}

/* Life Section */
.life-section {
    padding: 32px 16px;
    background-color: #fff;
    /* or match surrounding */
    display: flex;
    justify-content: center;
}

.life-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.life-content-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    background-color: #c8c8c8;
}

.life-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.life-bg-img {
    width: 100%;
    height: 100%;
}

.life-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.life-text-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 2;
}

.life-text-group {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.life-title {
    font-size: 28px;
    /* 28px in react code */
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.life-desc {
    font-size: 14px;
    /* 14px in react code */
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.5;
}

.life-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.life-btn-circle:hover {
    transform: scale(1.05);
}

.life-btn-circle svg {
    width: 24px;
    height: 24px;
    fill: #0a0a0a;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .life-section {
        padding: 0px 16px;
    }

    .life-content-wrapper {
        height: auto;
        min-height: 160px;
        padding: 24px;
        border-radius: 0px
    }

    .life-text-content {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 12px;
        position: relative;
    }

    .life-bg-image {
        position: absolute;
    }

    .life-title {
        font-size: 20px;
        text-align: center;
        margin-bottom: 4px;
    }

    .life-desc {
        text-align: center;
        font-size: 13px;
    }

    .life-text-group {
        align-items: center;
        text-align: center;
    }

    .life-container {
        margin: 0 -16px;
        width: calc(100% + 32px);
    }


}

/* ===================================
   Review Section (New Design)
   =================================== */
.review-section {
    background-color: #fff;
    padding: 80px 0;
    overflow: hidden;
}

.review-section .section-container {
    max-width: 1300px;
    padding: 0;
}

.review-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.review-subtitle {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 440px;
    max-width: 100%;
}

.review-subtitle .subtitle-text {
    color: #6B7280;
    font-size: 16px;
    font-family: 'Pretendard', sans-serif;
    line-height: 24px;
}

.review-subtitle .subtitle-line {
    flex: 1;
    height: 1px;
    background-color: #6B7280;
}

.review-title {
    font-size: 48px;
    font-weight: 800;
    color: #1E1E1E;
    text-align: center;
    letter-spacing: -0.54px;
    line-height: 1.25;
    margin: 0;
}

/* Grid Layout */
/* Overview Wrapper & Frame (PC) */
.overview-wrapper {
    position: relative;
    width: 100%;
    height: 722px;
    /* Fixed height matching React component */
    flex-shrink: 0;
    overflow: visible;
    /* Ensure content isn't clipped if it slightly overflows */
    margin: 0 auto;
}

.review-frame {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* React says items-center, usually implies vertical center? Or top? React frame has items-center */
    /* Absolute positioning to match reference Frame */
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1300px;
    gap: 20px;
    /* Space between columns to fit 1300px (420+420+440=1280, 20px gap total -> 10px each? React has justify-between) */
    /* React component has Container(420) VIdeoAndReview(420) QuoteAndFacts(440) = 1280. 
       Frame is 1300. So 20px space distributed. justify-between handles this. */
}

.review-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-col.col-1 {
    width: 420px;
    flex-shrink: 0;
    flex: none;
    max-width: none;
    padding: 0px;
    margin: 0px;
}

.review-col.col-2 {
    width: 420px;
    flex-shrink: 0;
    flex: none;
    max-width: none;
    padding: 0px;
    margin: 0px;
}

.review-col.col-3 {
    width: 440px;
    flex-shrink: 0;
    flex: none;
    max-width: none;
    padding: 0px;
    margin: 0px;
}

/* Cards General */
.review-rating-card,
.image-wapper-vertical,
.video-wrapper-card,
.review-black-card,
.quote-list-box,
.image-and-quote-collage,
.rating-card-counter {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Rating Card */
.review-rating-card {
    background: #fff;
    border: 1px solid #DFE4EA;
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    gap: 46px;
    height: 208px;
}

.rating-avatars {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 36px;
}

.avatar-group {
    display: flex;
    position: relative;
    width: 132px;
    height: 36px;
}

.avatar-wrapper {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    top: 50%;
    transform: translateY(-50%);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-border {
    position: absolute;
    inset: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    pointer-events: none;
}

.avatar-wrapper:nth-child(1) {
    left: 0;
    z-index: 4;
}

.avatar-wrapper:nth-child(2) {
    left: 32px;
    z-index: 3;
}

.avatar-wrapper:nth-child(3) {
    left: 60px;
    z-index: 2;
}

.avatar-wrapper:nth-child(4) {
    left: 92px;
    z-index: 1;
}

.rating-score {
    font-size: 40px;
    font-weight: 800;
    color: #0A0A0A;
    line-height: 48px;
    font-family: 'Pretendard', sans-serif;
}

.rating-desc {
    font-size: 16px;
    color: #6B7280;
    line-height: 24px;
}

/* Column 1 Vertical Image */
.image-wapper-vertical {
    height: 504px;
}

.image-wapper-vertical .image-inner,
.image-wapper-vertical .image-container {
    width: 100%;
    height: 100%;
}

.image-wapper-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.4) 65%,
            rgba(0, 0, 0, 0.9) 100%);
    z-index: 10;
}

.image-text-overlay p {
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    margin-bottom: 2px;
    text-align: left;
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    opacity: 0.95;
    letter-spacing: -0.4px;
    word-break: keep-all;
}

.image-text-overlay p:last-child {
    margin-bottom: 0;
}

/* Column 2 Video Card */
.video-wrapper-card {
    height: 350px;
}

.video-image-base,
.video-image-overlay {
    position: absolute;
    inset: 0;
}

.video-image-base img {
    width: 100%;
    height: 111.7%;
    object-fit: cover;
    margin-top: -5.8%;
}

.video-image-overlay {
    inset: -79.9% 0.1% -62% -8.6%;
}

.video-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overley {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, #000 100%);
}

.video-content-overlay {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    left: 0;
    right: 0;
    bottom: 0px;
    padding: 19px 24px;
    box-sizing: border-box;
    z-index: 10;
}

.video-text-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.video-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    line-height: 34px;
    font-family: 'Pretendard', sans-serif;
}

.video-subtitle {
    font-size: 14px;
    color: #b79b6f;
    line-height: 22px;
    font-family: 'Pretendard', sans-serif;
}

.video-play-btn {
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
    position: relative;
    z-index: 20;
    /* Ensure clickable */
}

.video-play-btn:hover {
    transform: scale(1.1);
}

.video-content-overlay.mobile {
    padding: 19px 24px;
}

/* Column 2 Black Card */
.review-black-card {
    background: #0A0A0A;
    height: 362px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-inner-content {
    margin-bottom: 80px;
}

.review-stars-small {
    margin-bottom: 18px;
}

.review-quote-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 0;
}

.reviewer-info-area {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.reviewer-name {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    line-height: 34px;
}

.reviewer-type {
    font-size: 14px;
    color: #B79B6F;
    line-height: 22px;
}

.quote-icon {
    opacity: 0.2;
}

/* Column 3 Quote List */
.quote-list-box {
    background: #B79B6F;
    height: 217px;
    padding: 30px;
    display: flex;
}

.frames-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.mini-quote {
    background: #fff;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 13px;
    color: #000;
    width: fit-content;
    white-space: nowrap;
}

.mini-quote.long {
    width: 100%;
}

.mini-quote .q-val {
    font-weight: 700;
}

/* Column 3 Collage */
.image-and-quote-collage {
    height: 281px;
}

.collage-inner {
    width: 100%;
    height: 100%;
}

.base-img-wrapper {
    position: absolute;
    inset: 0;
}

.collage-base {
    width: 100%;
    height: 103.2%;
    object-fit: cover;
    margin-top: -1.6%;
}

.stack-imgs-wrapper {
    position: absolute;
    width: 710px;
    height: 452px;
    left: 50.6%;
    top: -35px;
    transform: translateX(-50%);
}

.collage-over {
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.collage-over.o1 {
    z-index: 1;
}

.collage-over.o2 {
    z-index: 2;
}

.collage-over-inner.o3 {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 3;
}

.collage-over-inner.o3 img {
    position: absolute;
    width: 100%;
    height: 122.2%;
    top: -2.5%;
    object-fit: cover;
}

.collage-overley {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 55%, #000 100%);
    z-index: 5;
}

.collage-text-mask {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.collage-text-container {
    height: 100%;
    position: relative;
}

.collage-text-list {
    position: absolute;
    width: 100%;
    bottom: 60px;
}

.collage-t-item {
    position: absolute;
    color: #fff;
    font-size: 44.6px;
    font-weight: 800;
    letter-spacing: -1px;
}

.collage-t-item.t1 {
    font-family: 'Pretendard', sans-serif;
}

.collage-t-item.t2 {
    left: 506px;
    font-family: 'Inter', sans-serif;
}

/* Column 3 Counter */
.rating-card-counter {
    background: #fff;
    height: 204px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.counter-label {
    font-size: 18px;
    color: #6B7280;
    line-height: 26px;
    margin-bottom: 10px;
}

.counter-val {
    font-size: 120px;
    font-weight: 800;
    color: #0A0A0A;
    line-height: 120px;
    letter-spacing: -2.4px;
    font-family: 'Inter', sans-serif;
}

/* ===================================
   Responsive Mobile Adjustments
   =================================== */
@media (max-width: 1024px) {
    .review-section {
        padding: 40px 0;
    }

    .review-header-container {
        margin-bottom: 30px;
        padding: 0 16px;
    }

    .review-subtitle {
        width: 100%;
        justify-content: center;
    }

    .review-subtitle .subtitle-line {
        display: none;
    }

    .review-title {
        font-size: 28px;
    }

    /* Old responsive styles for desktop review grid removed as we switch to dedicated mobile section */

    .review-rating-card {
        padding: 24px;
        height: auto;
    }

    .rating-avatars {
        justify-content: center;
        margin-bottom: 16px;
    }

    .rating-text-group {
        align-items: center;
    }

    .rating-score {
        font-size: 32px;
    }

    /* Make images responsive */
    .review-image-card.vertical {
        height: 300px;
    }

    /* On mobile, maybe hide some elements to reduce length? 
       Reference mobile seems to show everything stacked. */

    .image-quote-card {
        height: 200px;
    }

    .image-quote-overlay-text {
        flex-direction: column;
        align-items: flex-start;
    }

    .overlay-t1,
    .overlay-t2 {
        font-size: 28px;
    }

    .counter-value {
        font-size: 80px;
    }
}

/* ===================================
   Mobile Review Section (Slider)
   =================================== */
.mobile-review-section {
    display: none;
    /* Default hidden on desktop */
    background: #fff;
    padding: 32px 0;
    overflow: hidden;
}

.mobile-review-section .section-header-mobile {
    padding: 0 16px;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-review-section .review-label-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.mobile-review-section .review-label {
    color: #6B7280;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    line-height: 24px;
}

.mobile-review-section .review-label-line {
    flex: 1;
    width: 100px;
    /* Adjust as needed */
    max-width: 100px;
    height: 1px;
    background-color: #6B7280;
}

.mobile-review-section .review-title-mobile {
    font-size: 28px;
    font-weight: 700;
    color: #0A0A0A;
    line-height: 36px;
    font-family: 'Pretendard', sans-serif;
    margin: 0;
}

/* Mobile Review Slider */
.mobile-review-slider-wrapper {
    width: 100%;
    margin-bottom: 20px;
    padding: 0 16px;
    overflow: visible;
    position: relative;
    /* Context for absolute nav buttons */
}

.mobile-review-slider-wrapper .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 5px 12px 0px rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.mobile-review-slider-wrapper .nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

.mobile-review-slider-wrapper .nav-btn svg {
    width: 64px;
    height: 64px;
}

.mobile-review-slider-wrapper .review-mobile-prev {
    left: 8px;
}

.mobile-review-slider-wrapper .review-mobile-next {
    right: 8px;
}

.review-mobile-swiper {
    width: 100%;
    overflow: visible;
}

.review-slide-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 240px;
    /* Swiper will handle width */
    background: #f0f0f0;
}

/* Slide 1: Image Wrapper Style */
.review-slide-card.type-image .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-slide-card.type-image .text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0px 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: white;
    font-size: 12px;
    line-height: 22px;
    font-family: 'Pretendard', sans-serif;
    opacity: 0.9;
}

/* Slide 2: Video Wrapper Style */
.review-slide-card.type-video .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-slide-card.type-video .overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    z-index: 10;
}

.review-slide-card.type-video .video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 19px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #000 100%);
}

.review-slide-card.type-video .video-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.review-slide-card.type-video .video-sub {
    font-size: 14px;
    color: #B79B6F;
}

/* Slide 3: Black Review Card */
.review-slide-card.type-black {
    background: #0A0A0A;
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.review-slide-card.type-black .stars {
    margin-bottom: 18px;
}

.review-slide-card.type-black .review-content {
    color: white;
    font-size: 14px;
    line-height: 22px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.review-slide-card.type-black .reviewer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-slide-card.type-black .reviewer-name {
    font-size: 24px;
    font-weight: 600;
    color: white;
    line-height: 34px;
}

.review-slide-card.type-black .reviewer-sub {
    font-size: 14px;
    color: #B79B6F;
}

/* Quote List Part */
.mobile-quote-container {
    padding: 0 16px;
    margin-bottom: 10px;
}

.mobile-quote-box {
    background: #B79B6F;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-mini-quote {
    background: white;
    border-radius: 30px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
}

.mobile-mini-quote .q-label {
    margin-right: 4px;
}

.mobile-mini-quote .q-val {
    font-weight: 700;
}

/* Rating Card Bottom */
.mobile-rating-card {
    padding: 0 16px;
}

.mobile-rating-box {
    background: white;
    border: 1px solid #DFE4EA;
    border-radius: 12px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-rating-label {
    font-size: 18px;
    color: #6B7280;
    line-height: 26px;
}

.mobile-rating-val {
    font-size: 80px;
    color: #0A0A0A;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

@media (max-width: 1024px) {
    .review-section {
        display: none !important;
        /* Hide desktop review section */
    }

    .mobile-review-section {
        display: block !important;
    }

    .mobile-rating-top-wrapper {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .mobile-rating-top-wrapper .review-rating-card {
        padding: 24px 20px;
        height: auto;
        gap: 24px;
        border: 1px solid #DFE4EA;
        background: #fff;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
    }

    .mobile-rating-top-wrapper .rating-avatars {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        height: auto;
        justify-content: flex-start;
        margin-bottom: 0px;
    }

    .mobile-rating-top-wrapper .avatar-group {
        width: 132px;
        height: 36px;
        flex-shrink: 0;
    }

    .mobile-rating-top-wrapper .rating-score {
        font-size: 32px;
        font-weight: 800;
        line-height: 1.2;
    }

    .mobile-rating-top-wrapper .rating-desc {
        font-size: 14px;
        color: #6B7280;
    }

    .image-and-quote-collage {
        height: 184px;
    }

    .collage-over-inner.o3 img {
        position: absolute;
        width: 110%;
        height: 110%;
        top: -5.5%;
        right: -16%;
        object-fit: cover;
    }
}

/* Video Popup Styles */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.video-popup-content {
    position: relative;
    height: 80vh;
    width: auto;
    aspect-ratio: 9/16;
    max-width: 90%;
    background: black;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.video-popup-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.close-video-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: color 0.2s;
}

.close-video-btn:hover {
    color: #FF7A0C;
}

@media (min-width: 768px) {
    .exp-icon-pet {
        width: 24px !important;
        height: 24px !important;
    }
}