/* ============================
   RESET / GLOBAL
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: #ffffff;
    color: #222;
}

a,
a:visited,
a:hover,
a:focus,
a:active {
    color: inherit !important;
    text-decoration: none !important;
}

img {
    max-width: 100%;
    display: block;
}

.section-header {
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

/* ============================
   HEADER
============================ */
.main-header,
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

.header-inner,
.header-wrapper {
    min-height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ff385c;
    font-size: 24px;
    font-weight: 700;
}

.brand-logo:hover {
    color: #ff385c;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #ff385c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.center-nav {
    display: flex;
    gap: 25px;
}

.nav-chip {
    color: #555;
    font-weight: 500;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: 0.3s ease;
}

.nav-chip.active,
.nav-chip:hover {
    color: #111;
    border-bottom-color: #111;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.host-link {
    color: #111;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 999px;
    transition: 0.2s ease;
}

.host-link:hover {
    background: #f5f5f5;
    color: #111;
}

.profile-menu {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ============================
   HERO SEARCH
============================ */
.hero-search-section {
    padding: 34px 0 20px;
    background: linear-gradient(to bottom, #fff, #fafafa);
    border-bottom: 1px solid #eee;
}

.search-bar {
    max-width: 1080px;
    margin: auto;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    flex-wrap: wrap;
}

.search-fields {
    display: contents;
}

.mobile-search-trigger,
.mobile-search-backdrop,
.mobile-search-panel-header,
.search-btn span {
    display: none;
}

.search-item {
    flex: 1;
    min-width: 160px;
    padding: 0 10px;
}

.search-item small {
    display: block;
    color: #777;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 600;
}

.search-item input,
.search-item select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #111;
    margin-top: 4px;
}

.search-item input::placeholder {
    color: #aaa;
}

.search-btn {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #ff385c;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.04);
    background: #e11d48;
}

/* ============================
   FEATURED PROPERTIES
============================ */
.featured-properties-section {
    padding: 40px 0 20px;
}

.featured-properties-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.featured-properties-heading .section-header {
    min-width: 0;
}

.featured-properties-heading .section-header p {
    white-space: normal;
}

.featured-properties-controls {
    display: flex;
    gap: 10px;
}

.featured-properties-controls button {
    display: inline-grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    border: 1px solid #dedede;
    border-radius: 50%;
    color: #222;
    background: #fff;
    font-size: 18px;
    transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.featured-properties-controls button:hover:not(:disabled) {
    border-color: #ff385c;
    background: #fff5f7;
}

.featured-properties-controls button:disabled {
    opacity: 0.35;
    cursor: default;
}

.featured-properties-viewport {
    margin: -8px;
    padding: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
}

@supports (scrollbar-width: none) {
    .featured-properties-viewport {
        scrollbar-width: none;
    }
}

.featured-properties-viewport::-webkit-scrollbar {
    display: none;
}

.featured-properties-viewport:focus-visible {
    outline: 3px solid rgba(255, 56, 92, 0.32);
    outline-offset: 4px;
    border-radius: 30px;
}

.featured-properties-track {
    display: flex;
    align-items: stretch;
    gap: 24px;
}

.property-card {
    flex: 0 0 calc((100% - 24px) / 2);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    cursor: pointer;
}

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

.property-card:focus-visible {
    outline: 3px solid #ff385c;
    outline-offset: 3px;
}

.property-card:only-child {
    flex-basis: 100%;
}

.property-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e9ecef;
}

.property-image-track {
    position: absolute;
    inset: 0;
}

.property-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 0.35s ease, transform 0.45s ease;
    pointer-events: none;
}

.property-image.is-active {
    z-index: 1;
    opacity: 1;
}

.property-card:hover .property-image.is-active {
    transform: scale(1.035);
}

.property-availability-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.property-availability-badge.is-available {
    color: #0a5c36;
    background: rgba(225, 250, 238, 0.94);
}

.property-availability-badge.is-limited {
    color: #784800;
    background: rgba(255, 242, 204, 0.95);
}

.property-availability-badge.is-full {
    color: #7d2534;
    background: rgba(255, 230, 235, 0.95);
}

.property-photo-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #222;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.property-photo-prev {
    left: 14px;
}

.property-photo-next {
    right: 14px;
}

.property-card:hover .property-photo-nav,
.property-photo-nav:focus-visible {
    opacity: 1;
}

.property-photo-nav:hover {
    background: #fff;
}

.property-photo-nav:focus-visible {
    outline: 3px solid #ff385c;
    outline-offset: 2px;
}

.property-photo-dots {
    position: absolute;
    z-index: 4;
    bottom: 14px;
    left: 50%;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}

.property-photo-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    transition: width 0.2s ease, background-color 0.2s ease;
}

.property-photo-dots span.is-active {
    width: 18px;
    border-radius: 999px;
    background: #fff;
}

.property-info {
    padding: 22px 24px 24px;
    background: #fff;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-info h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.property-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.property-title-row > div {
    min-width: 0;
}

.property-address {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-bottom: 14px;
    color: #666;
    line-height: 1.45;
}

.property-card-link-icon {
    flex: 0 0 auto;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    color: #ff385c;
    background: #fff1f4;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.property-card:hover .property-card-link-icon {
    transform: translate(2px, -2px);
}

.property-unit-types {
    margin: 0 0 20px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.property-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid #eeeeee;
}

.property-price-summary,
.property-unit-summary {
    display: flex;
    flex-direction: column;
}

.property-price-summary small,
.property-unit-summary small {
    color: #777;
    font-size: 12px;
}

.property-price-summary strong {
    color: #222;
    font-size: 20px;
}

.property-price-summary strong span {
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.property-unit-summary {
    align-items: flex-end;
}

.property-unit-summary strong {
    color: #222;
    font-size: 18px;
}

.property-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
}

/* ============================
   LISTINGS
============================ */
.listing-section {
    padding: 35px 0 50px;
}

.listing-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

.listing-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 230px;
    flex-shrink: 0;
}

.listing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.favorite-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.badge-room {
    background: #2563eb;
}

.badge-stall {
    background: #16a34a;
}

.badge-hall {
    background: #7c3aed;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.status-pill.available {
    background: #e8f8ef;
    color: #1b8f4d;
    border-color: #b9ebcb;
}

.status-pill.reserved {
    background: #fff5e6;
    color: #d97706;
    border-color: #ffd79a;
}

.status-pill.occupied,
.status-pill.full {
    background: #ffe8ec;
    color: #d7264f;
    border-color: #ffc4d1;
}

.status-pill.secondary {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.wishlist-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: 0.2s ease;
}

.wishlist-btn:hover,
.wishlist-btn:focus {
    transform: scale(1.06);
    background: white;
    color: #ff385c;
}

.wishlist-btn.active {
    background: #ff385c;
    color: white;
}

.listing-info {
    padding: 20px;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.listing-actions {
    margin-top: auto !important;
    padding-top: 16px;
}

.listing-info h5 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.listing-info p {
    color: #666;
    margin-bottom: 8px;
}

.listing-info span {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.listing-info small {
    line-height: 1.5;
}

/* SAFETY NET FOR BAD HTML */
.listing-card > img,
.property-card > img {
    display: none !important;
}

/* ============================
   PROPERTY DETAILS PAGE
============================ */
.property-hero {
    width: 100%;
    overflow: hidden;
}

.property-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.property-info-section {
    padding: 30px 0;
    background: #fff;
    position: relative;
    z-index: 2;
}

.property-info-section h1 {
    font-size: 32px;
    font-weight: 700;
}

.brand-icon img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.public-logo-label {
    position: relative;
}

.public-logo-label:focus-visible {
    border-radius: 14px;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.18);
}

.public-logo-label::after {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 30;
    padding: 6px 10px;
    border-radius: 999px;
    content: attr(data-label);
    color: #fff;
    background: #111827;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.public-logo-label:hover::after,
.public-logo-label:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.property-showcase-section {
    padding: 24px 0 0;
    background: #fff;
}

.property-showcase-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: #62666d;
    font-size: 14px;
    font-weight: 600;
}

.property-showcase-toolbar .public-back-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.property-gallery-grid {
    position: relative;
    display: grid;
    height: 430px;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    overflow: hidden;
    border-radius: 28px;
    background: #e9ecef;
}

.property-gallery-photo {
    position: relative;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #e9ecef;
    cursor: zoom-in;
}

.property-gallery-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.2s ease;
}

.property-gallery-photo:hover::after {
    background: rgba(0, 0, 0, 0.12);
}

.property-gallery-photo:focus-visible {
    z-index: 5;
    outline: 3px solid #ff385c;
    outline-offset: -3px;
}

.property-gallery-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.property-gallery-photo:hover img {
    transform: scale(1.03);
}

.property-gallery-main {
    grid-row: 1 / 3;
}

.property-gallery-count-1 {
    grid-template-columns: 1fr;
}

.property-gallery-count-1 .property-gallery-main {
    grid-column: 1;
}

.property-gallery-count-2 {
    grid-template-columns: 2fr 1fr;
}

.property-gallery-count-2 .property-gallery-photo:not(.property-gallery-main) {
    grid-row: 1 / 3;
}

.property-gallery-count-3 {
    grid-template-columns: 2fr 1fr;
}

.property-gallery-count-4 .property-gallery-photo:nth-child(2) {
    grid-column: 2 / 4;
}

.property-gallery-view-all {
    position: absolute;
    z-index: 6;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    color: #202124;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.13);
    font-size: 14px;
    font-weight: 700;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.property-gallery-view-all:hover {
    background: #fff;
}

.property-gallery-view-all:focus-visible {
    outline: 3px solid #ff385c;
    outline-offset: 3px;
}

.property-summary-section {
    padding: 38px 0;
    background: #fff;
}

.property-summary-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 48px;
    align-items: center;
}

.property-summary-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #ff385c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.property-summary-copy h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.property-summary-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #62666d;
    font-size: 16px;
}

.property-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.property-summary-badges > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5058;
    background: #fafafa;
    font-size: 13px;
    font-weight: 700;
}

.property-summary-badges .property-live-badge.is-available {
    color: #08663d;
    border-color: #bce9d2;
    background: #ebfbf3;
}

.property-summary-badges .property-live-badge.is-full {
    color: #8a3443;
    border-color: #f2cbd2;
    background: #fff1f4;
}

.property-summary-action {
    padding: 24px;
    border: 1px solid #e9e9e9;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.07);
}

.property-summary-action > small {
    display: block;
    margin-bottom: 5px;
    color: #70757d;
    font-size: 13px;
}

.property-summary-action > strong {
    display: block;
    margin-bottom: 12px;
    color: #202124;
    font-size: 27px;
}

.property-summary-action > strong span {
    color: #70757d;
    font-size: 14px;
    font-weight: 600;
}

.property-summary-action .property-secondary-price {
    margin-top: -6px;
    margin-bottom: 12px;
}

.property-summary-availability {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #5d636b;
    font-size: 13px;
    font-weight: 700;
}

.property-summary-availability.is-available i {
    color: #15915a;
}

.property-summary-availability.is-full i {
    color: #d45167;
}

.property-summary-action .continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
}

.property-at-a-glance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.property-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #ededed;
    border-radius: 18px;
    background: #fafafa;
}

.property-stat-icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 14px;
    color: #ff385c;
    background: #fff0f3;
    font-size: 19px;
}

.property-stat-card div {
    min-width: 0;
}

.property-stat-card small,
.property-stat-card strong {
    display: block;
}

.property-stat-card small {
    margin-bottom: 2px;
    color: #747982;
    font-size: 12px;
}

.property-stat-card strong {
    overflow: hidden;
    color: #24262a;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-units-section {
    padding-top: 45px;
    background: #fbfbfc;
}

.property-units-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.property-unit-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-unit-sort label {
    flex: 0 0 auto;
    color: #656a72;
    font-size: 13px;
    font-weight: 700;
}

.property-unit-sort .form-select {
    width: 210px;
    border-radius: 12px;
}

.property-unit-filter-bar {
    position: sticky;
    z-index: 20;
    top: 12px;
    display: flex;
    gap: 9px;
    margin-bottom: 28px;
    padding: 10px;
    overflow-x: auto;
    border: 1px solid #ebebeb;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.property-unit-filter-bar::-webkit-scrollbar {
    display: none;
}

.property-unit-filter-bar button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 0;
    border-radius: 12px;
    color: #52565d;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.property-unit-filter-bar button span {
    display: inline-grid;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    place-items: center;
    border-radius: 999px;
    color: #c72c4b;
    background: #fff0f3;
    font-size: 11px;
}

.property-unit-filter-bar button:hover {
    color: #c72c4b;
    background: #fff1f4;
}

.property-unit-filter-bar button.is-active {
    color: #fff;
    background: #ff385c;
}

.property-unit-filter-bar button.is-active span {
    color: #c72c4b;
    background: #fff;
}

.property-unit-item[hidden],
.property-unit-no-results[hidden] {
    display: none !important;
}

.property-unit-card {
    cursor: pointer;
}

.property-unit-card:focus-visible {
    outline: 3px solid #ff385c;
    outline-offset: 3px;
}

.unit-photo-track {
    position: absolute;
    inset: 0;
}

.unit-card-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.01);
    transition: opacity 0.3s ease, transform 0.35s ease;
    pointer-events: none;
}

.unit-card-image.is-active {
    z-index: 1;
    opacity: 1;
}

.property-unit-card:hover .unit-card-image.is-active {
    transform: scale(1.035);
}

.unit-photo-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #222;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.unit-photo-prev {
    left: 12px;
}

.unit-photo-next {
    right: 12px;
}

.property-unit-card:hover .unit-photo-nav,
.unit-photo-nav:focus-visible {
    opacity: 1;
}

.unit-photo-nav:hover {
    background: #fff;
}

.unit-photo-counter {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 13px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 11px;
    font-weight: 700;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.property-unit-price {
    color: #222;
    font-size: 19px;
    font-weight: 800;
}

.property-unit-price small {
    color: #737780;
    font-size: 13px;
    font-weight: 600;
}

.property-unit-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-unit-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border-radius: 10px;
    color: #5e626a;
    background: #f5f5f6;
    font-size: 12px;
}

.property-unit-features i {
    color: #ff385c;
}

.property-unit-card .listing-actions {
    margin-top: auto !important;
    padding-top: 16px;
}

.property-unit-card .listing-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.property-unit-no-results {
    border: 1px dashed #d7d7d7;
    border-radius: 22px;
    background: #fff;
}

.available-space-card .listing-image-wrapper {
    height: 280px;
}

.available-space-card .listing-info {
    padding: 24px;
}

.available-space-card .listing-actions .btn {
    min-height: 52px;
}

/* ============================
   ROOM DETAILS PAGE
============================ */
.public-page-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.room-details-section .public-page-heading h1 {
    font-size: clamp(26px, 2.5vw, 30px);
    line-height: 1.1;
}

.public-back-button {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    background: #f5f5f5;
    color: #222;
    font-size: 21px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.public-back-button:hover,
.public-back-button:focus-visible {
    background: #e9e9e9;
    color: #111;
    transform: translateX(-2px);
}

.public-back-button:focus-visible {
    outline: 3px solid rgba(255, 56, 92, 0.25);
    outline-offset: 3px;
}

.room-details-section h1 {
    font-size: 34px;
}

.details-description {
    font-size: 15px;
    line-height: 1.9;
}

.feature-box {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 18px;
    height: 100%;
}

.feature-box i {
    font-size: 22px;
    color: #ff385c;
    margin-top: 3px;
}

.feature-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.feature-box p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #444;
    font-size: 15px;
}

.details-list i {
    color: #ff385c;
    font-size: 16px;
}

.booking-summary {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

/* ============================
   GALLERY
============================ */
.gallery-grid {
    position: relative;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 10px;
}

.gallery-image-button {
    appearance: none;
    position: relative;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #e9ecef;
    cursor: zoom-in;
}

.gallery-image-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background-color 0.2s ease;
}

.gallery-image-button:hover::after {
    background: rgba(0, 0, 0, 0.12);
}

.gallery-image-button:focus-visible {
    outline: 3px solid #ff385c;
    outline-offset: 3px;
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-image-button:hover img {
    transform: scale(1.025);
}

.gallery-grid .main-img {
    grid-row: span 2;
}

.gallery-grid.gallery-count-1 {
    grid-template-columns: 1fr;
}

.gallery-grid.gallery-count-1 .main-img {
    grid-column: 1;
}

.gallery-grid.gallery-count-2,
.gallery-grid.gallery-count-3 {
    grid-template-columns: 2fr 1fr;
}

.gallery-grid.gallery-count-2 .gallery-image-button:not(.main-img) {
    grid-row: span 2;
}

.gallery-grid.gallery-count-4 .gallery-image-button:nth-child(2) {
    grid-column: 2 / 4;
}

.room-gallery-view-all {
    position: absolute;
    z-index: 6;
    bottom: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: 12px;
    color: #202124;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.13);
    font-size: 14px;
    font-weight: 700;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.room-gallery-view-all:hover {
    background: #fff;
}

.room-gallery-view-all:focus-visible {
    outline: 3px solid #ff385c;
    outline-offset: 3px;
}

body.lightbox-open {
    overflow: hidden;
}

.room-lightbox[hidden] {
    display: none;
}

.room-lightbox {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 96px;
    grid-template-rows: 72px minmax(0, 1fr);
    color: #212529;
    background: rgba(255, 255, 255, 0.98);
}

.room-lightbox-toolbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 28px;
}

.room-lightbox-counter {
    grid-column: 2;
    color: #6c757d;
    font-size: 16px;
}

.room-lightbox-close {
    grid-column: 3;
    justify-self: end;
}

.room-lightbox-close,
.room-lightbox-nav {
    display: inline-grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: inherit;
    background: transparent;
    font-size: 24px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.room-lightbox-close:hover,
.room-lightbox-nav:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.08);
}

.room-lightbox-close:focus-visible,
.room-lightbox-nav:focus-visible {
    outline: 3px solid #ff385c;
    outline-offset: 2px;
}

.room-lightbox-nav {
    align-self: center;
    justify-self: center;
}

.room-lightbox-nav:disabled {
    opacity: 0.2;
    cursor: default;
}

.room-lightbox-stage {
    grid-column: 2;
    display: flex;
    min-width: 0;
    min-height: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 24px;
}

.room-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    border-radius: 28px;
    object-fit: contain;
}

html[data-theme="dark"] .room-lightbox {
    color: #f8f9fa;
    background: rgba(18, 18, 20, 0.98);
}

html[data-theme="dark"] .room-lightbox-counter {
    color: #adb5bd;
}

html[data-theme="dark"] .room-lightbox-close:hover,
html[data-theme="dark"] .room-lightbox-nav:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
}

/* ============================
   MISC
============================ */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 12px;
    font-size: 15px;
}

.feature-list i {
    margin-right: 10px;
}

.sticky-card,
.price-card {
    position: sticky;
    top: 100px;
}

.price-card {
    padding: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(17, 24, 39, 0.11);
}

.fee-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f7f7f7;
    font-weight: 600;
}

.fee-badge i {
    color: #ff385c;
}

.hall-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #aeb2b8;
    border-radius: 16px;
}

.hall-booking-grid label {
    display: block;
    min-width: 0;
    padding: 13px 14px;
    margin: 0;
}

.hall-booking-grid label:first-child {
    border-right: 1px solid #aeb2b8;
}

.hall-booking-grid label > span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hall-booking-grid input {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    outline: 0;
}

.hall-guests-field {
    grid-column: 1 / -1;
    border-top: 1px solid #aeb2b8;
}

.hall-guests-field small {
    display: block;
    margin-top: 2px;
    color: #6b7280;
    font-size: 12px;
}

.hall-reserve-btn {
    padding: 15px 22px;
    border-radius: 999px;
    font-size: 17px;
}

.empty-state {
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 24px;
    padding: 50px 20px;
}

/* ============================
   CTA
============================ */
.cta-section {
    padding: 20px 0 60px;
}

.cta-card {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: white;
    border-radius: 32px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================
   BUTTONS
============================ */
.continue-btn {
    background: #ff385c;
    border: none;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

a.continue-btn:link,
a.continue-btn:visited,
a.continue-btn:hover,
a.continue-btn:focus,
a.continue-btn:active {
    color: #fff !important;
}

.continue-btn:hover {
    background: #e11d48;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ============================
   USER DROPDOWN
============================ */
.dropdown .btn-light {
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.dropdown-menu {
    border-radius: 18px;
    border: 1px solid #eee;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    padding: 8px;
}

.dropdown-item {
    border-radius: 12px;
    padding: 10px 14px;
}

.dropdown-item:hover {
    background: #f7f7f7;
}

/* ============================
   FOOTER
============================ */
.site-footer {
    background: #f7f7f7;
    padding: 60px 0 30px;
    border-top: 1px solid #eee;
}

.footer-top h5 {
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-top ul {
    list-style: none;
    padding: 0;
}

.footer-top ul li {
    margin-bottom: 14px;
}

.footer-top ul li a {
    color: #333;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-left a,
.footer-right a {
    color: #222;
}

.footer-language {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-language label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-weight: 500;
}

.footer-language select {
    min-width: 105px;
    padding: 7px 30px 7px 10px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background-color: #fff;
    color: #222;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.footer-language select:focus {
    border-color: #ff385c;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.12);
    outline: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle:hover {
    background: #ededed;
}

.theme-toggle:focus-visible {
    border-color: #ff385c;
    box-shadow: 0 0 0 3px rgba(255, 56, 92, 0.2);
    outline: none;
}

.theme-toggle[aria-checked="true"] {
    border-color: #6b7280;
    background: #252930;
    color: #fff;
}

/* ============================
   PAGINATION
============================ */
.pagination .page-link {
    color: #111;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 12px;
    padding: 10px 15px;
}

.pagination .page-item.active .page-link {
    background: #ff385c;
    border-color: #ff385c;
    color: white;
}

.pagination .page-link:hover {
    background: #f7f7f7;
    color: #111;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 992px) {
    .center-nav {
        display: none !important;
    }

    .search-bar {
        border-radius: 28px;
    }

    .property-image-wrapper {
        height: 240px;
    }

    .property-gallery-grid {
        height: 380px;
    }

    .available-space-card .listing-image-wrapper {
        height: 250px;
    }

    .property-summary-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
        gap: 28px;
    }

    .property-at-a-glance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-stat-card:last-child {
        grid-column: 1 / -1;
    }

    .listing-image-wrapper {
        height: 220px;
    }

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

    .cta-card h2 {
        font-size: 28px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-grid .main-img {
        grid-column: span 2;
        grid-row: auto;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .main-header,
    .site-header {
        padding: 14px 0;
    }

    .brand-logo {
        font-size: 20px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .hero-search-section {
        padding: 16px 0;
    }

    .search-bar {
        display: block;
        border-radius: 999px;
        padding: 0;
        border-color: #e5e5e5;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-search-trigger {
        width: 100%;
        min-height: 70px;
        padding: 10px 12px 10px 18px;
        border: 0;
        border-radius: inherit;
        background: #fff;
        color: #222;
        display: flex;
        align-items: center;
        gap: 13px;
        text-align: left;
    }

    .mobile-search-trigger-icon {
        flex: 0 0 auto;
        font-size: 20px;
    }

    .mobile-search-copy {
        display: flex;
        min-width: 0;
        flex: 1;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-search-copy strong,
    .mobile-search-copy span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-search-copy strong {
        font-size: 14px;
        line-height: 1.25;
    }

    .mobile-search-copy span {
        color: #717171;
        font-size: 12px;
    }

    .mobile-filter-icon {
        width: 40px;
        height: 40px;
        border: 1px solid #dedede;
        border-radius: 50%;
        display: grid;
        flex: 0 0 auto;
        place-items: center;
        font-size: 16px;
    }

    .mobile-search-backdrop {
        position: fixed;
        z-index: 1040;
        inset: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(0, 0, 0, 0.42);
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .search-fields {
        position: fixed;
        z-index: 1041;
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        max-height: min(82vh, 620px);
        padding: 18px 20px max(20px, env(safe-area-inset-bottom));
        border-radius: 24px 24px 0 0;
        background: #fff;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        visibility: hidden;
        transform: translateY(105%);
        transition: transform 0.25s ease, visibility 0.25s ease;
    }

    .search-bar.is-mobile-open .mobile-search-backdrop,
    .search-bar.is-mobile-open .search-fields {
        visibility: visible;
    }

    .search-bar.is-mobile-open .mobile-search-backdrop {
        opacity: 1;
    }

    .search-bar.is-mobile-open .search-fields {
        transform: translateY(0);
    }

    .mobile-search-panel-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 2px;
        font-size: 18px;
    }

    .mobile-search-close {
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #f5f5f5;
        color: #222;
        display: grid;
        place-items: center;
    }

    .search-item {
        width: 100%;
        min-width: 100%;
        padding: 11px 14px;
        border: 1px solid #e5e5e5;
        border-radius: 14px;
    }

    .search-item small {
        margin-bottom: 2px;
    }

    .search-item input,
    .search-item select {
        min-height: 28px;
        margin-top: 0;
    }

    .search-btn {
        width: 100%;
        height: 50px;
        margin-top: 2px;
        border-radius: 14px;
        gap: 9px;
        font-weight: 700;
    }

    .search-btn span {
        display: inline;
    }

    .section-header h2,
    .property-info-section h1,
    .room-details-section h1,
    .cta-card h2 {
        font-size: 26px;
    }

    .property-image-wrapper {
        height: 220px;
    }

    .property-showcase-section {
        padding-top: 16px;
    }

    .available-space-card .listing-image-wrapper {
        height: 230px;
    }

    .property-gallery-grid,
    .property-gallery-count-1,
    .property-gallery-count-2,
    .property-gallery-count-3 {
        display: block;
        height: 310px;
        border-radius: 22px;
    }

    .property-gallery-photo {
        display: none;
        width: 100%;
        height: 100%;
    }

    .property-gallery-photo.property-gallery-main {
        display: block;
    }

    .property-gallery-view-all {
        right: 14px;
        bottom: 14px;
    }

    .property-summary-section {
        padding-top: 28px;
    }

    .property-summary-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .property-summary-action {
        padding: 20px;
    }

    .property-at-a-glance {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .property-stat-card:last-child {
        grid-column: auto;
    }

    .property-units-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .property-unit-sort {
        justify-content: space-between;
    }

    .property-unit-sort .form-select {
        width: min(230px, 68vw);
    }

    .property-unit-filter-bar {
        margin-right: -16px;
        margin-left: -16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .unit-photo-nav {
        opacity: 1;
    }

    .property-card {
        flex-basis: 86%;
    }

    .property-card:only-child {
        flex-basis: 100%;
    }

    .property-photo-nav {
        width: 38px;
        height: 38px;
        opacity: 1;
    }

    .property-info h4 {
        font-size: 20px;
    }

    .listing-image-wrapper {
        height: 210px;
    }

    .cta-card {
        border-radius: 24px;
        padding: 28px 20px;
    }

    .property-hero img {
        height: 300px;
    }

    .feature-box {
        padding: 16px;
    }

    .header-wrapper {
        gap: 10px;
    }

    .header-actions {
        min-width: 0;
        gap: 8px;
    }

    .header-actions .dropdown-toggle {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .listing-info,
    .property-info {
        padding: 16px;
    }

    .section-header {
        align-items: flex-start !important;
        margin-bottom: 20px;
    }

    .cta-card .btn,
    .cta-card > div:last-child {
        width: 100%;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================
   FLOATING SEARCH BAR (HEADER-ALIGNED)
   Paste at VERY BOTTOM of home.css
============================ */

/* Reserve space so page doesn't jump */
.hero-search-section {
    min-height: 120px;
    position: relative;
}

/* Smooth transition */
#searchBar {
    transition: all 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform, box-shadow, padding, width, top;
}

/* ============================
   FLOATING STATE (DESKTOP)
============================ */
#searchBar.search-fixed {
    position: fixed !important;
    top: 14px !important; /* aligns inside header */
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 9999 !important;

    width: min(70vw, 720px) !important; /* fits between logo + user menu */
    max-width: 720px !important;
    margin: 0 !important;

    background: #fff !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14) !important;
    border: 1px solid #eaeaea !important;
}

/* Compact style */
#searchBar.search-compact {
    padding: 8px 12px !important;
    border-radius: 999px !important;
    min-height: 52px;
    gap: 6px !important;
}

/* Hide labels when compact */
#searchBar.search-compact .search-item small {
    display: none !important;
}

/* Tighter layout */
#searchBar.search-compact .search-item {
    min-width: 120px;
    padding: 0 8px;
}

/* Compact input text */
#searchBar.search-compact input,
#searchBar.search-compact select {
    font-size: 13px !important;
    font-weight: 500;
}

/* Compact button */
#searchBar.search-compact .search-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 15px !important;
    flex-shrink: 0;
}

/* Optional entrance animation */
#searchBar.search-fixed {
    animation: searchFloatIn 0.22s ease;
}

@keyframes searchFloatIn {
    from {
        opacity: 0;
        transform: translate(-50%, -8px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ============================
   HEADER SAFETY
============================ */
/* Keep header above content but below floating search */
.main-header,
.site-header {
    z-index: 1000;
}

/* Prevent content from appearing over the floating bar */
body {
    overflow-x: hidden;
}

body.mobile-search-open {
    overflow: hidden;
}

/* ============================
   MOBILE / TABLET
============================ */
@media (min-width: 769px) and (max-width: 1199.98px) {
    #searchBar.search-fixed {
        width: clamp(360px, 48vw, 520px) !important;
        max-width: 520px !important;
    }

    #searchBar.search-compact .search-item {
        min-width: 0;
    }

    #searchBar.search-compact .search-item:first-of-type {
        flex: 1.5 1 0;
    }

    #searchBar.search-compact .search-item:nth-of-type(2) {
        flex: 0.7 1 0;
    }

    #searchBar.search-fixed .search-item:nth-of-type(3),
    #searchBar.search-fixed .search-item:nth-of-type(4) {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-search-section {
        min-height: 150px;
    }

}

@media (max-width: 768px) {
    .hero-search-section {
        min-height: 102px;
    }

    #searchBar {
        will-change: auto;
    }

    #searchBar.search-fixed {
        position: fixed !important;
        top: 8px !important;
        right: auto !important;
        bottom: auto !important;
        left: 16px !important;
        transform: none !important;
        width: calc(100% - 32px) !important;
        max-width: none !important;
        margin: 0 !important;
        border-radius: 999px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    #searchBar.search-compact {
        min-height: 70px;
        padding: 0 !important;
        gap: 0 !important;
    }

    #searchBar.search-fixed .search-item {
        display: none;
    }

    #searchBar.search-fixed .search-item:first-of-type {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0 8px;
    }

    #searchBar.search-compact .search-fields .search-btn {
        width: 100% !important;
        height: 50px !important;
        border-radius: 14px !important;
        font-size: 16px !important;
    }
}

@media (max-width: 480px) {
    .main-header,
    .site-header {
        padding: 10px 0;
    }

    .brand-logo {
        gap: 8px;
        font-size: 18px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 17px;
    }

    .public-page-heading {
        gap: 16px;
    }

    .room-details-section .public-page-heading h1 {
        font-size: 24px;
    }

    .public-back-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 19px;
    }

    .host-link {
        padding: 8px 10px;
        font-size: 14px;
    }

    .header-actions .dropdown-toggle {
        max-width: 145px;
        padding: 8px 10px;
    }

    .section-header p {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .hero-search-section {
        min-height: 0;
        padding-top: 18px;
    }

    .featured-properties-section,
    .listing-section {
        padding-top: 26px;
    }

    .property-showcase-toolbar span {
        display: none;
    }

    .property-gallery-grid,
    .property-gallery-count-1,
    .property-gallery-count-2,
    .property-gallery-count-3 {
        height: 245px;
        border-radius: 18px;
    }

    .property-gallery-view-all {
        padding: 9px 12px;
        font-size: 12px;
    }

    .property-summary-copy h1 {
        font-size: 30px;
    }

    .property-summary-address {
        font-size: 14px;
    }

    .property-summary-badges {
        align-items: stretch;
        flex-direction: column;
    }

    .property-summary-badges > span {
        justify-content: center;
    }

    .property-summary-action > strong {
        font-size: 23px;
    }

    .featured-properties-heading {
        align-items: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .featured-properties-heading .section-header {
        flex: 1 1 100%;
        width: 100%;
        max-width: calc(100vw - 48px);
    }

    .featured-properties-controls {
        gap: 6px;
    }

    .featured-properties-controls button {
        width: 40px;
        height: 40px;
    }

    .featured-properties-track {
        gap: 14px;
    }

    .property-card {
        flex-basis: 92%;
    }

    .property-card:only-child {
        flex-basis: 100%;
    }

    .section-header h2,
    .property-info-section h1,
    .room-details-section h1,
    .cta-card h2 {
        font-size: 23px;
    }

    .property-image-wrapper,
    .listing-image-wrapper {
        height: 200px;
    }

    .property-hero img {
        height: 220px;
    }

    .property-card,
    .listing-card {
        border-radius: 20px;
    }

    .gallery-grid {
        display: block;
    }

    .gallery-grid img,
    .gallery-grid .main-img {
        width: 100%;
        height: 220px;
        margin-bottom: 10px;
    }

    .gallery-grid .gallery-image-button {
        width: 100%;
        height: 220px;
        margin-bottom: 10px;
    }

    .gallery-grid .gallery-image-button img {
        height: 100%;
        margin: 0;
    }

    .room-lightbox {
        grid-template-columns: 64px minmax(0, 1fr) 64px;
        grid-template-rows: 64px minmax(0, 1fr);
    }

    .room-lightbox-toolbar {
        padding: 8px 12px;
    }

    .room-lightbox-stage {
        padding: 12px 0;
    }

    .room-lightbox-stage img {
        border-radius: 18px;
    }

    .room-lightbox-close,
    .room-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .footer-language {
        width: 100%;
        justify-content: space-between;
    }

    .theme-toggle {
        justify-content: center;
    }
}

html{
    scroll-behavior: smooth;
}
#available-listings{
    scroll-margin-top: 130px; /* height of fixed search bar + some spacing */
}
#available-units{
    scroll-margin-top: 120px; /* height of fixed search bar + some spacing */
}

/* ============================
   AMENITY CARDS
============================ */
.amenity-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
}

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

.amenity-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.amenity-content {
    padding: 16px;
}

.amenity-content h6 {
    font-size: 16px;
    margin-bottom: 8px;
}

.amenity-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
}

/* ============================
   DARK THEME
============================ */
html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background: #121417;
    color: #f3f4f6;
}

html[data-theme="dark"] .main-header,
html[data-theme="dark"] .site-header {
    background: rgba(18, 20, 23, 0.96);
    border-bottom-color: #30343b;
}

@media (max-width: 420px) {
    .brand-logo span {
        display: none;
    }

    .header-actions {
        gap: 4px;
    }

    .host-link {
        padding-inline: 8px;
    }
}

html[data-theme="dark"] .public-back-button {
    background: #292d33;
    color: #f3f4f6;
}

html[data-theme="dark"] .public-back-button:hover,
html[data-theme="dark"] .public-back-button:focus-visible {
    background: #343941;
    color: #fff;
}

html[data-theme="dark"] .nav-chip,
html[data-theme="dark"] .host-link,
html[data-theme="dark"] .footer-left a,
html[data-theme="dark"] .footer-right a,
html[data-theme="dark"] .details-list li,
html[data-theme="dark"] .listing-info span {
    color: #f3f4f6;
}

html[data-theme="dark"] .nav-chip.active,
html[data-theme="dark"] .nav-chip:hover {
    color: #fff;
    border-bottom-color: #fff;
}

html[data-theme="dark"] .host-link:hover,
html[data-theme="dark"] .profile-menu,
html[data-theme="dark"] .dropdown-item:hover {
    background: #292d33;
    color: #fff;
}

html[data-theme="dark"] .hero-search-section {
    background: linear-gradient(to bottom, #121417, #171a1f);
    border-bottom-color: #30343b;
}

html[data-theme="dark"] .search-bar,
html[data-theme="dark"] #searchBar.search-fixed,
html[data-theme="dark"] .property-card,
html[data-theme="dark"] .property-info,
html[data-theme="dark"] .listing-card,
html[data-theme="dark"] .listing-info,
html[data-theme="dark"] .property-info-section,
html[data-theme="dark"] .amenity-card,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .card {
    background: #1b1e23 !important;
    border-color: #343941 !important;
    color: #f3f4f6;
}

html[data-theme="dark"] .search-item small,
html[data-theme="dark"] .property-info p,
html[data-theme="dark"] .property-unit-types,
html[data-theme="dark"] .listing-info p,
html[data-theme="dark"] .feature-box p,
html[data-theme="dark"] .text-muted {
    color: #b8bec8 !important;
}

html[data-theme="dark"] .featured-properties-controls button {
    color: #f3f4f6;
    border-color: #3a4049;
    background: #1b1e23;
}

html[data-theme="dark"] .featured-properties-controls button:hover:not(:disabled) {
    border-color: #ff6b85;
    background: #292d33;
}

html[data-theme="dark"] .property-card-footer {
    border-top-color: #343941;
}

html[data-theme="dark"] .property-price-summary strong,
html[data-theme="dark"] .property-unit-summary strong {
    color: #f3f4f6;
}

html[data-theme="dark"] .property-price-summary strong span {
    color: #b8bec8;
}

html[data-theme="dark"] .property-price-summary small,
html[data-theme="dark"] .property-unit-summary small {
    color: #adb5bd;
}

html[data-theme="dark"] .property-card-link-icon {
    color: #ff8298;
    background: #35242a;
}

html[data-theme="dark"] .search-item input,
html[data-theme="dark"] .search-item select,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    color: #f3f4f6;
}

html[data-theme="dark"] select {
    color-scheme: dark;
}

html[data-theme="dark"] select option {
    color: #f3f4f6;
    background-color: #1b1e23;
}

html[data-theme="dark"] select option:checked {
    color: #fff;
    background: #ff385c linear-gradient(0deg, #ff385c 0%, #ff385c 100%);
}

html[data-theme="dark"] select option:disabled {
    color: #7f8792;
}

html[data-theme="dark"] .search-item select:focus-visible {
    border-radius: 8px;
    outline: 2px solid #ff6b85;
    outline-offset: 4px;
}

html[data-theme="dark"] .search-item input::placeholder,
html[data-theme="dark"] .form-control::placeholder {
    color: #9299a5;
}

html[data-theme="dark"] .mobile-search-trigger,
html[data-theme="dark"] .search-fields {
    color: #f3f4f6;
    background: #1b1e23;
}

html[data-theme="dark"] .mobile-search-copy span {
    color: #b8bec8;
}

html[data-theme="dark"] .mobile-filter-icon,
html[data-theme="dark"] .search-fields .search-item {
    border-color: #3a4049;
}

html[data-theme="dark"] .mobile-search-close {
    color: #f3f4f6;
    background: #292d33;
}

html[data-theme="dark"] .feature-box,
html[data-theme="dark"] .empty-state {
    background: #1b1e23;
    border-color: #3a4049;
}

html[data-theme="dark"] .price-card {
    background: #1b1e23;
    border-color: #343941;
}

html[data-theme="dark"] .fee-badge {
    background: #252930;
}

html[data-theme="dark"] .hall-booking-grid,
html[data-theme="dark"] .hall-booking-grid label:first-child,
html[data-theme="dark"] .hall-guests-field {
    border-color: #505761;
}

html[data-theme="dark"] .hall-guests-field small {
    color: #b8bec8;
}

html[data-theme="dark"] .booking-summary {
    border-color: #343941;
}

html[data-theme="dark"] .dropdown .btn-light {
    background: #22262c;
    border-color: #3a4049;
    color: #f3f4f6;
}

html[data-theme="dark"] .dropdown-item {
    color: #e5e7eb;
}

html[data-theme="dark"] .listing-info .status-pill.available {
    background: #163c2b;
    border-color: #2f7552;
    color: #9aebbd;
}

html[data-theme="dark"] .listing-info .status-pill.reserved {
    background: #493515;
    border-color: #8b6425;
    color: #ffd083;
}

html[data-theme="dark"] .listing-info .status-pill.occupied,
html[data-theme="dark"] .listing-info .status-pill.full {
    background: #4a2029;
    border-color: #864052;
    color: #ffabba;
}

html[data-theme="dark"] .listing-info .status-pill.secondary {
    background: #30343a;
    border-color: #555b64;
    color: #d7dbe1;
}

html[data-theme="dark"] .property-badge,
html[data-theme="dark"] .wishlist-btn {
    background: rgba(27, 30, 35, 0.94);
    color: #f3f4f6;
}

html[data-theme="dark"] .wishlist-btn:hover,
html[data-theme="dark"] .wishlist-btn:focus {
    background: #292d33;
    color: #ff6b86;
}

html[data-theme="dark"] .site-footer {
    background: #17191d;
    border-top-color: #30343b;
}

html[data-theme="dark"] .footer-top ul li a {
    color: #d4d7dd;
}

html[data-theme="dark"] .footer-bottom {
    border-top-color: #343941;
}

html[data-theme="dark"] .footer-language select,
html[data-theme="dark"] .theme-toggle {
    background-color: #22262c;
    border-color: #454b55;
    color: #f3f4f6;
}

html[data-theme="dark"] .theme-toggle:hover {
    background: #30353d;
}

html[data-theme="dark"] .pagination .page-link {
    background: #1b1e23;
    border-color: #3a4049;
    color: #f3f4f6;
}

html[data-theme="dark"] .pagination .page-link:hover {
    background: #292d33;
    color: #fff;
}

html[data-theme="dark"] .policy-container {
    color: #e5e7eb;
}

html[data-theme="dark"] .toc,
html[data-theme="dark"] .policy-section {
    background: #1b1e23;
    border-color: #8b9cff;
    color: #e5e7eb;
}

html[data-theme="dark"] .toc h3,
html[data-theme="dark"] .policy-section h2,
html[data-theme="dark"] .policy-section h3,
html[data-theme="dark"] .policy-section h4,
html[data-theme="dark"] .policy-section strong,
html[data-theme="dark"] .guideline-content h3 {
    color: #f3f4f6;
}

html[data-theme="dark"] .toc a,
html[data-theme="dark"] .policy-item h3,
html[data-theme="dark"] .guideline-icon,
html[data-theme="dark"] .last-updated strong {
    color: #aab5ff;
}

html[data-theme="dark"] .policy-section p,
html[data-theme="dark"] .policy-section ul li,
html[data-theme="dark"] .policy-item p,
html[data-theme="dark"] .policy-item ul li,
html[data-theme="dark"] .guideline-content p,
html[data-theme="dark"] .last-updated,
html[data-theme="dark"] .last-updated p {
    color: #c4c9d1;
}

html[data-theme="dark"] .highlight-box,
html[data-theme="dark"] .guideline-item,
html[data-theme="dark"] .policy-item,
html[data-theme="dark"] .data-table td:first-child {
    background: linear-gradient(135deg, #242830 0%, #20242a 100%);
    color: #e5e7eb;
}

html[data-theme="dark"] .data-table td,
html[data-theme="dark"] .data-table tr,
html[data-theme="dark"] .last-updated {
    border-color: #3a4049;
}

html[data-theme="dark"] .data-table tr:hover {
    background-color: #252930;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #17191d;
}

html[data-theme="dark"] .property-showcase-section,
html[data-theme="dark"] .property-summary-section {
    background: #121417;
}

html[data-theme="dark"] .property-showcase-toolbar,
html[data-theme="dark"] .property-summary-address {
    color: #b8bec8;
}

html[data-theme="dark"] .property-summary-action,
html[data-theme="dark"] .property-stat-card,
html[data-theme="dark"] .property-unit-no-results {
    color: #f3f4f6;
    border-color: #343941;
    background: #1b1e23;
}

html[data-theme="dark"] .property-summary-action > strong,
html[data-theme="dark"] .property-stat-card strong,
html[data-theme="dark"] .property-unit-price {
    color: #f3f4f6;
}

html[data-theme="dark"] .property-summary-action > small,
html[data-theme="dark"] .property-summary-action > strong span,
html[data-theme="dark"] .property-stat-card small,
html[data-theme="dark"] .property-unit-price small {
    color: #b8bec8;
}

html[data-theme="dark"] .property-summary-availability {
    color: #c3c8d0;
}

html[data-theme="dark"] .property-summary-badges > span {
    color: #d7dbe1;
    border-color: #3a4049;
    background: #22262c;
}

html[data-theme="dark"] .property-units-section {
    background: #15171b;
}

html[data-theme="dark"] .property-unit-filter-bar {
    border-color: #343941;
    background: rgba(27, 30, 35, 0.94);
}

html[data-theme="dark"] .property-unit-filter-bar button {
    color: #c9cdd4;
}

html[data-theme="dark"] .property-unit-filter-bar button:hover {
    color: #ff93a6;
    background: #35242a;
}

html[data-theme="dark"] .property-unit-filter-bar button span {
    color: #ff93a6;
    background: #35242a;
}

html[data-theme="dark"] .property-unit-filter-bar button.is-active {
    color: #fff;
    background: #ff385c;
}

html[data-theme="dark"] .property-unit-filter-bar button.is-active span {
    color: #c72c4b;
    background: #fff;
}

html[data-theme="dark"] .property-unit-features span {
    color: #cbd0d8;
    background: #252930;
}

html[data-theme="dark"] .property-gallery-view-all,
html[data-theme="dark"] .room-gallery-view-all,
html[data-theme="dark"] .unit-photo-nav {
    color: #f3f4f6;
    border-color: #4a505a;
    background: rgba(27, 30, 35, 0.94);
}

html[data-theme="dark"] .property-gallery-view-all:hover,
html[data-theme="dark"] .room-gallery-view-all:hover,
html[data-theme="dark"] .unit-photo-nav:hover {
    background: #292d33;
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle {
        transition: none;
    }
}
