* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow on small screens */
@media (max-width: 768px) {
    * {
        max-width: 100%;
    }
    
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    img, video, iframe, embed, object, svg {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100%;
        max-width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    pre, code {
        overflow-x: auto;
        max-width: 100%;
        word-wrap: break-word;
    }
}

:root {
    --primary-white: #ffffff;
    --dark-blue: #003580;
    --light-blue: #0071C2;
    --primary-blue: #0071C2;
    --yellow-accent: #FEBB02;
    --black-text: #000000;
    --dark-text: #000000;
    --medium-text: #6B6B6B;
    --muted-text: #888888;
    --light-gray: #F2F2F2;
    --medium-gray: #F2F2F2;
    --border-color: #F2F2F2;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
    --input-bg: #ffffff;
    --surface-elevated: #ffffff;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--dark-text);
    background-color: var(--primary-white);
    line-height: 1.7;
    font-size: 16px;
    letter-spacing: -0.01em;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* RTL/LTR Support */
html[dir="ltr"], body[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"], body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

/* Header RTL/LTR adjustments */
html[dir="rtl"] .header .container {
    flex-direction: row;
}

html[dir="ltr"] .header .container {
    flex-direction: row;
}

html[dir="rtl"] .nav ul {
    flex-direction: row;
}

html[dir="ltr"] .nav ul {
    flex-direction: row;
}

html[dir="rtl"] .lang-switcher {
    margin-left: auto;
    margin-right: 0;
}

html[dir="ltr"] .lang-switcher {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .menu-toggle {
    margin-left: 1rem;
    margin-right: 0;
}

html[dir="ltr"] .menu-toggle {
    margin-left: 0;
    margin-right: 1rem;
}

/* Footer RTL/LTR adjustments */
html[dir="rtl"] .footer-section ul li:hover {
    transform: translateX(5px);
}

html[dir="ltr"] .footer-section ul li:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .footer-section a:hover {
    transform: translateX(5px);
}

html[dir="ltr"] .footer-section a:hover {
    transform: translateX(-5px);
}

/* General RTL/LTR adjustments for icons and spacing */
html[dir="rtl"] .fa-arrow-left::before {
    content: "\f061";
}

html[dir="ltr"] .fa-arrow-left::before {
    content: "\f060";
}

html[dir="rtl"] .fa-arrow-right::before {
    content: "\f060";
}

html[dir="ltr"] .fa-arrow-right::before {
    content: "\f061";
}

/* Text alignment adjustments */
html[dir="rtl"] .text-left {
    text-align: right;
}

html[dir="ltr"] .text-left {
    text-align: left;
}

html[dir="rtl"] .text-right {
    text-align: left;
}

html[dir="ltr"] .text-right {
    text-align: right;
}

/* Float adjustments */
html[dir="rtl"] .float-left {
    float: right;
}

html[dir="ltr"] .float-left {
    float: left;
}

html[dir="rtl"] .float-right {
    float: left;
}

html[dir="ltr"] .float-right {
    float: right;
}

/* Margin and padding logical properties */
html[dir="rtl"] [class*="mr-"],
html[dir="rtl"] [class*="margin-right"] {
    margin-left: var(--spacing);
    margin-right: 0;
}

html[dir="ltr"] [class*="mr-"],
html[dir="ltr"] [class*="margin-right"] {
    margin-right: var(--spacing);
    margin-left: 0;
}

html[dir="rtl"] [class*="ml-"],
html[dir="rtl"] [class*="margin-left"] {
    margin-right: var(--spacing);
    margin-left: 0;
}

html[dir="ltr"] [class*="ml-"],
html[dir="ltr"] [class*="margin-left"] {
    margin-left: var(--spacing);
    margin-right: 0;
}

html[dir="rtl"] [class*="pr-"],
html[dir="rtl"] [class*="padding-right"] {
    padding-left: var(--spacing);
    padding-right: 0;
}

html[dir="ltr"] [class*="pr-"],
html[dir="ltr"] [class*="padding-right"] {
    padding-right: var(--spacing);
    padding-left: 0;
}

html[dir="rtl"] [class*="pl-"],
html[dir="rtl"] [class*="padding-left"] {
    padding-right: var(--spacing);
    padding-left: 0;
}

html[dir="ltr"] [class*="pl-"],
html[dir="ltr"] [class*="padding-left"] {
    padding-left: var(--spacing);
    padding-right: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 1rem 0;
    }
    
    .header .container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .logo {
        flex: 0 0 auto;
        max-width: calc(100% - 100px);
    }
    
    .logo a {
        gap: 0.5rem;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.3rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .lang-switcher {
        flex: 0 0 auto;
    }
    
    .menu-toggle {
        flex: 0 0 auto;
    }
    
    .footer {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 60px 0 90px;
    }
    
    .footer .container {
        width: 100%;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-section {
        width: 100%;
        max-width: 100%;
    }
    
    img, video, iframe, embed, object {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100%;
        max-width: 100%;
        display: block;
        overflow-x: auto;
    }
}

@media (max-width: 375px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        width: 100%;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .footer .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Header */
/* Top Promo Wrapper: عداد الخصم + شريط التمرير - مع احترام منطقة الأمان على الآيفون */
.top-promo-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    padding-top: env(safe-area-inset-top, 0px);
}

/* Countdown Bar - عداد الخصم التنازلي */
.countdown-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 6px 12px;
    padding-inline-start: 52px;
    min-height: 48px;
    background: linear-gradient(135deg, #002a5c 0%, var(--dark-blue) 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid rgba(254, 187, 2, 0.25);
}

.countdown-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

/* زر القائمة + روابط الدخول/التسجيل (موبايل) — بجوار العداد */
.countdown-bar-leading {
    position: absolute;
    inset-inline-start: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

/* زر القائمة بجوار العداد — أبيض واضح على الخلفية الداكنة */
.menu-toggle-in-countdown {
    position: relative;
    inset: auto;
    top: auto;
    transform: none;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.countdown-bar-leading .menu-toggle-in-countdown:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.countdown-bar-leading .menu-toggle-in-countdown:active {
    transform: scale(0.98);
}

.menu-toggle-in-countdown i {
    font-size: 1.2rem;
    color: #ffffff !important;
    line-height: 1;
}

.menu-toggle-in-countdown:focus-visible {
    outline: 2px solid var(--yellow-accent);
    outline-offset: 2px;
}

.countdown-bar-auth-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.countdown-bar-auth-icon i {
    font-size: 1rem;
    color: #ffffff !important;
    line-height: 1;
}

.countdown-bar-auth-icon:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.countdown-bar-auth-icon--favorites {
    position: relative;
}

.countdown-bar-favorites-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .countdown-bar--with-mobile-auth .countdown-bar-auth-icon {
        display: inline-flex;
    }

    .countdown-bar--with-mobile-auth {
        padding-inline-start: 168px;
    }
}

.countdown-label {
    color: rgba(255, 255, 255, 0.95);
}

.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Flip Card - كارت يتقلب كالنتيجة */
.countdown-flip-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.countdown-flip-inner {
    position: relative;
    width: 42px;
    height: 48px;
    perspective: 120px;
    transform-style: preserve-3d;
}

.countdown-flip-face {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 100%);
    box-shadow: 
        0 2px 0 rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(254, 187, 2, 0.35);
    overflow: hidden;
}

.countdown-flip-face span {
    font-variant-numeric: tabular-nums;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.countdown-flip-current {
    transform: rotateX(0deg);
    z-index: 2;
}

.countdown-flip-next {
    transform: rotateX(180deg);
    z-index: 1;
}

.countdown-flip-inner.flip {
    animation: countdownFlip 0.5s ease-in-out forwards;
}

@keyframes countdownFlip {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-180deg); }
}

.countdown-flip-inner.flip .countdown-flip-current {
    z-index: 1;
}

.countdown-flip-inner.flip .countdown-flip-next {
    z-index: 2;
}

.countdown-unit-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--yellow-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.countdown-sep {
    color: var(--yellow-accent);
    font-weight: 700;
    font-size: 18px;
    margin: 0 2px;
    line-height: 1;
    align-self: center;
}

/* Announcement Bar */
.announcement-bar {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--dark-blue);
    color: #ffffff;
    overflow: hidden;
}

.announcement-bar-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.announcement-bar-content {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    transform: translateZ(0); /* Force hardware acceleration on iOS */
    backface-visibility: hidden;
    /* Animation will be set by JavaScript */
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 12px 60px;
    min-width: fit-content;
    flex-shrink: 0;
    justify-content: center;
}

.announcement-item::after {
    content: '•';
    margin-left: 60px;
    opacity: 0.7;
    font-size: 0.8em;
}

.announcement-item:last-of-type::after {
    display: none;
}

.announcement-text {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

@keyframes scrollAnnouncements {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* الهيدر يلتصق أسفل الشريط المتحرك على الديسكتوب */
.top-promo-wrapper ~ .header,
body:has(.top-promo-wrapper) .header {
    top: 50px;
}

/* Add padding to body when countdown + announcement exist (مع منطقة الأمان للآيفون) */
body:has(.top-promo-wrapper) {
    padding-top: calc(82px + env(safe-area-inset-top, 0px));
}

/* Responsive Announcement Bar - تكبير الشريط والنص على الموبايل */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .announcement-item {
        padding: 14px 24px;
        gap: 10px;
    }
    
    .announcement-item::after {
        margin-left: 24px;
    }
    
    .announcement-text {
        font-size: 15px;
        font-weight: 600;
    }
    
    .countdown-bar {
        font-size: 10px;
        padding: 4px 8px;
        padding-inline-start: 46px;
        min-height: 44px;
    }

    .countdown-bar-leading {
        inset-inline-start: 6px;
        gap: 4px;
    }

    .countdown-bar--with-mobile-auth {
        padding-inline-start: 154px;
    }

    .countdown-bar-auth-icon {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .countdown-bar-auth-icon i {
        font-size: 0.95rem;
    }
    
    .menu-toggle-in-countdown {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .menu-toggle-in-countdown i {
        font-size: 1.05rem;
    }
    .countdown-flip-inner {
        width: 28px;
        height: 32px;
        perspective: 90px;
    }
    .countdown-flip-face span { font-size: 15px; }
    .countdown-unit-label { font-size: 8px; }
    .countdown-sep { font-size: 12px; }
    
    body:has(.top-promo-wrapper) {
        padding-top: calc(98px + env(safe-area-inset-top, 0px));
    }
    
    .top-promo-wrapper ~ .header,
    body:has(.top-promo-wrapper) .header {
        top: 0px;
    }
}

@media (max-width: 480px) {
    .announcement-bar {
        min-height: 44px;
    }
    
    .announcement-item {
        padding: 12px 18px;
    }
    
    .announcement-item::after {
        margin-left: 18px;
    }
    
    .announcement-text {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .announcement-item {
        padding: 10px 14px;
    }
    
    .announcement-item::after {
        margin-left: 14px;
    }
    
    .announcement-text {
        font-size: 13px;
    }
}

/* Header - منطقة أمان الآيفون عند عدم وجود شريط علوي */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Header Search - بحث الشقق */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-search-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    max-width: 320px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.header-search-form:focus-within {
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 2px rgba(0, 53, 128, 0.15);
}

.header-search-input {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.header-search-input::placeholder {
    color: var(--medium-text);
}

.header-search-input:focus {
    outline: none;
}

.header-search-btn {
    padding: 0.5rem 0.85rem;
    border: none;
    background: var(--dark-blue);
    color: var(--primary-white);
    cursor: pointer;
    transition: background 0.2s;
}

.header-search-btn:hover {
    background: #002a5c;
}

.header-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 320px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.header-search-results.is-open {
    display: block;
}

.header-search-results a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.15s;
}

.header-search-results a:last-child {
    border-bottom: none;
}

.header-search-results a:hover {
    background: var(--light-gray);
}

.header-search-results .search-result-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.header-search-results .search-result-info {
    flex: 1;
    min-width: 0;
}

.header-search-results .search-result-name {
    font-weight: 600;
    color: var(--dark-blue);
}

.header-search-results .search-result-meta {
    font-size: 0.8rem;
    color: var(--medium-text);
    margin-top: 2px;
}

@media (max-width: 992px) {
    .header-search-wrap {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .header-search-wrap {
        max-width: 180px;
    }
    .header-search-input {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    .header-search-input::placeholder {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-search-wrap {
        max-width: 100%;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.logo a:hover {
    opacity: 0.9;
}

.logo-image {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: var(--dark-blue);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: all 0.3s;
    margin: 0;
}

@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav a i {
    display: none;
}

.nav a span {
    display: inline;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--dark-blue);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="rtl"] .nav a::after {
    right: 0;
    left: auto;
}

html[dir="ltr"] .nav a::after {
    left: 0;
    right: auto;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: var(--dark-blue);
}

.nav a.active {
    color: var(--dark-blue);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    background: var(--light-gray);
    padding: 0.25rem;
    border-radius: 12px;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--medium-text);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.875rem;
}

.lang-btn:hover {
    color: var(--dark-blue);
    background: rgba(0, 53, 128, 0.1);
}

.lang-btn.active {
    background: var(--dark-blue);
    color: var(--primary-white);
    box-shadow: var(--shadow-sm);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section - مقاسات موحدة لجميع الشاشات */
.hero {
    background: url('https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?w=1920') center center / cover no-repeat;
    color: var(--primary-white);
    padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 24px);
    min-height: clamp(420px, 85vh, 720px);
    max-height: 100vh;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 53, 128, 0.85) 0%, rgba(0, 53, 128, 0.65) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

.hero-text {
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.hero-tagline {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-pwa-cta {
    margin-top: 1rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-pwa-text {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-pwa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    color: #003580;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-pwa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.hero-pwa-btn i {
    font-size: 1rem;
}

.hero-search-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,255,255,0.5);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    max-width: 720px;
    margin: 0 auto;
}

.booking-search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: end;
}

.search-form-group {
    position: relative;
}

body[dir="rtl"] .search-form-group {
    text-align: right;
}

body[dir="ltr"] .search-form-group {
    text-align: left;
}

.search-form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.search-form-group input[type="date"],
.search-form-group input[type="text"],
.search-form-group select {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--dark-text);
    background: var(--primary-white);
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-height: 50px;
}

body[dir="rtl"] .search-form-group input[type="date"],
body[dir="rtl"] .search-form-group input[type="text"],
body[dir="rtl"] .search-form-group select {
    padding: 1rem 1rem 1rem 3rem;
    direction: rtl;
}

/* Hide default calendar icon on date input */
.search-form-group input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    right: 0;
    left: 0;
    z-index: 2;
}

.search-form-group select {
    background-image: none;
}

.search-form-group input[type="text"] {
    cursor: text;
}

.search-form-group input[type="date"]:focus,
.search-form-group input[type="text"]:focus,
.search-form-group select:focus {
    outline: none;
    border-color: var(--yellow-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

.search-form-group i {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: var(--muted-text);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
    transform: translateY(0);
}

body[dir="ltr"] .search-form-group i {
    right: auto;
    left: 1rem;
}

/* Ensure icons are properly positioned on all screen sizes */
@media (max-width: 768px) {
    .search-form-group {
        position: relative;
    }
    
    .search-form-group i {
        transform: translateY(0);
    }
}

.search-submit-btn {
    padding: 1rem 2.5rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 53, 128, 0.3);
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: var(--yellow-accent);
    color: var(--dark-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* روابط سريعة تحت زر البحث — الصفحة الرئيسية */
.hero-quick-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 53, 128, 0.12);
}

.hero-quick-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-height: 46px;
}

.hero-quick-nav-btn i {
    font-size: 1rem;
    opacity: 0.95;
}

.hero-quick-nav-btn--apartments {
    background: rgba(0, 53, 128, 0.08);
    color: var(--dark-blue);
    border-color: rgba(0, 53, 128, 0.2);
}

.hero-quick-nav-btn--apartments:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 53, 128, 0.25);
}

.hero-quick-nav-btn--offers {
    background: rgba(254, 187, 2, 0.15);
    color: var(--dark-text);
    border-color: rgba(254, 187, 2, 0.45);
}

.hero-quick-nav-btn--offers:hover {
    background: var(--yellow-accent);
    color: var(--dark-text);
    border-color: var(--yellow-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(254, 187, 2, 0.35);
}

.hero-quick-nav-btn--ownership {
    background: rgba(30, 158, 74, 0.12);
    color: #157347;
    border-color: rgba(30, 158, 74, 0.35);
}

.hero-quick-nav-btn--ownership:hover {
    background: #1e9e4a;
    color: var(--primary-white);
    border-color: #1e9e4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(30, 158, 74, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-white);
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

.contact-item:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: rgba(255,255,255,0.5);
}

.social-media {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: var(--primary-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.1rem;
}

.social-icon:hover {
    background: rgba(255,255,255,0.35);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.5);
}

/* Booking Section */
.booking-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--primary-white) 0%, var(--light-gray) 100%);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.booking-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.booking-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.booking-btn {
    padding: 1.5rem 2rem;
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--dark-text);
    box-shadow: var(--shadow-sm);
}

.booking-btn:hover {
    border-color: var(--yellow-accent);
    border-radius: 12px;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #fff 0%, #fffef0 100%);
}

.booking-btn.primary {
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 53, 128, 0.3);
}

.booking-btn.primary:hover {
    box-shadow: 0 8px 30px rgba(0, 53, 128, 0.4);
    transform: translateY(-4px) scale(1.02);
}

.booking-btn i {
    font-size: 1.5rem;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--dark-blue);
    border-radius: 2px;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: var(--border-color);
}

/* Home Video Section (above intro) */
.home-video-section {
    padding: 72px 0;
    background: var(--primary-white);
}

.home-video-section--light {
    background: var(--light-gray);
}

.home-video-section--dark {
    background: #0f172a;
    color: #f8fafc;
}

.home-video-section--dark .home-video-section__subtitle,
.home-video-section--dark .home-video-section__description,
.home-video-section--dark .home-video-autoplay-note {
    color: rgba(248, 250, 252, 0.82);
}

.home-video-section--gradient {
    background: linear-gradient(135deg, #003580 0%, #0071c2 55%, #0ea5e9 100%);
    color: #fff;
}

.home-video-section--gradient .home-video-section__subtitle,
.home-video-section--gradient .home-video-section__description,
.home-video-section--gradient .home-video-autoplay-note {
    color: rgba(255, 255, 255, 0.9);
}

.home-video-section__title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.home-video-section__subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: var(--medium-text);
    margin: 0 0 1rem;
}

.home-video-section__description {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.75rem;
    color: var(--medium-text);
    line-height: 1.8;
}

.home-video-player {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.home-video-embed-wrap {
    background: #000;
}

.home-video-embed-wrap iframe,
.home-video-embed-wrap video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0;
}

.home-video-native {
    object-fit: contain;
    background: #000;
}

.home-video-lazy-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.home-video-lazy-embed .home-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-video-play-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
    width: 100%;
    height: 100%;
}

.home-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-video-play-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.home-video-play-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.home-video-play-btn i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a73e8, #0d47a1);
    color: #fff;
}

.home-video-autoplay-note {
    text-align: center;
    margin: 1rem auto 0;
    max-width: 760px;
    font-size: 0.92rem;
    color: var(--medium-text);
}

@media (max-width: 768px) {
    .home-video-section {
        padding: 48px 0;
    }

    .home-video-section__title {
        font-size: 1.65rem;
    }

    .home-video-section__subtitle {
        font-size: 1rem;
    }

    .home-video-player {
        border-radius: 14px;
    }

    .home-video-play-btn {
        padding: 0.85rem 1.15rem;
        font-size: 0.92rem;
    }
}

[data-theme="dark"] .home-video-section--default,
[data-theme="dark"] .home-video-section--light {
    background: var(--primary-white);
}

/* Introduction Section */
.intro-section {
    padding: 100px 0;
    background: var(--primary-white);
}

/* Special Styling for Intro Title */
.intro-title-wrapper {
    position: relative;
    padding: 3rem 2rem;
    margin: 2rem 0 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.title-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 150%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 53, 128, 0.15) 0%,
        rgba(0, 113, 194, 0.1) 30%,
        rgba(255, 215, 0, 0.08) 60%,
        transparent 100%);
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.intro-special-title {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible;
}

/* Title Decorations */
.title-top-decoration,
.title-bottom-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin: 0.5rem 0;
}

.deco-line {
    flex: 1;
    max-width: 200px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--yellow-accent) 20%,
        var(--dark-blue) 50%,
        var(--yellow-accent) 80%,
        transparent);
    border-radius: 10px;
    animation: line-shimmer 3s ease-in-out infinite;
}

@keyframes line-shimmer {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

.deco-star {
    font-size: 1.5rem;
    animation: star-spin 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
}

@keyframes star-spin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 1;
    }
}

.deco-wave {
    font-size: 1.8rem;
    animation: wave-flow 2s ease-in-out infinite;
}

@keyframes wave-flow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(10deg);
    }
}

/* Title Main Content */
.title-main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}

/* Emoji Bursts */
.emoji-burst-left,
.emoji-burst-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.emoji-item {
    font-size: 2.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    position: relative;
}

.emoji-1 {
    animation: wave-hand 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave-hand {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    10%, 30% {
        transform: rotate(25deg) scale(1.15);
    }
    20% {
        transform: rotate(-20deg) scale(1.1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
}

.emoji-2 {
    animation: sparkle-rotate 2s ease-in-out infinite;
}

.emoji-3 {
    animation: wave-flow 2.5s ease-in-out infinite;
    font-size: 2.2rem;
}

.emoji-4 {
    animation: beach-sway 3s ease-in-out infinite;
    font-size: 2.8rem;
}

.emoji-5 {
    animation: star-twinkle 1.5s ease-in-out infinite;
    font-size: 2rem;
}

.emoji-6 {
    animation: sunrise-glow 4s ease-in-out infinite;
    font-size: 2.2rem;
}

@keyframes sunrise-glow {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 10px rgba(255, 165, 0, 0.5));
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 165, 0, 0.8));
    }
}

/* Title Text Wrapper */
.title-text-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 1rem 2rem;
    position: relative;
}

.title-word {
    background: linear-gradient(135deg, #003580 0%, #0071c2 25%, #ffd700 40%, #0071c2 60%, #003580 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% auto;
    font-weight: 900;
    letter-spacing: -0.01em;
    display: inline-block;
    position: relative;
    font-size: 1em;
    animation: word-float 4s ease-in-out infinite;
    text-shadow: 0 4px 15px rgba(0, 53, 128, 0.2);
}

.word-1 {
    animation-delay: 0s;
}

.word-2 {
    animation-delay: 0.2s;
}

.word-3 {
    animation-delay: 0.4s;
}

.word-5 {
    animation-delay: 0.6s;
}

@keyframes word-float {
    0%, 100% {
        background-position: 0% center;
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-5px) scale(1.02);
    }
    50% {
        background-position: 100% center;
        transform: translateY(-8px) scale(1.05);
    }
    75% {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Highlight Word - Panorama */
.highlight-word {
    position: relative;
    padding: 0.3rem 1rem;
    margin: 0 0.5rem;
    font-size: 1.3em !important;
    z-index: 2;
}

.highlight-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%,
        rgba(255, 237, 78, 0.3) 50%,
        rgba(255, 215, 0, 0.2) 100%);
    border-radius: 20px;
    animation: bg-pulse 2s ease-in-out infinite;
    z-index: -1;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.2);
}

@keyframes bg-pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.highlight-text {
    background: linear-gradient(135deg, 
        #ffd700 0%, 
        #ffed4e 25%, 
        #fff 50%, 
        #ffed4e 75%, 
        #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gold-shimmer 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

@keyframes gold-shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.highlight-sparkle {
    position: absolute;
    top: -8px;
    right: -12px;
    font-size: 0.7em;
    animation: sparkle-rotate 1.5s ease-in-out infinite;
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

/* Hover Effects */
.intro-title-wrapper:hover .title-background-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

.intro-title-wrapper:hover .title-word {
    animation-duration: 2s;
    transform: translateY(-5px);
}

.intro-title-wrapper:hover .highlight-word {
    transform: scale(1.1);
}

.intro-title-wrapper:hover .highlight-bg {
    animation: bg-pulse 1s ease-in-out infinite;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        inset 0 0 30px rgba(255, 215, 0, 0.3);
}

.intro-title-wrapper:hover .emoji-item {
    animation-duration: 1s;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.intro-title-wrapper:hover .deco-star,
.intro-title-wrapper:hover .deco-wave {
    animation-duration: 1.5s;
}

/* Responsive for Intro Special Title */
@media (max-width: 768px) {
    .intro-title-wrapper {
        padding: 2rem 1rem;
        margin: 1.5rem 0 3rem;
    }
    
    .intro-special-title {
        font-size: 2.5rem !important;
        gap: 0.8rem;
    }
    
    .title-main-content {
        gap: 1rem;
    }
    
    .emoji-item {
        font-size: 1.8rem;
    }
    
    .emoji-4 {
        font-size: 2rem;
    }
    
    .title-text-wrapper {
        gap: 0.5rem;
        padding: 0.8rem 1rem;
    }
    
    .title-word {
        font-size: 0.9em;
    }
    
    .highlight-word {
        font-size: 1.15em !important;
        padding: 0.2rem 0.8rem;
        margin: 0 0.3rem;
    }
    
    .deco-line {
        max-width: 120px;
    }
    
    .deco-star,
    .deco-wave {
        font-size: 1.2rem;
    }
    
    .title-background-glow {
        width: 150%;
        height: 180%;
    }
}

@media (max-width: 480px) {
    .intro-title-wrapper {
        padding: 1.5rem 0.5rem;
        margin: 1rem 0 2rem;
    }
    
    .intro-special-title {
        font-size: 1.8rem !important;
        gap: 0.6rem;
    }
    
    .title-main-content {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .emoji-burst-left,
    .emoji-burst-right {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .emoji-item {
        font-size: 1.4rem;
    }
    
    .emoji-4 {
        font-size: 1.6rem;
    }
    
    .title-text-wrapper {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.6rem 0.8rem;
    }
    
    .title-word {
        font-size: 0.85em;
    }
    
    .highlight-word {
        font-size: 1.1em !important;
        padding: 0.2rem 0.6rem;
        margin: 0.2rem 0;
    }
    
    .deco-line {
        max-width: 80px;
        height: 2px;
    }
    
    .deco-star,
    .deco-wave {
        font-size: 1rem;
    }
    
    .title-top-decoration,
    .title-bottom-decoration {
        gap: 1rem;
    }
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.intro-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--medium-text);
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--primary-white);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--yellow-accent);
    box-shadow: var(--shadow-sm);
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 53, 128, 0.2);
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

.feature-item i {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--dark-text);
}

a.feature-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.feature-item-link.feature-item-pay {
    display: grid;
}

.feature-item-pay {
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.15rem 1.35rem;
    text-align: start;
    padding: 1.25rem 1.4rem;
    background: var(--primary-white);
    border: 1px solid rgba(0, 53, 128, 0.14);
    border-inline-start: 4px solid var(--dark-blue);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(11, 26, 58, 0.06);
}

.feature-item-pay:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 53, 128, 0.22);
    border-inline-start-color: #0071c2;
    box-shadow: 0 10px 28px rgba(11, 26, 58, 0.1);
    background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
}

.feature-pay-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(160deg, #f3f7fc 0%, #e9f0f8 100%);
    border: 1px solid rgba(0, 53, 128, 0.1);
}

.feature-pay-icon-wrap i {
    font-size: 1.35rem;
    color: var(--dark-blue);
    margin: 0;
}

.feature-pay-copy {
    min-width: 0;
}

.feature-pay-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.feature-item-pay h3 {
    margin: 0 0 0.35rem;
    color: var(--dark-text);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
}

.feature-pay-sub {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--medium-text);
    max-width: 36rem;
}

.feature-pay-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.feature-pay-cards {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.feature-pay-cards i {
    font-size: 2rem;
    line-height: 1;
    margin: 0;
}

.feature-pay-cards .fa-cc-visa {
    color: #1a1f71;
}

.feature-pay-cards .fa-cc-mastercard {
    color: #eb001b;
}

.feature-pay-link-text {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.feature-pay-link-text i {
    font-size: 0.75rem;
    margin: 0;
    color: inherit;
    transition: transform 0.2s ease;
}

.feature-item-pay:hover .feature-pay-link-text i {
    transform: translateX(-3px);
}

/* Apartments Section */
.apartments-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--light-gray) 0%, var(--primary-white) 100%);
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 2.5rem;
    width: 100%;
}

.apartment-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.apartment-card {
    background: var(--primary-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid var(--yellow-accent);
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(254, 187, 2, 0.3);
    border-color: var(--yellow-accent);
}

.apartment-image-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.apartment-image-link-disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.apartment-image-link-disabled .apartment-image-scroll {
    pointer-events: auto;
}

.apartment-image {
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.apartment-image-scroll {
    display: block;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y;
    cursor: grab;
}
.apartment-image-scroll:active {
    cursor: grabbing;
}

/* تلميح التمرير — يوضح إن الصور ممكن تتقلب */
.apartment-gallery-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 24px;
    color: white;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    animation: galleryHintPulse 2.5s ease-in-out infinite;
}
.apartment-gallery-hint .gallery-hint-arrows {
    pointer-events: auto;
    display: flex;
    gap: 6px;
    font-size: 0.75rem;
    opacity: 0.95;
}
.apartment-gallery-hint .gallery-hint-arrows i {
    cursor: pointer;
    padding: 2px 4px;
    transition: transform 0.2s;
    animation: galleryArrowsBounce 1.5s ease-in-out infinite;
}
.apartment-gallery-hint .gallery-hint-arrows i:hover {
    transform: scale(1.2);
    animation: none;
}
@keyframes galleryArrowsBounce {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}
.apartment-gallery-hint .gallery-hint-text {
    font-weight: 500;
}
@keyframes galleryHintPulse {
    0%, 100% { opacity: 0.9; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(-2px); }
}

/* نقاط التنقل */
.apartment-gallery-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}
.apartment-gallery-hint + .apartment-gallery-dots {
    bottom: 42px;
}
.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.25s, transform 0.2s;
}
.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}
.gallery-dot.active {
    background: white;
    transform: scale(1.15);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.apartment-image-single {
    width: 100%;
    height: 100%;
    position: relative;
}

.apartment-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.apartment-image-scroll .apartment-image-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.25s ease, transform 0.5s ease;
}

.apartment-image.unavailable {
    opacity: 0.7;
}

.apartment-image img {
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    animation: fadeInImage 0.3s ease-in-out forwards;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.apartment-image img[loading="eager"],
.apartment-image img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

.apartment-image.unavailable img {
    filter: grayscale(0.5);
}

.apartment-unavailable-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.unavailable-badge {
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.unavailable-badge i {
    font-size: 1.5rem;
}

.apartment-card:hover .apartment-image-scroll .apartment-image-single img {
    transform: scale(1.05);
}

.apartment-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.apartment-title-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: color 0.3s;
}

.apartment-title-link:hover {
    color: var(--dark-blue);
}

.apartment-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s;
}

.apartment-title-link:hover h3 {
    color: var(--dark-blue);
}

.apartment-desc {
    color: var(--medium-text);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 2.5rem;
}

.apartment-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--medium-text);
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.apartment-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.apartment-features i {
    color: var(--dark-blue);
    font-size: 1rem;
}

.apartment-price {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--dark-blue);
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.apartment-price span {
    font-size: 0.9rem;
    color: var(--muted-text);
    font-weight: 400;
}

.apartment-price strong {
    font-size: 1.6rem;
    color: var(--dark-blue);
}

/* بطاقة السعر الإجمالي — قائمة الشقق (apartment.php) */
.apartment-price.apartment-price--listing {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin: 1.35rem 0 1rem;
    font-weight: 600;
}

.apartment-price--listing .price-base {
    margin: 0;
}

.apartment-price--listing .base-price-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--medium-text);
    letter-spacing: 0.01em;
}

.apartment-price--listing .base-price-prompt::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow-accent), #f59e0b);
    flex-shrink: 0;
}

.price-total.price-total--listing.price-summary-card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 1rem 1.125rem;
    margin: 0;
    background: linear-gradient(165deg, #ffffff 0%, #f4f7fb 55%, #eef3f9 100%);
    border: 1px solid rgba(15, 43, 91, 0.1);
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 43, 91, 0.04),
        0 8px 24px rgba(15, 43, 91, 0.07);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.apartment-card:hover .price-total.price-total--listing.price-summary-card {
    border-color: rgba(15, 43, 91, 0.14);
    box-shadow:
        0 2px 4px rgba(15, 43, 91, 0.05),
        0 12px 28px rgba(15, 43, 91, 0.09);
}

.price-summary-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.price-summary-card .total-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(15, 43, 91, 0.55);
}

.price-summary-card .total-nights {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--medium-text);
    padding: 0.2rem 0.55rem;
    background: rgba(15, 43, 91, 0.06);
    border-radius: 999px;
}

.price-summary-card .total-nights:empty {
    display: none;
}

.price-summary-card__amount {
    min-height: 2.35rem;
    display: flex;
    align-items: center;
}

/* الحجم يُحدَّد من الداخل (قبل/بعد الخصم) وليس بإطار أكبر */
.price-summary-card .total-amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
    margin: 0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.price-summary-card .total-amount.is-total-placeholder,
.price-summary-card .total-amount.is-total-pending {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--medium-text);
    letter-spacing: 0;
}

.price-amount-single,
.price-amount-stack {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.75rem;
}

.price-amount-stack .price-amount-num,
.price-amount-single .price-amount-num {
    font-variant-numeric: tabular-nums;
}

.price-amount-original {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    color: rgba(85, 85, 85, 0.85);
    font-size: 0.82em;
    font-weight: 600;
}

.price-amount-final {
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 1.05em;
}

.price-amount-stack .price-currency,
.price-amount-single .price-currency {
    font-size: 0.72em;
    font-weight: 700;
    opacity: 0.88;
    margin-inline-start: 0.12em;
}

.price-amount-sep {
    display: inline-block;
    width: 1px;
    height: 1.25em;
    align-self: center;
    background: rgba(15, 43, 91, 0.18);
    flex-shrink: 0;
}

/* قائمة الشقق — قبل الخصم أوضح وأكبر قليلاً؛ بعد الخصم بارز بدون تكبير البطاقة */
.apartment-price--listing .price-summary-card .price-amount-stack,
.apartment-price--listing .price-summary-card .price-amount-single {
    align-items: baseline;
}

.apartment-price--listing .price-summary-card .price-amount-original {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4b5563;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    opacity: 1;
}

.apartment-price--listing .price-summary-card .price-amount-original .price-currency {
    font-size: 0.78em;
    font-weight: 700;
    opacity: 0.9;
}

.apartment-price--listing .price-summary-card .price-amount-final {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.apartment-price--listing .price-summary-card .price-amount-final .price-currency {
    font-size: 0.68em;
    font-weight: 800;
    opacity: 0.92;
}

.apartment-price--listing .price-summary-card .price-amount-single {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.apartment-price--listing .price-summary-card .price-amount-single .price-currency {
    font-size: 0.68em;
    font-weight: 800;
}

/* إلغاء تأثير .apartment-price span العام على أرقام البطاقة */
.apartment-price--listing .price-summary-card .price-amount-original,
.apartment-price--listing .price-summary-card .price-amount-original .price-amount-num {
    color: #4b5563;
    font-weight: 700;
}

.apartment-price--listing .price-summary-card .price-amount-final .price-amount-num {
    color: var(--dark-blue);
    font-weight: 800;
}

.apartment-price--listing .price-summary-card .price-currency {
    font-weight: 700;
}

.price-summary-card .price-discount-info,
.price-summary-card .price-coupon-info {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.65rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    line-height: 1.35;
    margin: 0;
}

.price-summary-card .price-discount-info {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.28);
}

.price-summary-card .price-discount-info i {
    margin-top: 0.1em;
    flex-shrink: 0;
}

.price-summary-card .price-coupon-info {
    background: rgba(59, 130, 246, 0.09);
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.22);
}

.price-summary-card .price-coupon-info i {
    margin-top: 0.1em;
    flex-shrink: 0;
}

.apartment-availability-info {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #856404;
    font-size: 0.95rem;
    font-weight: 600;
}

.apartment-availability-info i {
    color: #f57c00;
    font-size: 1.1rem;
}

/* صندوق عدم التوفر + بدائل التواريخ */
.apartment-availability-info.apartment-availability-unavailable {
    flex-direction: column;
    align-items: stretch;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-top: 0.75rem;
    gap: 0;
}

.apartment-availability-unavailable .availability-unavailable-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.apartment-availability-unavailable .availability-unavailable-head i {
    color: #b91c1c;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.apartment-availability-unavailable .availability-text {
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.95rem;
}

.apartment-availability-unavailable .alt-dates-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.apartment-availability-unavailable .alt-available-dates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.apartment-availability-unavailable .alt-available-dates li {
    margin-bottom: 0.5rem;
}

.apartment-availability-unavailable .alt-available-dates li:last-child {
    margin-bottom: 0;
}

.apartment-availability-unavailable .alt-date-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 0.85rem;
    background: var(--primary-white);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.apartment-availability-unavailable .alt-date-link:hover {
    background: #eff6ff;
    border-color: var(--dark-blue);
    box-shadow: 0 2px 8px rgba(0, 53, 128, 0.12);
}

.apartment-availability-unavailable .alt-date-link .alt-date-range {
    font-variant-numeric: tabular-nums;
    color: var(--dark-text);
    font-weight: 500;
}

.apartment-availability-unavailable .alt-date-link .alt-date-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--dark-blue);
    color: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.15s;
}

.apartment-availability-unavailable .alt-date-link:hover .alt-date-btn {
    background: var(--light-blue);
    transform: translateY(-1px);
}

.btn-book.btn-book-disabled {
    margin-top: 0.75rem;
    background: var(--light-gray) !important;
    color: var(--medium-text) !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.85;
    border: 1px solid var(--border-color);
}

.btn-book.btn-book-disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-book.disabled {
    background: #ccc;
    color: var(--medium-text);
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-book.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-book {
    width: 100%;
    padding: 1.1rem;
    background: var(--dark-blue);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: block;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(0, 53, 128, 0.3);
}

.btn-book:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
    background: var(--light-blue);
    color: #ffffff;
}

.btn-book:visited,
.btn-book:focus {
    color: #ffffff;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--primary-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 320px;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--yellow-accent);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--yellow-accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-in-out;
    opacity: 0;
    animation: fadeInImage 0.3s ease-in-out forwards;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.gallery-item img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.15);
}

/* Gallery Page Styles */
.gallery-filter-section {
    padding: 2rem 0;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 2rem;
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background: var(--yellow-accent);
    color: var(--black-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

.filter-btn.active {
    background: var(--yellow-accent);
    color: var(--black-text);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

.gallery-page-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.gallery-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-page-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 2px solid var(--yellow-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-page-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 53, 128, 0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--primary-white);
}

.gallery-page-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-page-item:hover img {
    transform: scale(1.15);
}

.gallery-item-overlay i {
    font-size: 2.5rem;
    color: var(--yellow-accent);
}

.gallery-item-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--primary-white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--yellow-accent);
    color: var(--black-text);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 3001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    right: 40px;
}

.lightbox-next {
    left: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--yellow-accent);
    color: var(--black-text);
    border-color: var(--yellow-accent);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary-white);
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary-white) 0%, var(--light-gray) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background: var(--primary-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--yellow-accent);
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--yellow-accent);
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

.service-item i {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.service-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.service-item p {
    color: var(--medium-text);
}

/* Location Section */
.location-section {
    padding: 100px 0;
    background: var(--primary-white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.location-info p {
    color: var(--medium-text);
    margin-bottom: 1rem;
}

.location-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.location-contact i {
    color: var(--dark-blue);
}

.location-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--primary-white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,53,128,0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 100%;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--dark-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-white);
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
}

.footer-section ul li:hover {
    color: var(--dark-blue);
    transform: translateX(5px);
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--dark-blue);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--dark-blue);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 24px rgba(0, 53, 128, 0.4);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: var(--primary-white);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--muted-text);
}

.close:hover {
    color: var(--dark-text);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.date-picker {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-input {
    display: flex;
    flex-direction: column;
}

.date-input label {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 500;
}

.date-input input,
.apartment-select,
.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.date-input input:focus,
.apartment-select:focus,
.inquiry-form input:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--yellow-accent);
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-submit {
    padding: 1rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s;
}

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

/* About Page Styles */
.page-header {
    background: var(--dark-blue);
    color: var(--primary-white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.about-section {
    padding: 80px 0;
    background: var(--primary-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    text-align: right;
    margin-bottom: 2rem;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-text);
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.vision-mission {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.vm-card {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.vm-card:hover {
    transform: translateY(-5px);
}

.vm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vm-icon i {
    font-size: 2.5rem;
    color: var(--primary-white);
}

.vm-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.vm-card p {
    color: var(--medium-text);
    line-height: 1.8;
}

.services-detail-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.services-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--medium-text);
    margin-bottom: 3rem;
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-detail-card {
    background: var(--primary-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.service-detail-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--dark-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-white);
}

.service-detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.service-detail-card p {
    color: var(--medium-text);
    line-height: 1.8;
}

.why-choose-section {
    padding: 80px 0;
    background: var(--primary-white);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 10px;
    transition: transform 0.3s;
}

.why-item:hover {
    transform: translateY(-5px);
}

.why-item i {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.why-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.why-item p {
    color: var(--medium-text);
}

.nav a.active {
    color: var(--dark-blue);
    font-weight: bold;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Apartment Details Page */
.apartment-gallery-section {
    padding: 40px 0;
    background: var(--light-gray);
}

.apartment-main-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    min-width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--yellow-accent);
    border-radius: 12px;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

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

.apartment-details-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.apartment-details-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.apartment-header {
    margin-bottom: 2rem;
}

.apartment-name {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.apartment-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-text);
    font-size: 1.1rem;
}

.apartment-location i {
    color: var(--dark-blue);
}

.apartment-specs {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-text);
}

.spec-item i {
    color: var(--dark-blue);
    font-size: 1.2rem;
}

.apartment-description {
    margin-bottom: 3rem;
}

.apartment-description h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.apartment-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-text);
}

.apartment-features-list h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

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

.feature-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.feature-check i {
    color: var(--dark-blue);
    font-size: 1.2rem;
}

.booking-section-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.booking-card {
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.price-section {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-blue);
}

.price-period {
    font-size: 1.2rem;
    color: var(--medium-text);
}

.price-note {
    color: var(--medium-text);
    font-size: 0.9rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--yellow-accent);
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.price-summary {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    color: var(--medium-text);
}

.summary-item.total {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--dark-text);
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.btn-book-now {
    width: 100%;
    padding: 1.2rem;
    background: var(--dark-blue);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-book-now:hover {
    transform: scale(1.05);
}

.contact-card {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.contact-card p {
    color: var(--medium-text);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--primary-white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s;
}

.contact-link:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
}

.contact-link i {
    font-size: 1.2rem;
}

.similar-apartments-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.btn-book {
    text-decoration: none;
    display: block;
    text-align: center;
}

/* Apartments Listing Page */
.filter-section {
    padding: 30px 0;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.filter-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Availability Search Button */
.availability-search-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.btn-availability-search {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 400px;
    max-width: 600px;
    width: 100%;
}

.btn-availability-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(254, 187, 2, 0.2);
    border-color: var(--dark-blue);
}

.btn-availability-search i.fa-calendar-alt {
    font-size: 1.5rem;
    color: var(--yellow-accent);
}

.btn-availability-search i.fa-chevron-down {
    margin-right: auto;
    color: var(--dark-text);
    transition: transform 0.3s;
}

.btn-availability-search:hover i.fa-chevron-down {
    transform: translateY(2px);
}

.search-btn-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    text-align: right;
}

.search-btn-label {
    font-size: 0.9rem;
    color: var(--dark-text);
    font-weight: 500;
}

.search-btn-dates {
    font-size: 1.1rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.search-btn-guests {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.search-btn-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-style: italic;
}

.btn-search-reset {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--primary-white);
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-search-reset:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    border-color: var(--dark-blue);
    transform: rotate(90deg);
}

/* Availability Modal */
.availability-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: flex-start;
    justify-content: center;
    animation: fadeIn 0.3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 2rem 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.availability-modal-content {
    background-color: var(--primary-white);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s;
    display: flex;
    flex-direction: column;
    margin: 2rem auto;
    max-height: calc(100vh - 4rem);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--light-gray);
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--yellow-accent) 100%);
    color: var(--primary-white);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
    max-height: calc(100vh - 200px);
}

/* Date Range Picker */
.date-range-picker-wrapper {
    margin-bottom: 2rem;
}

.date-range-picker-wrapper > label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.date-range-picker-wrapper > label i {
    color: var(--yellow-accent);
}

.date-range-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.date-display-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.date-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.date-value {
    font-size: 1.1rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.date-arrow {
    color: var(--yellow-accent);
    font-size: 1.2rem;
}

/* Select Dates Button */
.btn-select-dates {
    width: 100%;
    padding: 1rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-select-dates:hover {
    background: var(--yellow-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

.btn-select-dates i {
    font-size: 1.1rem;
}

/* Calendar Range Picker */
.calendar-range-picker {
    background: var(--primary-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: slideDown 0.3s ease;
}

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

.calendar-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.btn-calendar-save,
.btn-calendar-cancel {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-calendar-save {
    background: var(--dark-blue);
    color: var(--primary-white);
}

.btn-calendar-save:hover {
    background: var(--yellow-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

.btn-calendar-cancel {
    background: var(--light-gray);
    color: var(--dark-text);
}

.btn-calendar-cancel:hover {
    background: var(--border-color);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.calendar-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--primary-white);
    color: var(--dark-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.calendar-nav-btn:hover {
    background: var(--yellow-accent);
    border-color: var(--yellow-accent);
    color: var(--primary-white);
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calendar-weekdays > div {
    text-align: center;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: var(--dark-text);
    position: relative;
}

.calendar-day:not(.disabled):not(.empty):hover {
    background: var(--light-gray);
    transform: scale(1.1);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.disabled {
    color: var(--text-gray);
    cursor: not-allowed;
    opacity: 0.4;
}

.calendar-day.selected {
    background: var(--dark-blue);
    color: var(--primary-white);
    font-weight: 600;
    z-index: 2;
}

.calendar-day.start-date {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.calendar-day.end-date {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.calendar-day.in-range {
    background: rgba(254, 187, 2, 0.15);
    color: var(--dark-blue);
    border-radius: 0;
    position: relative;
}

.calendar-day.in-range::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(254, 187, 2, 0.1);
    z-index: -1;
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .availability-modal {
        padding: 0;
        align-items: flex-start;
        padding-top: 0;
    }
    
    .availability-modal-content {
        max-height: 100vh;
        width: 100%;
        margin: 0;
        border-radius: 0;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        max-height: calc(100vh - 180px);
        flex: 1;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        flex-shrink: 0;
        position: sticky;
        bottom: 0;
        background: var(--primary-white);
        z-index: 10;
        border-top: 2px solid var(--light-gray);
    }
    
    .btn-modal-cancel,
    .btn-modal-search {
        width: 100%;
    }
    
    .date-range-display {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .date-arrow {
        transform: rotate(90deg);
    }
    
    .calendar-range-picker {
        padding: 0.75rem;
        margin: 0 -0.5rem;
    }
    
    .calendar-header {
        padding: 0.75rem 0;
        margin-bottom: 0.75rem;
    }
    
    .calendar-header h3 {
        font-size: 1.1rem;
    }
    
    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .calendar-weekdays {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .calendar-weekdays > div {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .calendar-days {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        min-height: 36px;
        padding: 0.25rem;
    }
    
    .calendar-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
    }
    
    .btn-calendar-save,
    .btn-calendar-cancel {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    /* Calendar wrapper improvements */
    .calendar-wrapper {
        padding: 1rem;
    }
    
    .calendar-month {
        margin-bottom: 1rem;
    }
    
    .calendar-month h3 {
        font-size: 1.2rem;
    }
    
    .calendar-grid {
        gap: 0.35rem;
    }
    
    .calendar-day-header {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.8rem;
        min-height: 38px;
    }
    
    .calendar-legend {
        flex-direction: column;
        gap: 0.75rem;
        padding-top: 1rem;
    }
    
    .legend-item {
        font-size: 0.85rem;
    }
}

/* Additional mobile improvements for very small screens */
@media (max-width: 480px) {
    .calendar-range-picker {
        padding: 0.5rem;
        margin: 0 -0.25rem;
    }
    
    .calendar-header {
        padding: 0.5rem 0;
        margin-bottom: 0.5rem;
    }
    
    .calendar-header h3 {
        font-size: 1rem;
    }
    
    .calendar-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .calendar-weekdays {
        gap: 0.2rem;
        margin-bottom: 0.4rem;
    }
    
    .calendar-weekdays > div {
        font-size: 0.7rem;
        padding: 0.3rem 0;
    }
    
    .calendar-days {
        gap: 0.2rem;
    }
    
    .calendar-day {
        font-size: 0.75rem;
        min-height: 32px;
        padding: 0.2rem;
    }
    
    .calendar-wrapper {
        padding: 0.75rem;
    }
    
    .calendar-month {
        margin-bottom: 0.75rem;
    }
    
    .calendar-month h3 {
        font-size: 1.1rem;
    }
    
    .calendar-nav {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day-header {
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
    }
    
    .calendar-day {
        font-size: 0.75rem;
        min-height: 34px;
    }
    
    .calendar-legend {
        gap: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .legend-color {
        width: 16px;
        height: 16px;
    }
}

.guests-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guests-input-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.guests-input-group label i {
    color: var(--yellow-accent);
}

.guests-input-group select {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--primary-white);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.guests-input-group select:focus {
    outline: none;
    border-color: var(--yellow-accent);
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 2px solid var(--light-gray);
    justify-content: flex-end;
    flex-shrink: 0;
}

.btn-modal-cancel,
.btn-modal-search {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modal-cancel {
    background: var(--light-gray);
    color: var(--dark-text);
}

.btn-modal-cancel:hover {
    background: var(--border-color);
}

.btn-modal-search {
    background: var(--dark-blue);
    color: var(--primary-white);
}

.btn-modal-search:hover {
    background: var(--yellow-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-availability-search {
        min-width: auto;
        padding: 1rem 1.5rem;
    }
    
    .date-input-group {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-modal-cancel,
    .btn-modal-search {
        width: 100%;
        justify-content: center;
    }
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.filter-item label {
    font-weight: 500;
    color: var(--dark-text);
}

.filter-item select {
    padding: 0.75rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 5px;
    font-size: 1rem;
    background: var(--primary-white);
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-item select:focus {
    outline: none;
    border-color: var(--yellow-accent);
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.btn-filter,
.btn-filter-reset {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter {
    background: var(--dark-blue);
    color: var(--primary-white);
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-filter-reset {
    background: var(--primary-white);
    color: var(--dark-text);
    border: 2px solid var(--border-color);
}

.btn-filter-reset:hover {
    border-color: var(--yellow-accent);
    border-radius: 8px;
    color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.apartments-listing-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.apartment-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: calc(100% - 36px);
}

.apartment-badge-icon {
    font-size: 0.95em;
    flex-shrink: 0;
}

.apartment-badge-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Legacy + modifier: default */
.apartment-badge--default,
.apartment-badge.default {
    background: var(--dark-blue);
    color: #ffffff;
}

.apartment-badge--premium,
.apartment-badge.premium {
    background: linear-gradient(135deg, #003580 0%, #0071C2 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 113, 194, 0.45);
}

.apartment-badge--luxury,
.apartment-badge.luxury {
    background: linear-gradient(135deg, #e8c547 0%, #b8860b 100%);
    color: #1a1200;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.apartment-badge--yellow,
.apartment-badge.yellow {
    background: linear-gradient(135deg, #FEBB02 0%, #F08D1E 100%);
    color: #1a1200;
    box-shadow: 0 4px 16px rgba(254, 187, 2, 0.45);
}

.apartment-badge--sun,
.apartment-badge.sun {
    background: linear-gradient(135deg, #fbd38d 0%, #ed8936 100%);
    color: #1a1200;
    border-radius: 14px 999px 999px 14px;
    box-shadow: 0 4px 16px rgba(237, 137, 54, 0.4);
}

.apartment-badge--sun .apartment-badge-icon {
    color: #c05621;
}

.apartment-badge--fire,
.apartment-badge.fire {
    background: linear-gradient(135deg, #fc8181 0%, #e53e3e 55%, #c53030 100%);
    color: #ffffff;
    border-radius: 999px 14px 14px 999px;
    animation: apartment-badge-fire-pulse 2.2s ease-in-out infinite alternate;
}

@keyframes apartment-badge-fire-pulse {
    from {
        box-shadow: 0 4px 14px rgba(229, 62, 62, 0.35);
    }
    to {
        box-shadow: 0 6px 22px rgba(245, 101, 101, 0.65);
    }
}

.apartment-badge--hot,
.apartment-badge.hot {
    background: linear-gradient(135deg, #f56565 0%, #9b2c2c 100%);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.apartment-badge--special,
.apartment-badge.special {
    background: linear-gradient(135deg, #9f7aea 0%, #6b46c1 100%);
    color: #ffffff;
    border-radius: 10px;
    transform: rotate(-2deg);
}

.apartment-badge--new,
.apartment-badge.new {
    background: linear-gradient(135deg, #68d391 0%, #276749 100%);
    color: #ffffff;
}

.apartment-badge--vip,
.apartment-badge.vip {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f6e05e;
    border: 1px solid #d4af37;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}

.apartment-image {
    position: relative;
}

.apartment-amenities {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    flex-wrap: wrap;
}

.apartment-amenities span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: 12px;
    color: var(--dark-blue);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 113, 194, 0.1);
    font-size: 1rem;
}

.apartment-amenities span:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
    border-color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hide nav in header on mobile */
    .header .nav {
        display: none;
    }

    /* Show mobile nav at bottom */
    .nav.mobile-nav,
    .nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--primary-white);
        box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 0.5rem 0;
        margin: 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    html[dir="rtl"] .nav {
        right: 0;
        left: auto;
    }

    html[dir="ltr"] .nav {
        left: 0;
        right: auto;
    }

    .nav ul {
        display: flex;
        flex-direction: row;
        gap: 0;
        align-items: center;
        justify-content: space-around;
        padding: 0;
        margin: 0;
        list-style: none;
        width: 100%;
        flex-wrap: nowrap;
    }

    .nav li {
        flex: 1;
        min-width: 0;
        margin: 0;
        border-bottom: none;
        border-right: 1px solid rgba(0,0,0,0.05);
    }

    html[dir="rtl"] .nav li {
        border-right: none;
        border-left: 1px solid rgba(0,0,0,0.05);
    }

    .nav li:last-child {
        border-right: none;
        border-left: none;
    }

    html[dir="rtl"] .nav li:last-child {
        border-left: none;
    }

    .nav a {
        width: 100%;
        padding: 0.75rem 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        transition: all 0.3s;
        font-size: 0.75rem;
        box-sizing: border-box;
        border-radius: 0;
        text-align: center;
        color: var(--medium-text);
        min-height: 60px;
    }

    .nav a i {
        font-size: 1.2rem;
        display: block;
    }

    .nav a:hover,
    .nav a.active {
        background: transparent;
        color: var(--dark-blue);
    }

    .nav a::after {
        display: none;
    }

    .menu-toggle {
        display: none;
    }

    /* Add padding to body to account for bottom nav */
    body {
        padding-bottom: 0px;
    }

    /* Ensure header stays on top */
    .header {
        z-index: 1001;
    }

    /* Sidebar Menu */
    .sidebar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        z-index: 10000;
        transition: right 0.3s ease;
        pointer-events: none;
    }

    html[dir="rtl"] .sidebar-menu {
        right: auto;
        left: -100%;
        transition: left 0.3s ease;
    }

    .sidebar-menu.active {
        right: 0;
        pointer-events: auto;
    }

    html[dir="rtl"] .sidebar-menu.active {
        right: auto;
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .sidebar-menu.active .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-content {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 320px;
        height: 100%;
        background: var(--primary-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    html[dir="rtl"] .sidebar-content {
        right: auto;
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .sidebar-header {
        padding: 1.5rem;
        background: var(--dark-blue);
        color: var(--primary-white);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .sidebar-close {
        background: transparent;
        border: none;
        color: var(--primary-white);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s ease;
    }

    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .sidebar-nav {
        flex: 1;
        padding: 1rem 0;
    }

    .sidebar-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sidebar-nav li {
        margin: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .sidebar-nav a {
        display: flex;
        align-items: center;
        padding: 1.25rem 1.5rem;
        color: var(--dark-text);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }

    .sidebar-nav a:hover {
        background: var(--light-gray);
        color: var(--dark-blue);
        padding-right: 2rem;
    }

    html[dir="ltr"] .sidebar-nav a:hover {
        padding-right: 1.5rem;
        padding-left: 2rem;
    }

    .sidebar-nav a.active {
        background: rgba(0, 71, 129, 0.1);
        color: var(--dark-blue);
        border-right: 4px solid var(--dark-blue);
        font-weight: 600;
    }

    html[dir="ltr"] .sidebar-nav a.active {
        border-right: none;
        border-left: 4px solid var(--dark-blue);
    }

    .sidebar-nav a i {
        margin-left: 1rem;
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
    }

    html[dir="ltr"] .sidebar-nav a i {
        margin-left: 0;
        margin-right: 1rem;
    }

    .sidebar-nav a span {
        flex: 1;
    }

    /* Adjust reviews button position on mobile */
    .reviews-fixed-btn {
        bottom: 100px;
        left: 20px;
        right: auto;
        width: 55px;
        height: 55px;
        z-index: 999;
    }

    html[dir="rtl"] .reviews-fixed-btn {
        left: 20px;
        right: auto;
    }

    .reviews-fixed-btn i {
        font-size: 1.5rem;
    }

    .reviews-count {
        font-size: 0.8rem;
    }

    .hero {
        padding: 56px 12px 36px;
        min-height: 340px;
        max-height: none;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 12px;
    }

    .hero-text {
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 8px;
    }

    .hero-search-form {
        padding: 1.25rem;
        border-radius: 14px;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-quick-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: stretch;
        align-items: stretch;
        gap: 0.5rem;
    }

    .hero-quick-nav-btn {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        padding: 0.65rem 0.45rem;
        font-size: 0.82rem;
        gap: 0.35rem;
        min-height: 48px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .hero-quick-nav-btn i {
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .hero-quick-nav-btn span {
        text-align: center;
        line-height: 1.25;
    }

    .booking-search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-form-group {
        margin-bottom: 0;
    }

    .search-form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .search-form-group input[type="date"],
    .search-form-group input[type="text"],
    .search-form-group select {
        padding: 0.85rem 0.85rem 0.85rem 2.5rem;
        font-size: 0.95rem;
        border-radius: 8px;
        min-height: 48px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    body[dir="rtl"] .search-form-group input[type="date"],
    body[dir="rtl"] .search-form-group input[type="text"],
    body[dir="rtl"] .search-form-group select {
        padding: 0.85rem 2.5rem 0.85rem 0.85rem;
    }

    .search-form-group input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

    .search-form-group select {
        background-image: none;
    }

    .search-form-group i {
        right: 0.75rem;
        bottom: 0.85rem;
        font-size: 1rem;
        pointer-events: none;
        z-index: 1;
    }

    body[dir="ltr"] .search-form-group i {
        left: 0.75rem;
        right: auto;
    }

    .search-submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .search-submit-btn i {
        font-size: 1rem;
    }

    .search-submit-btn span {
        font-weight: 600;
    }

    /* Improve touch targets on mobile */
    .search-form-group input[type="date"]:active,
    .search-form-group input[type="text"]:active,
    .search-form-group select:active,
    .search-submit-btn:active {
        transform: scale(0.98);
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .intro-content {
        grid-template-columns: 1fr;
    }

    .intro-features {
        grid-template-columns: 1fr;
    }

    .feature-item-pay {
        grid-template-columns: 1fr;
        padding: 1.1rem 1.15rem;
    }

    .feature-pay-icon-wrap {
        display: none;
    }

    .feature-pay-aside {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        margin-top: 0.35rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 53, 128, 0.1);
    }

    .feature-item-pay h3 {
        font-size: 1.05rem;
    }

    .feature-pay-cards i {
        font-size: 1.85rem;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .apartments-grid,
    .gallery-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .services-detail-grid,
    .why-choose-grid {
        grid-template-columns: 1fr;
    }

    .apartment-details-wrapper {
        grid-template-columns: 1fr;
    }

    .apartment-main-gallery {
        flex-direction: column;
    }

    .detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .detail-sidebar {
        order: -1;
        position: static;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .booking-summary-card {
        position: static;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-quick {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .gallery-main {
        flex-direction: column;
    }
}

/* Apartment Detail Page Styles */
.apartment-detail-gallery {
    padding: 40px 0;
    background: var(--light-gray);
}

.gallery-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-gallery-image {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    touch-action: pan-y;
}

.gallery-swipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: auto;
}

.main-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeInImage 0.4s ease-in-out forwards;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    transition: opacity 0.3s ease-in-out;
}

.main-gallery-image img[loading="eager"],
.main-gallery-image img[src]:not([src=""]) {
    opacity: 1;
}

.gallery-video-wrapper {
    width: 100%;
    height: 600px;
    position: relative;
    background: #000;
}

.gallery-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.gallery-nav-btn.prev {
    right: 20px;
}

.gallery-nav-btn.next {
    left: 20px;
}

.gallery-nav-btn:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    transform: translateY(-50%) scale(1.1);
}

.gallery-thumbnails-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumb {
    min-width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    opacity: 0.7;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--yellow-accent);
    border-radius: 12px;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeInImage 0.3s ease-in-out forwards;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    transition: opacity 0.3s ease-in-out;
}

.gallery-thumb img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

.gallery-thumb-video {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-thumb-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-video i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-white);
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.apartment-detail-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.detail-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.apartment-header-detail {
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.apartment-name-detail {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.apartment-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-text);
    font-size: 1rem;
}

.meta-item i {
    color: var(--dark-blue);
}

.apartment-maps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1.35rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(26, 115, 232, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.apartment-maps-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(26, 115, 232, 0.35);
}

.apartment-maps-btn i {
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .apartment-maps-btn {
        width: 100%;
        margin-top: 1rem;
    }
}

.apartment-specs-detail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 20px;
}

.spec-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--primary-white);
    border-radius: 16px;
    transition: all 0.3s;
    border: 2px solid var(--yellow-accent);
}

.spec-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--yellow-accent);
    border-radius: 12px;
}

.spec-box i {
    font-size: 2rem;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

.spec-box strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 0.25rem;
}

.spec-box span {
    display: block;
    font-size: 0.9rem;
    color: var(--medium-text);
}

/* Responsive styles for apartment-specs-detail */
@media (max-width: 768px) {
    .apartment-specs-detail {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .spec-box {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .spec-box i {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .spec-box strong {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
    }
    
    .spec-box span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .apartment-specs-detail {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .spec-box {
        padding: 0.75rem;
        border-radius: 10px;
    }
    
    .spec-box i {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
    }
    
    .spec-box strong {
        font-size: 1.1rem;
        margin-bottom: 0.15rem;
    }
    
    .spec-box span {
        font-size: 0.75rem;
    }
}

.description-section {
    padding: 2rem 0;
}

.description-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.description-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--medium-text);
    margin-bottom: 1.5rem;
}

.amenities-section h2,
.policies-section h2,
.additional-services-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--light-gray);
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid var(--yellow-accent);
}

.amenity-item:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-color: rgba(0, 53, 128, 0.3);
    transform: translateX(-5px);
}

.amenity-item i {
    font-size: 1.5rem;
    color: var(--light-blue);
    width: 40px;
    text-align: center;
}

.amenity-item span {
    font-size: 1rem;
    color: var(--dark-text);
    font-weight: 500;
}

/* Additional Services Section */
.additional-services-section {
    padding: 2rem 0;
    margin: 2rem 0;
}

.services-intro {
    font-size: 1.1rem;
    color: var(--medium-text);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.additional-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-checkbox-item {
    position: relative;
}

.service-checkbox-item label {
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.service-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.service-checkbox-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    transition: all 0.3s;
    gap: 1rem;
}

.service-checkbox-item input[type="checkbox"]:checked + .service-checkbox-content {
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    border-color: var(--yellow-accent);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
    transform: translateY(-2px);
}

.service-checkbox-item:hover .service-checkbox-content {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.2);
}

.service-checkbox-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.service-checkbox-info i {
    font-size: 2rem;
    color: var(--light-blue);
    width: 50px;
    text-align: center;
}

.service-checkbox-info div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.service-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-text);
    display: block;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--medium-text);
    display: block;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    white-space: nowrap;
}

.services-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.services-total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-text);
}

.services-total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-blue);
}

.policies-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.policy-item {
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 16px;
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.policy-item:hover {
    border-color: var(--yellow-accent);
    box-shadow: var(--shadow-sm);
}

.policy-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.policy-header i {
    font-size: 1.5rem;
    color: var(--dark-blue);
}

.policy-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.policy-item p {
    color: var(--medium-text);
    line-height: 1.7;
    margin: 0;
    padding-right: 2.5rem;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.inquiry-card {
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

/* Booking Summary Card */
.booking-summary-card {
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.summary-dates {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-date-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.summary-date-item.editable-date {
    cursor: pointer;
    border: 2px solid transparent;
}

.summary-date-item.editable-date:hover {
    background: rgba(0, 53, 128, 0.05);
    border-color: var(--dark-blue);
}

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

.summary-date-item i.fa-calendar-check,
.summary-date-item i.fa-calendar-times {
    color: var(--yellow-accent);
    font-size: 1.2rem;
    width: 24px;
}

.summary-date-item .edit-icon {
    color: var(--dark-blue);
    font-size: 0.9rem;
    opacity: 0.6;
    transition: all 0.3s;
}

.summary-date-item:hover .edit-icon {
    opacity: 1;
    transform: scale(1.1);
}

.summary-date-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.summary-date-item input[type="date"] {
    padding: 0.5rem;
    border: 2px solid var(--dark-blue);
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
}

.no-dates-selected {
    text-align: center;
    padding: 2rem 1rem;
}

.select-dates-price-message {
    text-align: center;
    padding: 1.25rem 1rem;
    margin-bottom: 1rem;
    background: #f0f7ff;
    border: 1px dashed #b8d4f0;
    border-radius: 12px;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.select-dates-price-message i {
    color: var(--yellow-accent, #f39c12);
}

.btn-select-dates-summary {
    width: 100%;
    padding: 1rem;
    background: var(--dark-blue);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.btn-select-dates-summary:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

.date-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 500;
}

.date-value {
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 600;
}

.summary-nights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
}

.summary-nights i {
    color: var(--yellow-accent);
}

.summary-breakdown {
    margin-bottom: 1.5rem;
}

.summary-mandatory-services {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: #fff8f0;
    border: 1px solid #f0d9b5;
    border-radius: 10px;
}

.summary-mandatory-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #c0392b;
}

.summary-mandatory-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.summary-mandatory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
}

.summary-mandatory-item + .summary-mandatory-item {
    border-top: 1px dashed rgba(240, 217, 181, 0.75);
    padding-top: 0.55rem;
    margin-top: 0.15rem;
}

.summary-mandatory-name {
    flex: 1;
    min-width: 0;
    color: var(--dark-text);
    font-weight: 500;
}

.summary-mandatory-amount {
    font-weight: 700;
    color: var(--dark-blue);
    white-space: nowrap;
}

.mandatory-service-static {
    border-right: 3px solid #e67e22;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--dark-blue);
    font-size: 1.2rem;
    font-weight: 700;
}

.breakdown-value {
    font-weight: 600;
    color: var(--dark-text);
}

.breakdown-value.discount {
    color: #28a745;
}

.breakdown-value.total-amount {
    color: var(--dark-blue);
    font-size: 1.3rem;
}

.coupon-section {
    margin-bottom: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--yellow-accent);
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.btn-apply-coupon {
    padding: 0.75rem 1.5rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

.coupon-message {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
    display: none;
}

.coupon-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.coupon-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-book-now {
    width: 100%;
    padding: 1rem;
    background: var(--dark-blue);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-book-now i {
    color: #ffffff;
}

.btn-book-now:hover {
    background: #003366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
    color: #ffffff;
}

.btn-book-now:focus {
    color: #ffffff;
}

.booking-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
    text-align: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.booking-note i {
    color: var(--yellow-accent);
}

/* Availability Message */
.offer-applied-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 2px solid var(--dark-blue);
    border-radius: 12px;
    margin: 1rem 0;
    animation: slideDown 0.3s ease;
}

.offer-applied-message i {
    font-size: 1.5rem;
    color: var(--dark-blue);
}

.offer-applied-message strong {
    display: block;
    color: var(--dark-blue);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.offer-applied-message span {
    display: block;
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.offer-applied-message--mandatory-stay {
    background: linear-gradient(135deg, #fff8e6 0%, #ffefb8 100%);
    border: 2px solid #d4a017;
    box-shadow: 0 4px 14px rgba(212, 160, 23, 0.15);
}

.offer-applied-message--mandatory-stay i {
    color: #9a7200;
}

.offer-applied-message--mandatory-stay strong {
    color: #5c4200;
}

.offer-applied-message--mandatory-stay span {
    color: #4a3800;
    font-weight: 700;
}

[data-theme="dark"] .offer-applied-message--mandatory-stay {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.22) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-color: rgba(240, 192, 64, 0.55);
    box-shadow: none;
}

[data-theme="dark"] .offer-applied-message--mandatory-stay i {
    color: #ffd966;
}

[data-theme="dark"] .offer-applied-message--mandatory-stay strong {
    color: #ffe08a;
}

[data-theme="dark"] .offer-applied-message--mandatory-stay span {
    color: #fff4cc;
    font-weight: 700;
}

.mandatory-stay-offer-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
    background: linear-gradient(135deg, #fff8e6 0%, #ffefb8 100%);
    border: 2px solid #f0c040;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.18);
}

.mandatory-stay-offer-banner__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    color: #b8860b;
    font-size: 1.25rem;
}

.mandatory-stay-offer-banner__content {
    flex: 1;
    min-width: 0;
}

.mandatory-stay-offer-banner__headline {
    margin: 0 0 0.5rem;
    color: var(--dark-blue);
    font-size: 1.05rem;
    font-weight: 800;
}

.mandatory-stay-offer-banner__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.mandatory-stay-offer-banner__list li {
    color: var(--dark-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mandatory-stay-offer-banner__item + .mandatory-stay-offer-banner__item {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(184, 134, 11, 0.35);
}

.mandatory-stay-offer-banner__offer-line {
    margin: 0;
}

.mandatory-stay-offer-banner__offer-line strong {
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 1rem;
}

.mandatory-stay-offer-banner__validity {
    margin: 0.35rem 0 0;
    color: #7a5b00;
    font-size: 0.85rem;
    font-weight: 600;
}

.mandatory-stay-offer-banner__list li strong {
    color: var(--dark-blue);
    font-weight: 700;
}

.mandatory-stay-offer-banner__list li span {
    display: inline;
    font-weight: 600;
}

.mandatory-stay-offer-banner__note {
    margin: 0.75rem 0 0;
    color: #7a5b00;
    font-size: 0.85rem;
    font-weight: 600;
}

[data-theme="dark"] .mandatory-stay-offer-banner {
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.16) 0%, rgba(255, 215, 0, 0.08) 100%);
    border-color: rgba(240, 192, 64, 0.45);
    box-shadow: none;
}

[data-theme="dark"] .mandatory-stay-offer-banner__icon {
    background: rgba(0, 0, 0, 0.25);
    color: #ffd966;
}

[data-theme="dark"] .mandatory-stay-offer-banner__headline,
[data-theme="dark"] .mandatory-stay-offer-banner__offer-line strong {
    color: #ffe08a;
}

[data-theme="dark"] .mandatory-stay-offer-banner__list li,
[data-theme="dark"] .mandatory-stay-offer-banner__validity,
[data-theme="dark"] .mandatory-stay-offer-banner__note {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 768px) {
    .mandatory-stay-offer-banner {
        flex-direction: row;
        padding: 0.9rem 1rem;
    }

    .mandatory-stay-offer-banner__icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .mandatory-stay-offer-banner__headline {
        font-size: 0.98rem;
    }
}

.availability-message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
}

.availability-message.unavailable {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.availability-message i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.availability-message.unavailable i {
    color: #dc3545;
}

.btn-book-now:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Booking Summary */
@media (max-width: 768px) {
    .apartment-detail-gallery {
        padding: 20px 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .apartment-detail-gallery .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .gallery-main {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .main-gallery-image {
        height: 300px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .gallery-video-wrapper {
        height: 300px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .apartment-detail-section {
        padding: 30px 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .apartment-detail-section .container {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .detail-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .detail-main-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .detail-sidebar {
        position: static;
        order: -1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    .booking-summary-card {
        position: static;
        width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
        box-sizing: border-box;
    }
    
    .inquiry-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-quick {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .summary-title {
        font-size: 1.25rem;
        padding-bottom: 0.75rem;
    }
    
    .summary-dates {
        padding: 1rem;
    }
    
    .summary-date-item {
        gap: 0.75rem;
    }
    
    .summary-date-item i {
        font-size: 1rem;
    }
    
    .date-value {
        font-size: 0.95rem;
    }
    
    .summary-nights {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .summary-breakdown {
        margin-bottom: 1rem;
    }
    
    .breakdown-item {
        padding: 0.5rem 0;
        font-size: 0.95rem;
    }
    
    .breakdown-item.total {
        font-size: 1.1rem;
        padding-top: 0.75rem;
    }
    
    .breakdown-value {
        font-size: 0.95rem;
    }
    
    .breakdown-value.total-amount {
        font-size: 1.2rem;
    }
    
    .coupon-section {
        margin-bottom: 1rem;
        padding-top: 1rem;
    }
    
    .coupon-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .coupon-input {
        width: 100%;
        padding: 0.875rem;
    }
    
    .btn-apply-coupon {
        width: 100%;
        padding: 0.875rem;
    }
    
    .btn-book-now {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .booking-note {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .price-display {
        margin-bottom: 1rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .btn-inquiry {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .detail-wrapper {
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .detail-main-content {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .detail-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 0;
        box-sizing: border-box;
    }
    
    .booking-summary-card {
        padding: 1rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .summary-title {
        font-size: 1.1rem;
    }
    
    .summary-dates {
        padding: 0.75rem;
    }
    
    .summary-date-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .summary-date-item i {
        align-self: flex-start;
    }
    
    .breakdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .breakdown-value {
        align-self: flex-end;
    }
    
    .contact-quick {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    
    .contact-quick h3 {
        font-size: 1.1rem;
    }
    
    .quick-contact-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .inquiry-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: var(--medium-text);
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}

.price-period {
    font-size: 1.1rem;
    color: var(--medium-text);
    font-weight: 500;
}

.btn-inquiry {
    width: 100%;
    padding: 1.25rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 53, 128, 0.3);
}

.btn-inquiry:hover {
    background: #003366;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 53, 128, 0.4);
}

.inquiry-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--medium-text);
    font-size: 0.9rem;
}

.inquiry-note i {
    color: var(--dark-blue);
}

.contact-quick {
    background: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid var(--yellow-accent);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contact-quick h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    transition: all 0.3s;
    border: 2px solid var(--yellow-accent);
}

.quick-contact-item:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    transform: translateX(-5px);
    border-color: transparent;
}

.quick-contact-item.whatsapp:hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.quick-contact-item i {
    font-size: 1.3rem;
    color: var(--dark-blue);
    width: 30px;
    text-align: center;
}

.quick-contact-item:hover i {
    color: var(--primary-white);
}

.inquiry-modal {
    max-width: 600px;
}

.inquiry-form-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.inquiry-form-detail .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.inquiry-form-detail label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.inquiry-form-detail input,
.inquiry-form-detail select,
.inquiry-form-detail textarea {
    padding: 0.875rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.inquiry-form-detail input:focus,
.inquiry-form-detail select:focus,
.inquiry-form-detail textarea:focus {
    outline: none;
    border-color: var(--yellow-accent);
    border-radius: 10px;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.15);
}

.btn-submit-inquiry {
    width: 100%;
    padding: 1.25rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 53, 128, 0.3);
    margin-top: 0.5rem;
}

.btn-submit-inquiry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 53, 128, 0.4);
}

/* Booking Page Styles */
.search-bar-section {
    background: var(--dark-blue);
    padding: 2rem 0;
    box-shadow: var(--shadow-md);
}

.search-bar-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: flex-end;
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-item label {
    color: var(--primary-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.search-item input,
.search-item select {
    padding: 1rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--primary-white);
    transition: all 0.3s;
}

.search-item input:focus,
.search-item select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.2);
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
}

.btn-search {
    padding: 1rem 2rem;
    background: var(--yellow-accent);
    color: var(--black-text);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.coupon-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.coupon-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.coupon-wrapper label {
    color: var(--primary-white);
    font-weight: 600;
    font-size: 0.95rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 300px;
}

.coupon-input-group input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    font-size: 1rem;
    background: var(--primary-white);
}

.coupon-input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.btn-apply-coupon {
    padding: 0.875rem 1.5rem;
    background: var(--yellow-accent);
    color: var(--black-text);
    border: none;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-apply-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.coupon-message {
    display: none;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.coupon-message .success {
    color: #155724;
    background: #d4edda;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-message .error {
    color: #721c24;
    background: #f8d7da;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-main-section {
    padding: 60px 0;
    background: var(--light-gray);
}

.booking-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--medium-text);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--dark-blue);
}

.tab-btn.active {
    color: var(--dark-blue);
    border-bottom-color: var(--dark-blue);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

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

.booking-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.availability-calendar-section h2,
.available-apartments-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--dark-text);
}

.calendar-wrapper {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
}

.calendar-month {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-month h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.calendar-nav {
    background: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--dark-blue);
    font-size: 1.2rem;
    transition: all 0.3s;
}

.calendar-nav:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    color: var(--medium-text);
    padding: 0.75rem;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    background: var(--light-gray);
    color: var(--dark-text);
}

.calendar-day:hover:not(.empty):not(.booked) {
    background: var(--dark-blue);
    color: var(--primary-white);
    transform: scale(1.1);
}

.calendar-day.available {
    background: #d4edda;
    color: #155724;
}

.calendar-day.booked {
    background: #f8d7da;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.6;
}

.calendar-day.selected {
    background: var(--dark-blue);
    color: var(--primary-white);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.3);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--medium-text);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.legend-color.available {
    background: #d4edda;
}

.legend-color.booked {
    background: #f8d7da;
}

.legend-color.selected {
    background: var(--dark-blue);
}

.apartments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.apartment-list-item {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    align-items: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.apartment-list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--yellow-accent);
}

.apt-list-image {
    width: 200px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
}

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

.apt-list-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.apt-list-specs {
    display: flex;
    gap: 1.5rem;
    color: var(--medium-text);
}

.apt-list-specs i {
    color: var(--dark-blue);
    margin-left: 0.5rem;
}

.apt-list-price {
    text-align: center;
}

.price-per-night {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.price-per-night span {
    font-size: 1rem;
    color: var(--medium-text);
    font-weight: 500;
}

.btn-book-apt {
    padding: 0.875rem 2rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 53, 128, 0.3);
}

.btn-book-apt:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
    position: relative;
    transition: all 0.3s;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 53, 128, 0.3);
}

.offer-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--dark-blue);
    color: var(--primary-white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.offer-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0 0.75rem;
    color: var(--dark-text);
}

.offer-card p {
    color: var(--medium-text);
}

/* Blog Page Styles */
.blog-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.blog-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.1);
}

.blog-post-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--yellow-accent);
    color: var(--black-text);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--medium-text);
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta i {
    color: var(--light-blue);
    font-size: 0.9rem;
}

.blog-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-post-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--medium-text);
    margin-bottom: 1.5rem;
}

.blog-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-blue);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-post-read-more:hover {
    color: var(--light-blue);
    transform: translateX(-5px);
}

.blog-post-read-more i {
    transition: transform 0.3s;
}

.blog-post-read-more:hover i {
    transform: translateX(-3px);
}

/* Blog Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    background: var(--primary-white);
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    color: var(--dark-text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background: var(--yellow-accent);
    color: var(--black-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

.pagination-btn.active {
    background: var(--dark-blue);
    color: var(--primary-white);
    border-color: var(--dark-blue);
}

.pagination-btn.next {
    background: var(--yellow-accent);
    color: var(--black-text);
}

.pagination-btn.next:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
}

/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--yellow-accent);
}

/* Blog Search */
.blog-search {
    display: flex;
    gap: 0.5rem;
}

.blog-search input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.blog-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.blog-search button {
    padding: 0.875rem 1.5rem;
    background: var(--yellow-accent);
    color: var(--black-text);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.blog-search button:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    transform: translateY(-2px);
}

/* Category List */
.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: var(--light-gray);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark-text);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-list li a:hover {
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    border-color: var(--yellow-accent);
    transform: translateX(-5px);
}

.category-list li a span {
    background: var(--yellow-accent);
    color: var(--black-text);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recent-post-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.recent-post-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--yellow-accent);
}

.recent-post-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.recent-post-item h4 a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}

.recent-post-item h4 a:hover {
    color: var(--dark-blue);
}

.recent-post-item span {
    font-size: 0.85rem;
    color: var(--medium-text);
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: 2px solid var(--yellow-accent);
    border-radius: 20px;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--yellow-accent);
    color: var(--black-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.3);
}

/* Tablet - Hero & Calendar */
@media (max-width: 968px) {
    .hero {
        padding: 70px 16px 50px;
        min-height: 380px;
        max-height: none;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-search-form {
        padding: 1.5rem;
        max-width: 100%;
    }

    .booking-search-form {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .search-submit-btn {
        grid-column: 1 / -1;
    }

    .blog-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-post-image {
        height: 250px;
    }
}

/* Blog Detail Page Styles */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--yellow-accent);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.blog-post-detail {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
}

.blog-post-image-detail {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.blog-post-image-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-header-detail {
    padding: 2.5rem;
    border-bottom: 2px solid var(--border-color);
}

.blog-post-title-detail {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-post-meta-detail {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--medium-text);
}

.blog-post-meta-detail span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-post-meta-detail i {
    color: var(--light-blue);
    font-size: 0.9rem;
}

.blog-post-content-detail {
    padding: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--dark-text);
}

.blog-post-content-detail p {
    margin-bottom: 1.5rem;
}

.blog-post-content-detail h2,
.blog-post-content-detail h3,
.blog-post-content-detail h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
    font-weight: 700;
}

.blog-post-content-detail h2 {
    font-size: 1.75rem;
}

.blog-post-content-detail h3 {
    font-size: 1.5rem;
}

.blog-post-content-detail h4 {
    font-size: 1.25rem;
}

.blog-post-content-detail ul,
.blog-post-content-detail ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.blog-post-content-detail li {
    margin-bottom: 0.75rem;
}

.blog-post-content-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.blog-post-content-detail blockquote {
    border-right: 4px solid var(--yellow-accent);
    padding-right: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--medium-text);
}

.blog-post-tags {
    padding: 2rem 2.5rem;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.blog-post-tags h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tags-list .tag {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    color: var(--dark-text);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.tags-list .tag:hover {
    background: var(--yellow-accent);
    color: var(--black-text);
    border-color: var(--dark-blue);
    transform: translateY(-2px);
}

.blog-post-share {
    padding: 2rem 2.5rem;
    background: var(--light-gray);
}

.blog-post-share h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--primary-white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.whatsapp {
    background: #25D366;
}

.share-btn.copy-link {
    background: var(--dark-blue);
    width: auto;
    padding: 0 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Related Posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 3px solid var(--border-color);
}

.related-posts-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 2rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post-item {
    background: var(--primary-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.related-post-image {
    height: 200px;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.related-post-item:hover .related-post-image img {
    transform: scale(1.1);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-date {
    display: block;
    font-size: 0.85rem;
    color: var(--medium-text);
    margin-bottom: 0.75rem;
}

.related-post-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-post-content h3 a {
    color: var(--dark-text);
    text-decoration: none;
    transition: color 0.3s;
}

.related-post-content h3 a:hover {
    color: var(--dark-blue);
}

.related-post-content p {
    font-size: 0.95rem;
    color: var(--medium-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-post-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.related-post-read-more:hover {
    color: var(--light-blue);
    transform: translateX(-5px);
}

.related-post-read-more i {
    transition: transform 0.3s;
}

.related-post-read-more:hover i {
    transform: translateX(-3px);
}

/* Responsive Blog Detail */
@media (max-width: 968px) {
    .blog-post-image-detail {
        height: 400px;
    }

    .blog-post-title-detail {
        font-size: 2rem;
    }

    .blog-post-header-detail,
    .blog-post-content-detail,
    .blog-post-tags,
    .blog-post-share {
        padding: 2rem;
    }

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

@media (max-width: 768px) {
    .blog-post-image-detail {
        height: 300px;
    }

    .blog-post-title-detail {
        font-size: 1.75rem;
    }

    .blog-post-meta-detail {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .blog-post-content-detail {
        font-size: 1rem;
        padding: 1.5rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-post-image-detail {
        height: 250px;
    }

    .blog-post-title-detail {
        font-size: 1.5rem;
    }

    .blog-post-header-detail,
    .blog-post-content-detail,
    .blog-post-tags,
    .blog-post-share {
        padding: 1.5rem;
    }

    .blog-post-meta-detail {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero {
        padding: 48px 10px 28px;
        min-height: 320px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .hero-text {
        margin-bottom: 1.25rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
        padding: 0 4px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 4px;
    }

    .hero-search-form {
        padding: 1rem;
        border-radius: 12px;
        margin: 0 auto;
    }

    .booking-search-form {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .search-form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.35rem;
    }

    .search-form-group input[type="date"],
    .search-form-group input[type="text"],
    .search-form-group select {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        font-size: 0.9rem;
        border-radius: 8px;
        min-height: 46px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    body[dir="rtl"] .search-form-group input[type="date"],
    body[dir="rtl"] .search-form-group input[type="text"],
    body[dir="rtl"] .search-form-group select {
        padding: 0.75rem 2.25rem 0.75rem 0.75rem;
    }

    .search-form-group input[type="date"]::-webkit-calendar-picker-indicator {
        opacity: 0;
        position: absolute;
        width: 100%;
        height: 100%;
        cursor: pointer;
        right: 0;
        left: 0;
    }

    .search-form-group select {
        background-image: none;
    }

    .search-form-group i {
        right: 0.65rem;
        bottom: 0.75rem;
        font-size: 0.9rem;
        pointer-events: none;
        z-index: 1;
    }

    body[dir="ltr"] .search-form-group i {
        left: 0.65rem;
        right: auto;
    }

    .search-submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
        margin-top: 0.25rem;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        white-space: nowrap;
    }

    .search-submit-btn i {
        font-size: 0.95rem;
    }

    .search-submit-btn span {
        font-weight: 600;
    }

    /* Improve touch targets on very small screens */
    .search-form-group input[type="date"]:active,
    .search-form-group input[type="text"]:active,
    .search-form-group select:active,
    .search-submit-btn:active {
        transform: scale(0.98);
    }
}

/* Services Page Styles */
.services-page-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.service-page-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 2rem;
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.service-page-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-page-item.reverse {
    direction: ltr;
}

.service-page-item.reverse .service-page-content {
    direction: rtl;
}

.service-page-image {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--yellow-accent);
}

.service-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.service-page-item:hover .service-page-image img {
    transform: scale(1.1);
}

.service-page-content {
    padding: 1rem;
}

.service-page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--yellow-accent) 0%, #ffd700 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(254, 187, 2, 0.3);
    border: 2px solid var(--yellow-accent);
}

.service-page-icon i {
    font-size: 2.5rem;
    color: var(--black-text);
}

.service-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.service-page-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--medium-text);
    margin-bottom: 2rem;
}

.service-page-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-page-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--dark-text);
}

.service-page-features li i {
    color: var(--yellow-accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Responsive Services Page */
@media (max-width: 968px) {
    .service-page-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-page-item.reverse {
        direction: rtl;
    }

    .service-page-image {
        height: 300px;
    }

    .service-page-title {
        font-size: 1.75rem;
    }
}

/* Offers Page Styles */
.offers-page-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.offer-apartment-card {
    background: var(--primary-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
    position: relative;
}

.offer-apartment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--dark-blue);
}

.offer-apartment-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.offer-apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.offer-apartment-card:hover .offer-apartment-image img {
    transform: scale(1.1);
}

.offer-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--yellow-accent) 0%, #ff6b35 100%);
    color: var(--black-text);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(254, 187, 2, 0.4);
    z-index: 2;
    border: 2px solid var(--yellow-accent);
}

.offer-badge-large.hot {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: var(--primary-white);
}

.offer-badge-large.special {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--primary-white);
}

.offer-validity-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid var(--yellow-accent);
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.offer-validity-badge i {
    color: var(--yellow-accent);
}

.offer-apartment-info {
    padding: 2rem;
}

.offer-apartment-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}

.offer-apartment-desc {
    color: var(--medium-text);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.offer-apartment-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.offer-apartment-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.offer-apartment-features i {
    color: var(--light-blue);
}

.offer-apartment-amenities {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.offer-apartment-amenities span {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.offer-apartment-amenities span:hover {
    background: var(--yellow-accent);
    transform: translateY(-3px);
}

.offer-apartment-amenities i {
    color: var(--dark-blue);
    font-size: 1rem;
}

.offer-price-section {
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--yellow-accent);
}

.no-offers {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--medium-text);
}

.no-offers h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.no-offers p {
    font-size: 1.1rem;
}

.offer-apartments-list {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark-text);
}

.offer-min-nights {
    margin: 0.5rem 0;
    color: var(--medium-text);
    font-size: 0.9rem;
}

.offer-min-nights i {
    color: var(--dark-blue);
    margin-left: 0.5rem;
}

.discount-display {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--yellow-accent) 0%, #ffd700 100%);
    border-radius: 12px;
    margin: 1rem 0;
    border: 2px solid var(--dark-blue);
}

.discount-amount {
    font-size: 2.5rem;
    color: var(--dark-blue);
    font-weight: 800;
    display: block;
    margin-bottom: 0.25rem;
}

.discount-label {
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 600;
}

.discount-description {
    text-align: center;
    color: var(--medium-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.offer-badge-large.mandatory {
    background: linear-gradient(135deg, #003580 0%, #0057b8 100%);
    color: #ffffff;
}

.discount-display.mandatory-package {
    background: linear-gradient(135deg, #e8f4ff 0%, #cfe8ff 100%);
    border-color: #003580;
}

.discount-display.mandatory-package .discount-amount {
    color: #003580;
}

.offer-apartment-card--mandatory {
    border: 2px solid rgba(0, 53, 128, 0.15);
}

.offer-apartment-card--mandatory .offer-price-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e3effc 100%);
    border-color: rgba(0, 53, 128, 0.25);
}

/* Apartment discount countdown (per rental unit) */
.apartment-discount-countdown-section {
    padding: 0 0 1.25rem;
    margin-top: -0.5rem;
}

.apartment-discount-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #003580 0%, #0071c2 100%);
    color: #ffffff;
    border: 2px solid var(--yellow-accent);
    border-radius: 14px;
    padding: 0.65rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 53, 128, 0.25);
}

.apartment-discount-countdown--card {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
}

.apartment-discount-countdown--detail {
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
}

.apartment-discount-countdown__label {
    font-weight: 600;
    color: #ffffff;
}

.apartment-discount-countdown__timer {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    color: var(--yellow-accent);
    background: rgba(0, 0, 0, 0.22);
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
}

.apartment-discount-countdown.is-ended .apartment-discount-countdown__timer {
    display: none;
}

.apartment-discount-countdown.is-ended .apartment-discount-countdown__label {
    color: #ffe08a;
}

[data-theme="dark"] .apartment-discount-countdown {
    background: linear-gradient(135deg, #0a2d5c 0%, #0d4a8a 100%);
    border-color: rgba(254, 187, 2, 0.75);
}

[data-theme="dark"] .apartment-discount-countdown__label {
    color: #ffffff;
}

[data-theme="dark"] .apartment-discount-countdown__timer {
    color: var(--yellow-accent);
    background: rgba(0, 0, 0, 0.35);
}

.original-price {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--medium-text);
}

.original-price del {
    color: var(--medium-text);
    margin-right: 0.5rem;
}

.discounted-price {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.discounted-price strong {
    color: var(--dark-blue);
    font-size: 1.5rem;
    font-weight: 700;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--yellow-accent);
    color: var(--black-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--yellow-accent);
}

.savings-badge i {
    color: var(--dark-blue);
}

.btn-offer-book {
    width: 100%;
    padding: 1rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
    border: 2px solid var(--dark-blue);
}

.btn-offer-book:hover {
    background: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
    border-color: var(--light-blue);
}

/* Responsive Offers Page */
@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-apartment-image {
        height: 250px;
    }

    .offer-badge-large {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Checkout Page Styles */
.checkout-section {
    padding: 60px 0;
    background: var(--primary-white);
}

.checkout-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.checkout-form-section {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
}

.checkout-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--yellow-accent);
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guest-party-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    align-items: stretch;
}

.guest-party-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--border-color, #e2e8f0);
    background: var(--primary-white, #fff);
    color: var(--dark-text);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.guest-party-option:hover {
    border-color: color-mix(in srgb, var(--light-blue) 45%, var(--border-color));
}

.guest-party-option input[type="radio"] {
    margin: 0;
    accent-color: var(--light-blue);
}

.guest-party-option:has(input:checked) {
    border-color: var(--light-blue);
    background: color-mix(in srgb, var(--light-blue) 10%, var(--primary-white));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--light-blue) 20%, transparent);
}

[data-theme="dark"] .guest-party-option {
    background: var(--input-bg, #252b36);
    border-color: var(--border-color, #3a4150);
    color: var(--dark-text, #eef1f4);
}

[data-theme="dark"] .guest-party-option:hover {
    border-color: rgba(96, 165, 250, 0.55);
}

[data-theme="dark"] .guest-party-option:has(input:checked) {
    border-color: #60a5fa;
    background: rgba(37, 99, 235, 0.18);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.checkout-id-upload-wrap {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #f8fafc;
}

.checkout-id-upload-hint {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.5;
}

.checkout-id-upload-requirements {
    margin: 0 0 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e3a5f;
}

.checkout-id-upload-requirements__title {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d4ed8;
}

.checkout-id-upload-requirements__list {
    margin: 0 0 0.55rem;
    padding: 0 1.15rem 0 0;
    font-size: 0.9rem;
    line-height: 1.65;
}

.checkout-id-upload-requirements__list li {
    margin-bottom: 0.15rem;
}

.checkout-id-upload-requirements__note {
    margin: 0;
    font-size: 0.84rem;
    color: #475569;
    line-height: 1.5;
}

.checkout-id-upload-count {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.checkout-id-upload-count--complete {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.checkout-id-upload-count strong {
    font-size: 1.05rem;
}

.checkout-id-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.checkout-id-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.checkout-id-upload-btn--file {
    background: var(--light-blue);
    color: #fff;
}

.checkout-id-upload-btn--camera {
    background: #16a34a;
    color: #fff;
}

.checkout-id-upload-progress {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.checkout-id-upload-progress__bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.checkout-id-upload-progress__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--light-blue);
    transition: width 0.25s ease;
}

.checkout-id-upload-message {
    margin-bottom: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    font-size: 0.88rem;
}

.checkout-id-upload-message--success {
    background: #dcfce7;
    color: #166534;
}

.checkout-id-upload-message--error {
    background: #fee2e2;
    color: #991b1b;
}

.checkout-id-files-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.checkout-id-no-files {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.checkout-id-no-files i {
    font-size: 1.75rem;
}

.checkout-id-file-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.checkout-id-file-card img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.checkout-id-file-card__meta {
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
    color: #475569;
    text-align: center;
}

[data-theme="dark"] .checkout-id-upload-wrap {
    background: var(--input-bg, #252b36);
    border-color: var(--border-color, #3a4150);
}

[data-theme="dark"] .checkout-id-upload-requirements {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(96, 165, 250, 0.45);
    color: var(--text-color, #e2e8f0);
}

[data-theme="dark"] .checkout-id-upload-requirements__title {
    color: #93c5fd;
}

[data-theme="dark"] .checkout-id-upload-requirements__note {
    color: #94a3b8;
}

[data-theme="dark"] .checkout-id-upload-count {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

[data-theme="dark"] .checkout-id-upload-count--complete {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.45);
    color: #6ee7b7;
}

[data-theme="dark"] .checkout-id-file-card {
    background: var(--surface-elevated, #1c2230);
    border-color: var(--border-color, #3a4150);
}

[data-theme="dark"] .payment-account-details {
    background: linear-gradient(
        145deg,
        rgba(30, 64, 175, 0.22) 0%,
        rgba(21, 25, 32, 0.95) 100%
    );
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .account-details-title {
    color: #bfdbfe;
}

[data-theme="dark"] .account-details-title::before {
    background: #60a5fa;
}

[data-theme="dark"] .account-details-subtitle {
    color: var(--muted-text);
    border-bottom-color: rgba(148, 163, 184, 0.25);
}

[data-theme="dark"] .account-item {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .account-item:hover {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .account-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .account-title {
    color: #dbeafe;
}

[data-theme="dark"] .account-title::before {
    background: #fbbf24;
}

[data-theme="dark"] .account-detail-item {
    background: var(--input-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .account-detail-item i {
    color: #93c5fd;
}

[data-theme="dark"] .account-label {
    color: var(--muted-text);
}

[data-theme="dark"] .account-value {
    color: var(--dark-text);
}

[data-theme="dark"] .account-number-copy:hover {
    color: #93c5fd;
}

[data-theme="dark"] .account-qr-link {
    color: #93c5fd;
}

[data-theme="dark"] .account-qr-link:hover {
    color: #bfdbfe;
}

[data-theme="dark"] .payment-note {
    background: rgba(251, 191, 36, 0.12);
    border-right-color: #fbbf24;
}

[data-theme="dark"] .payment-note i {
    color: #fbbf24;
}

[data-theme="dark"] .payment-note span {
    color: #fde68a;
}

/* Checkout promo banner (Elite + loyalty) */
.checkout-promo-banner {
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--dark-blue) 18%, var(--border-color));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--light-blue) 10%, var(--primary-white)) 0%,
        color-mix(in srgb, var(--yellow-accent) 14%, var(--primary-white)) 100%
    );
    box-shadow: var(--shadow-sm);
}

.checkout-promo-banner__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.checkout-promo-banner__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--dark-blue) 35%, transparent);
}

.checkout-promo-banner__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1.4;
}

.checkout-promo-banner__subtitle {
    margin: 0;
    font-size: 0.88rem;
    color: var(--medium-text);
    line-height: 1.55;
}

.checkout-promo-banner__benefits {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.checkout-promo-banner__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark-text);
    line-height: 1.5;
}

.checkout-promo-banner__benefits li i {
    margin-top: 3px;
    flex-shrink: 0;
}

.checkout-promo-banner__benefits .benefit-elite i {
    color: #7c3aed;
}

.checkout-promo-banner__benefits .benefit-loyalty i {
    color: #d97706;
}

.checkout-promo-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.checkout-promo-banner__actions .auth-btn-login,
.checkout-promo-banner__actions .auth-btn-register {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.checkout-promo-banner__actions .auth-btn-login {
    color: var(--dark-blue);
    border: 2px solid var(--dark-blue);
    background: transparent;
}

.checkout-promo-banner__actions .auth-btn-login:hover {
    background: var(--dark-blue);
    color: #fff;
}

.checkout-promo-banner__actions .auth-btn-register {
    color: #fff;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    border: 2px solid transparent;
}

.checkout-promo-banner__actions .auth-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--dark-blue) 35%, transparent);
}

.checkout-promo-banner--compact {
    padding: 14px 16px;
    margin-bottom: 16px;
}

.checkout-promo-banner--compact .checkout-promo-banner__head {
    margin-bottom: 10px;
}

.checkout-promo-banner--compact .checkout-promo-banner__icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
}

.checkout-promo-banner--compact .checkout-promo-banner__title {
    font-size: 0.95rem;
}

.checkout-promo-banner--compact .checkout-promo-banner__benefits {
    margin-bottom: 12px;
}

.checkout-promo-banner--compact .checkout-promo-banner__benefits li {
    font-size: 0.82rem;
}

@media (max-width: 576px) {
    .checkout-promo-banner__actions {
        flex-direction: column;
    }

    .checkout-promo-banner__actions .auth-btn-login,
    .checkout-promo-banner__actions .auth-btn-register {
        width: 100%;
        justify-content: center;
    }
}

[data-theme="dark"] .checkout-promo-banner {
    border-color: color-mix(in srgb, #7eb8ff 28%, var(--border-color));
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--light-blue) 22%, var(--surface-elevated)) 0%,
        color-mix(in srgb, var(--yellow-accent) 10%, var(--surface-elevated)) 100%
    );
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .checkout-promo-banner__icon {
    background: linear-gradient(135deg, #1a4a8a 0%, var(--light-blue) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .checkout-promo-banner__title {
    color: var(--dark-text);
}

[data-theme="dark"] .checkout-promo-banner__subtitle {
    color: var(--muted-text);
}

[data-theme="dark"] .checkout-promo-banner__benefits li {
    color: var(--dark-text);
}

[data-theme="dark"] .checkout-promo-banner__benefits .benefit-elite i {
    color: #a78bfa;
}

[data-theme="dark"] .checkout-promo-banner__benefits .benefit-loyalty i {
    color: #fbbf24;
}

[data-theme="dark"] .checkout-promo-banner__actions .auth-btn-login {
    color: #9ec5ff;
    border-color: #5b8fd4;
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .checkout-promo-banner__actions .auth-btn-login:hover {
    background: #5b8fd4;
    color: #0f172a;
    border-color: #5b8fd4;
}

[data-theme="dark"] .checkout-promo-banner__actions .auth-btn-register {
    background: linear-gradient(135deg, #1a4a8a 0%, var(--light-blue) 100%);
    color: #fff;
}

[data-theme="dark"] .checkout-promo-banner__actions .auth-btn-register:hover {
    box-shadow: 0 4px 14px rgba(0, 113, 194, 0.35);
}

/* Checkout auth modals (login / register on checkout) */
.checkout-auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100200;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkout-auth-modal-overlay.is-open {
    display: flex;
    opacity: 1;
}

.checkout-auth-modal-box {
    width: 100%;
    max-width: 420px;
    max-height: min(92vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--primary-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.checkout-auth-modal-overlay.is-open .checkout-auth-modal-box {
    transform: scale(1);
}

.checkout-auth-modal-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: #fff;
}

.checkout-auth-modal-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.checkout-auth-modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.checkout-auth-modal-body {
    padding: 18px 18px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--primary-white);
    color: var(--dark-text);
}

.checkout-auth-modal-body .form-group {
    margin-bottom: 14px;
}

.checkout-auth-modal-body label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.88rem;
}

.checkout-auth-modal-body input[type="text"],
.checkout-auth-modal-body input[type="tel"],
.checkout-auth-modal-body input[type="email"],
.checkout-auth-modal-body input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    background: var(--input-bg);
    color: var(--dark-text);
}

.checkout-auth-modal-body input::placeholder {
    color: var(--muted-text);
}

.checkout-auth-modal-body input:focus {
    outline: none;
    border-color: var(--dark-blue);
}

.checkout-auth-modal-alert {
    display: none;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
}

.checkout-auth-modal-alert.is-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.checkout-auth-modal-alert.is-success {
    display: block;
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* InstaPay checkout modal */
.checkout-instapay-modal-box {
    max-width: 480px;
    max-height: min(92vh, 720px);
    overflow: hidden;
}

.checkout-instapay-modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}

.checkout-instapay-modal-footer {
    flex-shrink: 0;
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--primary-white);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.checkout-instapay-modal-head {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.checkout-instapay-intro {
    margin: 0 0 14px;
    color: var(--medium-text);
    font-size: 0.92rem;
    line-height: 1.55;
}

.checkout-instapay-amount-box {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
    text-align: center;
}

.checkout-instapay-amount-label {
    display: block;
    font-size: 0.85rem;
    color: #6d28d9;
    margin-bottom: 6px;
    font-weight: 600;
}

.checkout-instapay-amount-box strong {
    display: block;
    font-size: 1.45rem;
    color: #5b21b6;
    font-weight: 800;
}

.checkout-instapay-accounts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
    margin-top: 14px;
}

.checkout-instapay-pay-link-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.checkout-instapay-pay-link-wrap .checkout-instapay-pay-link-btn {
    margin-bottom: 0;
}

.checkout-instapay-account-item {
    margin: 0;
    border: 2px solid #e9d5ff;
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.checkout-instapay-account-item--details {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.checkout-instapay-pay-link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 45%, #a855f7 100%);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: checkoutInstapayPulse 2.2s ease-in-out infinite;
}

.checkout-instapay-pay-link-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45);
}

.checkout-instapay-pay-link-btn__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.checkout-instapay-pay-link-btn__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
    text-align: start;
}

.checkout-instapay-pay-link-btn__text strong {
    font-size: 1rem;
    line-height: 1.3;
}

.checkout-instapay-pay-link-btn__text small {
    font-size: 0.78rem;
    opacity: 0.92;
    font-weight: 600;
}

.checkout-instapay-pay-link-btn__arrow {
    flex-shrink: 0;
    opacity: 0.9;
}

.checkout-instapay-copy-value {
    cursor: pointer;
    font-weight: 700;
    color: #5b21b6;
}

.checkout-instapay-copy-value:hover {
    text-decoration: underline;
}

.checkout-instapay-whatsapp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    margin-top: 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 2px solid #34d399;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.18);
}

.checkout-instapay-whatsapp-card__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #059669;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.checkout-instapay-whatsapp-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-instapay-whatsapp-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
    flex-shrink: 0;
}

.checkout-instapay-whatsapp-card__head strong {
    display: block;
    font-size: 1rem;
    color: #065f46;
    margin-bottom: 4px;
}

.checkout-instapay-whatsapp-card__head span {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: 0.02em;
}

.checkout-instapay-note {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 0;
}

.checkout-instapay-note-text {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #92400e;
    font-size: 0.88rem;
    line-height: 1.5;
}

.checkout-instapay-note-text i {
    margin-top: 2px;
    flex-shrink: 0;
}

.checkout-instapay-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f766e 0%, #059669 40%, #25d366 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.checkout-instapay-whatsapp-btn--hero {
    animation: checkoutInstapayPulseGreen 2.2s ease-in-out infinite;
}

.checkout-instapay-whatsapp-btn__arrow {
    margin-inline-start: auto;
    opacity: 0.95;
}

.checkout-instapay-whatsapp-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
}

.checkout-instapay-whatsapp-btn.is-disabled {
    opacity: 0.48;
    filter: grayscale(0.25);
    cursor: not-allowed;
    box-shadow: none;
    animation: none;
    transform: none;
}

.checkout-instapay-whatsapp-btn.is-disabled:hover {
    transform: none;
    box-shadow: none;
    color: #fff;
}

.checkout-instapay-whatsapp-btn.is-busy {
    pointer-events: none;
    opacity: 0.72;
    animation: none;
    cursor: wait;
}

@keyframes checkoutInstapayPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35); }
    50% { box-shadow: 0 8px 28px rgba(124, 58, 237, 0.55), 0 0 0 4px rgba(167, 139, 250, 0.25); }
}

@keyframes checkoutInstapayPulseGreen {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35); }
    50% { box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5), 0 0 0 4px rgba(52, 211, 153, 0.22); }
}

@media (prefers-reduced-motion: reduce) {
    .checkout-instapay-pay-link-btn,
    .checkout-instapay-whatsapp-btn--hero {
        animation: none;
    }
}

.checkout-instapay-confirm-btn {
    width: 100%;
    margin-top: 0;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.checkout-instapay-cancel-btn {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: transparent;
    color: var(--medium-text);
    font-weight: 600;
    cursor: pointer;
}

.checkout-instapay-cancel-btn:hover {
    background: var(--light-bg);
}

.checkout-instapay-empty {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.9rem;
    text-align: center;
}

.checkout-auth-modal-submit {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.checkout-auth-modal-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.checkout-auth-switch {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.88rem;
    color: var(--medium-text);
}

.checkout-auth-switch button {
    background: none;
    border: none;
    color: var(--dark-blue);
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.checkout-auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--dark-text);
}

.checkout-auth-remember input {
    width: auto;
}

.checkout-auth-remember label {
    margin: 0;
    font-weight: 500;
}

.checkout-auth-hint {
    font-size: 0.78rem;
    color: var(--muted-text);
    margin-top: 4px;
}

.checkout-auth-strength {
    margin-top: 6px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.checkout-auth-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.2s ease, background 0.2s ease;
}

[data-theme="dark"] .checkout-auth-modal-overlay {
    background: rgba(0, 0, 0, 0.72);
}

[data-theme="dark"] .checkout-auth-modal-box {
    background: var(--surface-elevated);
    border-color: var(--border-color);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

[data-theme="dark"] .checkout-auth-modal-head {
    background: linear-gradient(135deg, #1a4a8a 0%, var(--light-blue) 100%);
}

[data-theme="dark"] .checkout-auth-modal-body {
    background: var(--surface-elevated);
    color: var(--dark-text);
}

[data-theme="dark"] .checkout-auth-modal-body label,
[data-theme="dark"] .checkout-auth-remember {
    color: var(--dark-text);
}

[data-theme="dark"] .checkout-auth-modal-body input[type="text"],
[data-theme="dark"] .checkout-auth-modal-body input[type="tel"],
[data-theme="dark"] .checkout-auth-modal-body input[type="email"],
[data-theme="dark"] .checkout-auth-modal-body input[type="password"] {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--dark-text);
}

[data-theme="dark"] .checkout-auth-modal-body input:focus {
    border-color: #7eb8ff;
}

[data-theme="dark"] .checkout-auth-modal-alert.is-error {
    background: rgba(127, 29, 29, 0.35);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.45);
}

[data-theme="dark"] .checkout-auth-modal-alert.is-success {
    background: rgba(20, 83, 45, 0.35);
    color: #bbf7d0;
    border-color: rgba(74, 222, 128, 0.35);
}

[data-theme="dark"] .checkout-auth-switch {
    border-top-color: var(--border-color);
    color: var(--muted-text);
}

[data-theme="dark"] .checkout-auth-switch button {
    color: #9ec5ff;
}

[data-theme="dark"] .checkout-auth-hint {
    color: var(--muted-text);
}

[data-theme="dark"] .checkout-auth-strength {
    background: var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--primary-white);
    color: var(--dark-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
    border-color: var(--dark-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Payment Methods */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method-option {
    position: relative;
}

.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-white);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.payment-label:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    transform: translateX(-3px);
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
}

.payment-method-option input[type="radio"]:checked + .payment-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transform: translateX(-3px);
}

.payment-method-option input[type="radio"]:checked + .payment-label .payment-name,
.payment-method-option input[type="radio"]:checked + .payment-label .payment-desc {
    color: var(--primary-white);
}

.payment-method-option input[type="radio"]:checked + .payment-label .payment-arrow {
    color: var(--primary-white);
    transform: translateX(-5px);
}

.payment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e7ff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.payment-method-option input[type="radio"]:checked + .payment-label .payment-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-icon i {
    font-size: 2rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.payment-method-option input[type="radio"]:checked + .payment-label .payment-icon i {
    color: var(--primary-white);
    transform: scale(1.1);
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.payment-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.payment-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.payment-desc {
    font-size: 0.9rem;
    color: var(--medium-text);
    line-height: 1.5;
    transition: all 0.3s ease;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.payment-arrow {
    color: #9ca3af;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-right: auto;
}

.payment-method-info {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
}

.payment-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.payment-info-card i {
    font-size: 1.5rem;
    color: #3b82f6;
    margin-top: 2px;
    flex-shrink: 0;
}

.payment-info-card strong {
    color: #1e40af;
    font-size: 1rem;
    display: block;
    margin-bottom: 8px;
}

.payment-info-card p {
    margin: 0;
    color: #1e3a8a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.payment-label.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light-gray);
}

.payment-label.disabled:hover {
    background: var(--light-gray);
    transform: none;
}

.payment-method-option input[type="radio"]:disabled + .payment-label {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light-gray);
}

/* Payment Account Details */
.payment-account-details {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: 15px;
    border: 2px solid var(--dark-blue);
}

.account-details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-details-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--dark-blue);
    border-radius: 2px;
}

.account-details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.account-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-white);
    border-radius: 10px;
    border: 1px solid rgba(0, 53, 128, 0.1);
}

.account-detail-item i {
    font-size: 1.5rem;
    color: var(--dark-blue);
    width: 40px;
    text-align: center;
}

.account-detail-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.account-label {
    font-size: 0.85rem;
    color: var(--medium-text);
    font-weight: 600;
}

.account-value {
    font-size: 1.1rem;
    color: var(--dark-text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.payment-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(254, 187, 2, 0.1);
    border-radius: 10px;
    border-right: 4px solid var(--yellow-accent);
}

.payment-note i {
    color: var(--yellow-accent);
    font-size: 1.25rem;
}

.payment-note span {
    color: var(--dark-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.account-details-subtitle {
    color: var(--medium-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 53, 128, 0.1);
}

.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.account-item {
    background: var(--primary-white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(0, 53, 128, 0.1);
    transition: all 0.3s;
}

.account-item:hover {
    border-color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.1);
    transform: translateY(-2px);
}

.account-qr-link {
    color: var(--dark-blue);
    font-weight: 700;
    text-decoration: underline;
    word-break: break-all;
}

.account-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-gray);
}

.account-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.account-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--yellow-accent);
    border-radius: 50%;
}

.account-number-copy {
    position: relative;
    transition: all 0.3s;
}

.account-number-copy:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.account-number-copy::after {
    content: '📋';
    margin-right: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

.account-number-copy:hover::after {
    opacity: 1;
}

.form-actions {
    margin-top: 1rem;
}

.btn-submit-checkout {
    width: 100%;
    padding: 1.25rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--dark-blue);
}

.btn-submit-checkout:hover {
    background: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
    border-color: var(--light-blue);
}

/* شريط ثابت أسفل صفحة الدفع على الموبايل */
@keyframes checkout-sticky-blue-flash {
    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(37, 99, 235, 0.55),
            0 4px 18px rgba(37, 99, 235, 0.35);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(37, 99, 235, 0),
            0 6px 28px rgba(59, 130, 246, 0.65);
    }
}

@keyframes checkout-payment-attn-flash {
    0%,
    100% {
        outline: 3px solid rgba(37, 99, 235, 0.35);
        outline-offset: 2px;
    }
    50% {
        outline: 3px solid rgba(59, 130, 246, 0.95);
        outline-offset: 4px;
    }
}

.checkout-sticky-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    background: linear-gradient(to top, #f8fafc 0%, var(--primary-white) 45%);
    box-shadow: 0 -6px 24px rgba(37, 99, 235, 0.12);
    border-top: 2px solid rgba(59, 130, 246, 0.35);
}

.checkout-sticky-bottom.is-visible {
    display: block;
}

.checkout-sticky-bottom-inner {
    max-width: 480px;
    margin: 0 auto;
}

.checkout-sticky-btn {
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #1e40af 100%);
    color: var(--primary-white);
    border: 2px solid rgba(147, 197, 253, 0.9);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, transform 0.2s;
    animation: checkout-sticky-blue-flash 1.6s ease-in-out infinite;
}

.checkout-sticky-btn.checkout-sticky-btn--needs-payment {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0c4a6e 100%);
    border-color: rgba(125, 211, 252, 0.95);
}

@media (prefers-reduced-motion: reduce) {
    .checkout-sticky-btn {
        animation: none;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    }
}

.payment-methods-grid.checkout-payment-attn {
    animation: checkout-payment-attn-flash 0.9s ease-in-out 2;
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .payment-methods-grid.checkout-payment-attn {
        animation: none;
        outline: 3px solid rgba(37, 99, 235, 0.6);
        outline-offset: 2px;
    }
}

.checkout-sticky-btn:active {
    transform: scale(0.98);
}

.checkout-sticky-btn:hover {
    background: #002a5c;
}

@media (min-width: 769px) {
    .checkout-sticky-bottom {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.checkout-sticky-visible .checkout-section {
        padding-bottom: 100px;
    }
}

/* Checkout Summary */
.checkout-summary-section {
    position: sticky;
    top: 100px;
}

.checkout-summary-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
}

.summary-apartment {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--yellow-accent);
}

.summary-apartment-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--yellow-accent);
    flex-shrink: 0;
}

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

.summary-apartment-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.summary-apartment-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--medium-text);
}

.summary-apartment-specs i {
    color: var(--light-blue);
    margin-left: 0.5rem;
}

.summary-dates {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--yellow-accent);
}

.summary-date-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.summary-date-item i {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    border: 2px solid var(--yellow-accent);
}

.summary-label {
    display: block;
    font-size: 0.85rem;
    color: var(--medium-text);
    margin-bottom: 0.25rem;
}

.summary-value {
    display: block;
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1rem;
}

/* Coupon Section */
.summary-coupon-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--yellow-accent);
}

.summary-coupon-section label {
    display: block;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}

.coupon-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.coupon-input-wrapper input {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    font-size: 1rem;
}

.coupon-input-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.1);
}

.btn-apply-coupon {
    padding: 0.875rem 1.5rem;
    background: var(--yellow-accent);
    color: var(--black-text);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--yellow-accent);
}

.btn-apply-coupon:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    border-color: var(--dark-blue);
}

.coupon-message {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coupon-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.coupon-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Price Breakdown */
.summary-prices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    color: var(--dark-text);
}

.summary-price-item.discount {
    color: #28a745;
    font-weight: 600;
}

.summary-price-item.total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    padding-top: 1rem;
    border-top: 2px solid var(--yellow-accent);
}

.summary-services {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--yellow-accent);
}

.summary-services h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

/* Responsive Checkout */
@media (max-width: 968px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .checkout-summary-section {
        position: static;
    }
}

/* Thank You Page Styles */
.thankyou-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Invoice Page Styles */
.thankyou-section.invoice-page {
    padding: 40px 0;
    background: #eef1f6;
}

.thankyou-section.invoice-page .invoice-wrapper {
    max-width: 210mm;
    margin: 0 auto;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    overflow: visible;
    direction: rtl;
    text-align: right;
}

.invoice-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transform: scale(0.95);
    transform-origin: top center;
    direction: rtl;
    text-align: right;
}

.invoice-header {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-white);
    direction: rtl;
}

.invoice-header-left h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    color: var(--primary-white);
}

.invoice-header-left p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.success-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--yellow-accent);
    color: var(--black-text);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
}

.success-badge i {
    font-size: 1.5rem;
}

.invoice-title-section {
    padding: 1.25rem 2rem;
    background: var(--light-gray);
    border-bottom: 3px solid var(--yellow-accent);
    direction: rtl;
    text-align: right;
}

.invoice-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0 0 0.5rem 0;
    text-align: right;
}

.invoice-number {
    font-size: 1.1rem;
    color: var(--medium-text);
    margin: 0;
}

.invoice-number strong {
    color: var(--dark-blue);
    font-size: 1.2rem;
}

.invoice-content {
    padding: 1.5rem 2rem;
}

.invoice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.invoice-column {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--yellow-accent);
    direction: rtl;
    text-align: right;
}

.invoice-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--yellow-accent);
}

.invoice-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.invoice-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    direction: rtl;
    flex-direction: row-reverse;
}

.invoice-detail-item:last-child {
    border-bottom: none;
}

.invoice-label {
    font-weight: 600;
    color: var(--medium-text);
    min-width: 140px;
    text-align: right;
}

.invoice-value {
    font-weight: 700;
    color: var(--dark-text);
    text-align: right;
    flex: 1;
    direction: rtl;
}

.payment-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

.payment-status-paid {
    background: #d4edda;
    color: #155724;
}

.payment-status-pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status-failed {
    background: #f8d7da;
    color: #721c24;
}

.payment-status-refunded {
    background: #d1ecf1;
    color: #0c5460;
}

.invoice-pricing-section {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--yellow-accent);
    margin-bottom: 1.25rem;
    direction: rtl;
    text-align: right;
}

.invoice-pricing-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    direction: rtl;
    flex-direction: row-reverse;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-label {
    color: var(--dark-text);
    font-weight: 500;
    text-align: right;
}

.pricing-value {
    font-weight: 700;
    color: var(--dark-text);
    text-align: left;
}

.pricing-row.discount-row {
    color: var(--dark-blue);
}

.pricing-row.discount-row .pricing-value {
    color: #dc3545;
}

.pricing-row.pricing-total {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--yellow-accent);
    font-size: 1.3rem;
}

.pricing-row.pricing-total .pricing-label,
.pricing-row.pricing-total .pricing-value {
    font-size: 1.5rem;
    color: var(--dark-blue);
    font-weight: 800;
}

.invoice-notes-section,
.invoice-info-section {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--yellow-accent);
    margin-bottom: 1.25rem;
}

.invoice-notes {
    color: var(--dark-text);
    line-height: 1.8;
    margin: 0;
}

.invoice-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invoice-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--primary-white);
    border-radius: 10px;
    direction: rtl;
    flex-direction: row-reverse;
}

.invoice-info-list li i {
    color: var(--dark-blue);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.invoice-info-list li span {
    color: var(--dark-text);
    line-height: 1.6;
}

.invoice-footer {
    padding: 1.25rem 2rem;
    background: var(--light-gray);
    border-top: 3px solid var(--yellow-accent);
}

.invoice-footer-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.invoice-footer-text {
    text-align: center;
    color: var(--medium-text);
    margin: 0;
    font-size: 0.9rem;
}

.thankyou-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.thankyou-icon {
    margin-bottom: 2rem;
}

.success-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--yellow-accent) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 30px rgba(254, 187, 2, 0.4);
    border: 4px solid var(--dark-blue);
    animation: scaleIn 0.6s ease-out;
}

.success-circle i {
    font-size: 3.5rem;
    color: var(--dark-blue);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thankyou-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.thankyou-subtitle {
    font-size: 1.5rem;
    color: var(--light-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.thankyou-message {
    font-size: 1.2rem;
    color: var(--medium-text);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Booking Details Card */
.thankyou-booking-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--yellow-accent);
}

.booking-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--yellow-accent);
    text-align: right;
}

.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.booking-detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--light-gray);
    border-radius: 15px;
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.booking-detail-item:hover {
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(254, 187, 2, 0.2);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: var(--yellow-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--yellow-accent);
}

.detail-icon i {
    font-size: 1.5rem;
    color: var(--black-text);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
    flex: 1;
}

.detail-label {
    font-size: 0.9rem;
    color: var(--medium-text);
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
}

.booking-total-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--yellow-accent);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
}

/* Info Box */
.thankyou-info-box {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
    text-align: right;
}

.info-box-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--yellow-accent);
}

.info-box-header i {
    font-size: 1.5rem;
    color: var(--light-blue);
}

.info-box-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.info-list li:hover {
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    border-color: var(--yellow-accent);
}

.info-list li i {
    color: var(--dark-blue);
    font-size: 1.25rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.info-list li span {
    color: var(--dark-text);
    line-height: 1.6;
}

/* Action Buttons */
.thankyou-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-thankyou {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid;
    cursor: pointer;
}

.btn-thankyou.btn-primary {
    background: var(--dark-blue);
    color: var(--primary-white);
    border-color: var(--dark-blue);
}

.btn-thankyou.btn-primary:hover {
    background: var(--light-blue);
    border-color: var(--light-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 53, 128, 0.4);
}

.btn-thankyou.btn-secondary {
    background: var(--yellow-accent);
    color: var(--black-text);
    border-color: var(--yellow-accent);
}

.btn-thankyou.btn-secondary:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    border-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 187, 2, 0.4);
}

.btn-thankyou.btn-outline {
    background: transparent;
    color: var(--dark-blue);
    border-color: var(--dark-blue);
}

.btn-thankyou.btn-outline:hover {
    background: var(--dark-blue);
    color: var(--primary-white);
    transform: translateY(-3px);
}

/* Download Link */
.thankyou-download {
    text-align: center;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-white);
    color: var(--dark-blue);
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.download-link:hover {
    background: var(--yellow-accent);
    color: var(--black-text);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(254, 187, 2, 0.3);
}

.download-link i {
    font-size: 1.25rem;
}

/* Responsive Thank You */
@media (max-width: 768px) {
    .thankyou-title {
        font-size: 2rem;
    }

    .thankyou-subtitle {
        font-size: 1.25rem;
    }

    .thankyou-message {
        font-size: 1rem;
    }

    .thankyou-booking-card {
        padding: 1.5rem;
    }

    .booking-details-grid {
        grid-template-columns: 1fr;
    }

    .thankyou-actions {
        flex-direction: column;
    }

    .btn-thankyou {
        width: 100%;
    }

    .success-circle {
        width: 100px;
        height: 100px;
    }

    .success-circle i {
        font-size: 2.5rem;
    }

    /* Invoice Responsive */
    .invoice-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .invoice-header-left h1 {
        font-size: 2rem;
    }

    .invoice-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .invoice-content {
        padding: 1.5rem;
    }

    .invoice-title-section {
        padding: 1.5rem;
    }

    .invoice-footer {
        padding: 1.5rem;
    }

    .invoice-footer-actions {
        flex-direction: column;
    }

    .invoice-footer-actions .btn-thankyou {
        width: 100%;
    }

    .pricing-row.pricing-total .pricing-label,
    .pricing-row.pricing-total .pricing-value {
        font-size: 1.2rem;
    }
}

/* Print Styles for Invoice */
@media print {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }

    .thankyou-section.invoice-page {
        padding: 0;
        background: white;
        min-height: auto;
    }

    .invoice-wrapper {
        max-width: 100%;
        box-shadow: none;
        border-radius: 0;
        page-break-inside: avoid;
    }

    .invoice-header {
        padding: 1.5rem;
        page-break-inside: avoid;
    }

    .invoice-header-left h1 {
        font-size: 1.8rem;
    }

    .invoice-title-section {
        padding: 1rem 1.5rem;
        page-break-inside: avoid;
    }

    .invoice-title {
        font-size: 1.5rem;
    }

    .invoice-content {
        padding: 1.5rem;
    }

    .invoice-row {
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
    }

    .invoice-column {
        padding: 1rem;
    }

    .invoice-section-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .invoice-detail-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .invoice-pricing-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
    }

    .pricing-row {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }

    .pricing-row.pricing-total {
        margin-top: 0.75rem;
        padding-top: 1rem;
        font-size: 1.1rem;
    }

    .pricing-row.pricing-total .pricing-label,
    .pricing-row.pricing-total .pricing-value {
        font-size: 1.2rem;
    }

    .invoice-notes-section,
    .invoice-info-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
        page-break-inside: avoid;
    }

    .invoice-info-list li {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .invoice-footer {
        padding: 1rem 1.5rem;
        page-break-inside: avoid;
        page-break-after: avoid;
    }

    .invoice-footer-actions {
        display: none;
    }

    .invoice-footer-text {
        font-size: 0.8rem;
    }

    /* Hide elements not needed in print */
    header,
    footer,
    .fixed-floating-buttons,
    .reviews-fixed-btn,
    .sidebar-menu {
        display: none !important;
    }

    /* Ensure no page breaks in middle of sections */
    .invoice-column,
    .invoice-pricing-table,
    .invoice-detail-list {
        page-break-inside: avoid;
    }

    /* Optimize spacing for print */
    .invoice-row {
        gap: 1rem;
    }

    .invoice-detail-list {
        gap: 0.5rem;
    }

    .invoice-info-list {
        gap: 0.5rem;
    }

    .invoice-pricing-table {
        gap: 0.5rem;
    }

    /* Reduce font sizes if needed */
    .invoice-label,
    .invoice-value {
        font-size: 0.85rem;
    }

    .invoice-value {
        font-weight: 600;
    }

    .pricing-label,
    .pricing-value {
        font-size: 0.85rem;
    }

    /* Force single page */
    @page {
        size: A4;
        margin: 0.8cm;
    }

    html, body {
        height: auto;
    }

    .invoice-wrapper {
        transform: scale(1);
    }
}

/* PDF Generation Styles */
.invoice-wrapper {
    position: relative;
}

/* Thank You Page - Premium invoice (Panorama_Beach_Invoice.pdf) */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500;600;700;800&family=Playfair+Display:wght@600;700&family=Noto+Naskh+Arabic:wght@500;600;700;800&display=swap');

.thankyou-invoice-pdf-container {
    --inv-navy: #0b1a3a;
    --inv-navy-mid: #122654;
    --inv-gold: #b8956a;
    --inv-gold-light: #d4b896;
    --inv-border: #d8dee8;
    --inv-row-bg: #fafbfd;
    --inv-font-ar: 'Cairo', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, sans-serif;
    position: relative;
    width: 210mm;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--inv-border);
    border-radius: 10px;
    box-shadow: 0 6px 28px rgba(11, 26, 58, 0.1);
    overflow: hidden;
    font-family: var(--inv-font-ar);
    font-weight: 600;
    --inv-text-size: 1.45rem;
    --inv-total-size: 1.65rem;
    --inv-policy-size: 1.18rem;
    font-size: var(--inv-text-size);
    direction: rtl;
    color: #141428;
    line-height: 1.55;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.thankyou-invoice-scale-viewport {
    container-type: inline-size;
    container-name: invoice-screen;
    width: 100%;
    max-width: 210mm;
    margin-inline: auto;
    overflow: visible;
}

.thankyou-invoice-body-wrap { padding: 0; }

/* ── Header (LTR: logo block | center title | meta box) ── */
.thankyou-invoice-header {
    direction: ltr;
    display: grid;
    grid-template-columns: 128px 1fr minmax(200px, 230px);
    align-items: center;
    gap: 16px;
    padding: 16px 22px 14px;
    border-bottom: 1px solid var(--inv-border);
    background: #fff;
}

.thankyou-invoice-header-logo-block {
    text-align: center;
}

.thankyou-invoice-logo {
    width: 88px;
    height: auto;
    max-height: 88px;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px;
}

.thankyou-invoice-logo-brand1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--inv-navy);
    margin: 0 0 1px;
    text-transform: uppercase;
}

.thankyou-invoice-logo-brand2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--inv-gold);
    margin: 0 0 5px;
}

.thankyou-invoice-logo-stars {
    color: var(--inv-gold);
    font-size: 9px;
    letter-spacing: 2px;
    line-height: 1;
}

.thankyou-invoice-header-brand {
    text-align: center;
    direction: rtl;
}

.thankyou-invoice-brand-line1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--inv-navy);
    margin: 0 0 3px;
    text-transform: uppercase;
}

.thankyou-invoice-brand-line2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--inv-gold);
    margin: 0 0 10px;
}

.thankyou-invoice-brand-ar-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.thankyou-invoice-brand-ar-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--inv-gold-light), var(--inv-gold));
    min-width: 40px;
}

.thankyou-invoice-brand-ar-wrap .thankyou-invoice-brand-ar-line:last-child {
    background: linear-gradient(90deg, var(--inv-gold), var(--inv-gold-light), transparent);
}

.thankyou-invoice-brand-ar {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0d0d12;
    margin: 0;
    white-space: nowrap;
    line-height: 1.1;
}

.thankyou-invoice-meta-box {
    background: var(--inv-navy);
    border-radius: 12px;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.thankyou-invoice-meta-row {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.thankyou-invoice-meta-row:last-child {
    border-bottom: none;
}

.thankyou-invoice-meta-icon {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1.5px solid var(--inv-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--inv-gold);
}

.thankyou-invoice-meta-icon .inv-svg-icon {
    stroke: var(--inv-gold);
}

.thankyou-invoice-meta-text {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.thankyou-invoice-meta-label {
    display: block;
    font-size: 10.5px;
    opacity: 0.9;
    margin-bottom: 2px;
    font-weight: 700;
}

.thankyou-invoice-meta-text strong {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: normal;
    display: block;
    word-break: normal;
    overflow-wrap: anywhere;
}

/* ── Panels ── */
.thankyou-invoice-tables-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 22px;
}

.thankyou-invoice-panel,
.thankyou-invoice-notes {
    border: 1px solid var(--inv-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.thankyou-invoice-panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: var(--inv-navy);
    color: #fff;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 800;
}

.thankyou-invoice-panel-head .inv-svg-icon {
    flex-shrink: 0;
    stroke: #fff;
    opacity: 0.95;
}

.thankyou-invoice-panel-head i {
    font-size: 13px;
    opacity: 0.9;
}

.thankyou-invoice-panel-body {
    padding: 0;
}

.thankyou-invoice-info-row {
    direction: ltr;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px dotted #c5ccd6;
    min-height: 44px;
}

.thankyou-invoice-info-row:last-child {
    border-bottom: none;
}

.thankyou-invoice-info-row .th-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--inv-navy);
}

.thankyou-invoice-info-row .th-icon .inv-svg-icon {
    stroke: #fff;
}

.thankyou-invoice-info-row .th-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    direction: rtl;
    text-align: right;
}

.thankyou-invoice-info-row .th-label {
    color: #1a1a2e;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.4;
}

.thankyou-invoice-info-row .th-value {
    color: #0b1a3a;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
    word-break: normal;
    overflow-wrap: break-word;
}

/* ── Price table ── */
.thankyou-invoice-pricing-section {
    padding: 0 22px 12px;
}

.thankyou-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-weight: 600;
}

.thankyou-invoice-table.price-table {
    border: 1px solid var(--inv-border);
    border-radius: 8px;
    overflow: hidden;
}

.thankyou-invoice-table.price-table th,
.thankyou-invoice-table.price-table td {
    padding: 9px 10px;
    text-align: center;
    border-bottom: 1px solid var(--inv-border);
}

.thankyou-invoice-table.price-table th:first-child,
.thankyou-invoice-table.price-table td:first-child {
    text-align: right;
    padding-right: 14px;
}

.thankyou-invoice-table.price-table thead {
    background: var(--inv-navy);
    color: #fff;
}

.thankyou-invoice-table.price-table thead th {
    font-weight: 800;
    font-size: 12.5px;
    border-bottom: none;
}

.thankyou-invoice-table.price-table tbody td {
    font-weight: 700;
    color: #141428;
}

.thankyou-invoice-table.price-table tbody tr {
    background: #fff;
}

.thankyou-invoice-table.price-table tbody tr:last-child td {
    border-bottom: none;
}

.thankyou-invoice-table.price-table .price-discount-cell.has-discount {
    color: #dc3545;
    font-weight: 800;
}

/* ── Financial bar (RTL: status | paid/remaining | total) ── */
.thankyou-invoice-financial-bar {
    display: grid;
    grid-template-columns: 1fr auto 1.1fr;
    align-items: stretch;
    gap: 10px;
    padding: 0 22px 14px;
}

.thankyou-invoice-financial-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--inv-border);
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    background: var(--inv-row-bg);
}

.thankyou-invoice-financial-middle {
    display: flex;
    align-items: stretch;
}

.fin-split-box {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--inv-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.fin-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    min-width: 100px;
    text-align: center;
}

.fin-vdivider {
    width: 1px;
    background: var(--inv-border);
    align-self: stretch;
}

.fin-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 700;
}

.fin-label i { margin-left: 4px; }

.fin-cell strong,
.thankyou-invoice-financial-status strong {
    font-size: 15px;
    font-weight: 800;
}

.fin-paid-val { color: #1e9e4a; }
.fin-remaining-val { color: #d93025; }

.thankyou-invoice-total-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--inv-navy);
    color: #fff;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
}

.thankyou-invoice-total-box .fin-label {
    color: rgba(255,255,255,0.72);
}

.thankyou-invoice-total-box strong {
    font-size: var(--inv-total-size);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.01em;
}

.payment-status-paid { color: #1e9e4a; }
.payment-status-pending { color: #c9920a; }
.payment-status-partial { color: #148ea8; }
.payment-status-failed { color: #d93025; }
.payment-status-refunded { color: #6c757d; }

/* ── Policies + watermark + footer block ── */
.thankyou-invoice-bottom {
    position: relative;
    margin: 0 22px;
    padding-bottom: 0;
}

.thankyou-invoice-bottom--no-policies {
    padding-top: 8px;
}

.thankyou-invoice-policies-wrap {
    position: relative;
    padding-top: 16px;
    margin-bottom: 0;
}

.thankyou-invoice-policies-pill {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--inv-navy);
    color: #fff;
    padding: 8px 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(11, 26, 58, 0.15);
    letter-spacing: 0.02em;
}

.thankyou-invoice-policies-pill .inv-svg-icon {
    stroke: #fff;
    flex-shrink: 0;
}

.thankyou-invoice-policies-card {
    border: 1.5px solid var(--inv-navy);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: #fff;
    padding: 38px 18px 14px;
    position: relative;
    z-index: 1;
}

.thankyou-invoice-policies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.thankyou-invoice-policy-item {
    direction: rtl;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: var(--inv-policy-size);
    font-weight: 700;
    line-height: 1.25;
    -webkit-font-smoothing: antialiased;
}

.thankyou-invoice-policy-item .policy-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--inv-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.thankyou-invoice-policy-item .policy-icon .inv-svg-icon {
    stroke: #fff;
}

.thankyou-invoice-policy-item .policy-text {
    flex: 1;
    min-width: 0;
    color: #1e1e32;
    text-align: right;
    word-break: normal;
    letter-spacing: normal;
}

.thankyou-invoice-policy-item .policy-text strong {
    color: var(--inv-navy);
    font-weight: 800;
    font-size: var(--inv-policy-size);
}

.thankyou-invoice-footer-zone {
    --inv-stamp-size: 108px;
    --inv-notch-height: 62px;
    --inv-footer-size: 0.8125rem;
    --inv-footer-label-size: 0.6875rem;
    --inv-footer-thanks-size: 0.75rem;
    position: relative;
    z-index: 3;
    margin-top: 0;
    background: #fff;
}

.thankyou-invoice-bottom--no-policies .thankyou-invoice-footer-zone {
    margin-top: 12px;
}

.thankyou-invoice-footer-zone--no-stamp .thankyou-invoice-footer-bar {
    margin-top: 0;
}

.thankyou-invoice-stamp-well {
    position: relative;
    z-index: 2;
    background: #fff;
    border-left: 1.5px solid var(--inv-navy);
    border-right: 1.5px solid var(--inv-navy);
    min-height: calc(var(--inv-stamp-size) + 6px);
    padding: 6px 0 calc(var(--inv-notch-height) - 22px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thankyou-invoice-watermark-stamp {
    position: relative;
    z-index: 5;
    width: var(--inv-stamp-size);
    flex-shrink: 0;
    pointer-events: none;
    opacity: 0.92;
    background: transparent;
}

.thankyou-invoice-watermark-stamp img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.98;
    filter: drop-shadow(0 2px 6px rgba(11, 26, 58, 0.12));
}

/* ── Notes ── */
.thankyou-invoice-notes {
    margin: 0 22px 14px;
}

.thankyou-invoice-notes-text {
    margin: 0;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: normal;
    letter-spacing: normal;
}

/* ── Footer (انحناءة علوية حول الختم) ── */
.thankyou-invoice-footer-bar {
    position: relative;
    z-index: 4;
    background: transparent;
    color: #fff;
    padding: 0;
    margin-top: calc(-1 * var(--inv-notch-height) + 10px);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.thankyou-invoice-footer-notch {
    display: block;
    width: 100%;
    height: var(--inv-notch-height);
}

.thankyou-invoice-footer-content {
    background: var(--inv-navy);
    margin-top: -1px;
    padding: 12px 22px 14px;
    border-radius: 0 0 10px 10px;
    position: relative;
    z-index: 2;
}

.thankyou-invoice-footer-row {
    direction: rtl;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    align-items: start;
    margin-bottom: 10px;
}

.thankyou-invoice-footer-col {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.thankyou-invoice-footer-col-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.footer-col-label {
    display: block;
    font-size: var(--inv-footer-label-size);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--inv-gold);
    line-height: 1.2;
}

.footer-col-value {
    display: block;
    font-size: var(--inv-footer-size);
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
}

.footer-phones-list {
    direction: ltr;
    unicode-bidi: embed;
    text-align: right;
    white-space: nowrap;
}

.footer-addr-ar {
    color: #fff;
}

.footer-addr-en {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: calc(var(--inv-footer-size) - 0.05rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.02em;
}

.thankyou-invoice-footer-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212, 184, 150, 0.14);
    color: var(--inv-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.thankyou-invoice-footer-icon .inv-svg-icon {
    stroke: var(--inv-gold);
}

.footer-sep {
    margin: 0 6px;
    opacity: 0.7;
    color: var(--inv-gold-light);
}

.thankyou-invoice-footer-thanks-wrap {
    text-align: center;
    padding-top: 2px;
}

.thankyou-invoice-footer-thanks-line {
    display: block;
    width: 48%;
    max-width: 240px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--inv-gold), transparent);
    margin: 0 auto 8px;
    opacity: 0.85;
}

.thankyou-invoice-footer-thanks {
    margin: 0;
    font-size: var(--inv-footer-thanks-size);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.4;
}

.thankyou-invoice-footer-thanks .thanks-ar {
    color: #fff;
    font-weight: 800;
}

.thankyou-invoice-footer-thanks .thanks-sep {
    margin: 0;
    opacity: 0.55;
    color: var(--inv-gold-light);
    font-weight: 400;
}

.thankyou-invoice-footer-thanks .thanks-en {
    color: var(--inv-gold-light);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* توحيد حجم خط محتوى الفاتورة — الهيدر يبقى بأحجامه الأصلية */
.thankyou-invoice-pdf-container .thankyou-invoice-panel-head,
.thankyou-invoice-pdf-container .thankyou-invoice-panel-head i,
.thankyou-invoice-pdf-container .th-label,
.thankyou-invoice-pdf-container .th-value,
.thankyou-invoice-pdf-container .thankyou-invoice-table,
.thankyou-invoice-pdf-container .thankyou-invoice-table.price-table thead th,
.thankyou-invoice-pdf-container .thankyou-invoice-table.price-table tbody td,
.thankyou-invoice-pdf-container .fin-label,
.thankyou-invoice-pdf-container .fin-cell strong,
.thankyou-invoice-pdf-container .thankyou-invoice-financial-status strong,
.thankyou-invoice-pdf-container .thankyou-invoice-total-box .fin-label,
.thankyou-invoice-pdf-container .thankyou-invoice-notes-text {
    font-size: var(--inv-text-size);
}

.thankyou-invoice-pdf-container .thankyou-invoice-policies-pill {
    font-size: calc(var(--inv-policy-size) + 0.05rem);
}

.thankyou-invoice-pdf-container .thankyou-invoice-policy-item,
.thankyou-invoice-pdf-container .thankyou-invoice-policy-item .policy-text,
.thankyou-invoice-pdf-container .thankyou-invoice-policy-item .policy-text strong {
    font-size: var(--inv-policy-size);
}

/* الفوتر أحجام مستقلة — أصغر من محتوى الفاتورة */
.thankyou-invoice-pdf-container .thankyou-invoice-footer-zone {
    --inv-footer-size: 0.8125rem;
    --inv-footer-label-size: 0.6875rem;
    --inv-footer-thanks-size: 0.75rem;
}

.thankyou-invoice-pdf-container .footer-col-label {
    font-size: var(--inv-footer-label-size);
}

.thankyou-invoice-pdf-container .footer-col-value,
.thankyou-invoice-pdf-container .footer-phones-list,
.thankyou-invoice-pdf-container .footer-addr-ar,
.thankyou-invoice-pdf-container .footer-addr-en {
    font-size: var(--inv-footer-size);
}

.thankyou-invoice-pdf-container .thankyou-invoice-footer-thanks,
.thankyou-invoice-pdf-container .thankyou-invoice-footer-thanks .thanks-en,
.thankyou-invoice-pdf-container .thankyou-invoice-footer-thanks .thanks-ar {
    font-size: var(--inv-footer-thanks-size);
}

.thankyou-invoice-pdf-container .thankyou-invoice-total-box strong {
    font-size: var(--inv-total-size);
}

/* التقاط صورة الفاتورة — منع قص المحتوى (جدول + شريط المبالغ) */
body.invoice-capture-mode {
    overflow: visible !important;
}

body.invoice-capture-mode .container,
body.invoice-capture-mode .invoice-wrapper,
body.invoice-capture-mode .thankyou-invoice-scale-viewport {
    overflow: visible !important;
    width: 210mm !important;
    max-width: 210mm !important;
    container-type: normal !important;
}

body.invoice-capture-mode .thankyou-invoice-pdf-container {
    zoom: 1 !important;
    transform: none !important;
    width: 210mm !important;
    max-width: 210mm !important;
    min-width: 210mm !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
    font-family: "Cairo", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body.invoice-capture-mode .thankyou-invoice-pdf-container * {
    font-family: "Cairo", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body.invoice-capture-mode .thankyou-invoice-header,
body.invoice-capture-mode .thankyou-invoice-header * {
    font-family: "Cairo", "Noto Naskh Arabic", "Playfair Display", "Segoe UI", Tahoma, sans-serif !important;
}

body.invoice-capture-mode .thankyou-invoice-body-wrap,
body.invoice-capture-mode .thankyou-invoice-page-one,
body.invoice-capture-mode .thankyou-invoice-page-two,
body.invoice-capture-mode .thankyou-invoice-page-one-end,
body.invoice-capture-mode .thankyou-invoice-pricing-section,
body.invoice-capture-mode .thankyou-invoice-financial-bar,
body.invoice-capture-mode .thankyou-invoice-meta-box,
body.invoice-capture-mode .thankyou-invoice-panel,
body.invoice-capture-mode .thankyou-invoice-bottom,
body.invoice-capture-mode .thankyou-invoice-policies-wrap,
body.invoice-capture-mode .thankyou-invoice-policies-card,
body.invoice-capture-mode .thankyou-invoice-policies-grid,
body.invoice-capture-mode .thankyou-invoice-policy-item,
body.invoice-capture-mode .thankyou-invoice-footer-zone,
body.invoice-capture-mode .thankyou-invoice-footer-bar,
body.invoice-capture-mode .thankyou-invoice-footer-content,
body.invoice-capture-mode .thankyou-invoice-stamp-well {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
    page-break-before: auto !important;
    page-break-after: auto !important;
    break-before: auto !important;
    break-after: auto !important;
}

body.invoice-capture-mode .thankyou-invoice-table.price-table,
body.invoice-capture-mode .fin-split-box {
    overflow: visible !important;
}

body.invoice-capture-mode .thankyou-invoice-table.price-table tbody tr,
body.invoice-capture-mode .thankyou-invoice-table.price-table tbody td,
body.invoice-capture-mode .thankyou-invoice-table.price-table thead th {
    overflow: visible !important;
    visibility: visible !important;
}

body.invoice-capture-mode .fin-cell,
body.invoice-capture-mode .thankyou-invoice-financial-status,
body.invoice-capture-mode .thankyou-invoice-total-box {
    overflow: visible !important;
    min-height: auto !important;
    height: auto !important;
}

body.invoice-capture-mode .fin-label {
    display: block !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
    white-space: normal !important;
}

body.invoice-capture-mode .fin-cell strong,
body.invoice-capture-mode .thankyou-invoice-financial-status strong,
body.invoice-capture-mode .thankyou-invoice-total-box strong {
    display: block !important;
    overflow: visible !important;
    visibility: visible !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

body.invoice-capture-mode .thankyou-invoice-financial-bar {
    align-items: stretch !important;
    height: auto !important;
}

body.invoice-capture-mode .fin-split-box {
    height: auto !important;
    align-items: stretch !important;
}

#downloadInvoiceImageBtn:disabled,
#downloadInvoicePdfBtn:disabled,
#adminDownloadInvoiceImageBtn:disabled,
#adminDownloadInvoicePdfBtn:disabled {
    opacity: 0.75;
    cursor: wait;
}

/* طباعة thankyou — مقاسات مضغوطة (ليس admin/print_invoice) */
@media print {
    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-pdf-container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        border-radius: 0;
        --inv-text-size: 1.02rem;
        --inv-total-size: 1.12rem;
        --inv-policy-size: 0.82rem;
        line-height: 1.32;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-scale-viewport,
    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-pdf-container {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-body-wrap {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one,
    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two,
    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one-end {
        page-break-before: avoid !important;
        break-before: avoid !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-header {
        padding: 6px 12px 4px;
        gap: 8px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-logo {
        width: 64px;
        max-height: 64px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-brand-ar {
        font-size: 1.45rem;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-tables-row {
        padding: 4px 12px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-info-row {
        padding: 3px 10px;
        min-height: 24px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-pricing-section {
        padding: 0 12px 4px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-table.price-table th,
    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-table.price-table td {
        padding: 4px 5px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-financial-bar {
        margin: 0 12px 4px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-notes {
        margin: 0 12px 4px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-one .thankyou-invoice-notes-text {
        padding: 6px 10px;
        line-height: 1.35;
        font-size: 0.92rem;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-bottom {
        margin: 0 12px 0;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-policies-pill {
        font-size: 0.88rem;
        padding: 5px 14px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-policies-card {
        padding: 26px 12px 10px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-policies-grid {
        gap: 4px 16px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-policy-item {
        margin-bottom: 2px;
        line-height: 1.25;
        font-size: var(--inv-policy-size);
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-policy-item .policy-text,
    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-policy-item .policy-text strong {
        font-size: var(--inv-policy-size);
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-policy-item .policy-icon {
        width: 20px;
        height: 20px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-page-two .thankyou-invoice-footer-zone {
        --inv-stamp-size: 80px;
        --inv-notch-height: 48px;
        margin-top: 2px !important;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-stamp-well {
        min-height: calc(var(--inv-stamp-size) + 2px);
        padding: 3px 0 calc(var(--inv-notch-height) - 18px);
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-footer-bar {
        margin-top: calc(-1 * var(--inv-notch-height) + 8px);
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-footer-content {
        padding: 10px 18px 12px;
    }

    body:not(.invoice-print-page):not(.admin-invoice-page) .thankyou-invoice-footer-row {
        grid-template-columns: 1fr 1fr;
        gap: 14px 20px;
    }
}

/* شاشة: نفس تصميم A4 — مقاس متجاوب بـ CSS فقط */
@media screen {
    .thankyou-section.invoice-page {
        overflow-x: auto;
        overflow-y: visible;
    }

    .thankyou-section.invoice-page .invoice-wrapper {
        width: 100%;
        max-width: 210mm;
        margin-inline: auto;
        padding-inline: clamp(8px, 3vw, 16px);
        box-sizing: border-box;
        overflow: visible;
    }

    .thankyou-invoice-scale-viewport {
        width: 100%;
        max-width: 210mm;
        margin-inline: auto;
    }

    @container invoice-screen (width < 210mm) {
        @supports (zoom: 1) {
            body:not(.invoice-print-page) .thankyou-invoice-pdf-container {
                width: 210mm;
                max-width: none;
                min-width: 0;
                zoom: calc(100cqi / 210mm);
            }
        }
    }

    @container invoice-screen (width < 210mm) {
        @supports not (zoom: 1) {
            body:not(.invoice-print-page) .thankyou-invoice-pdf-container {
                width: 100%;
                max-width: 100%;
                min-width: 0;
            }
        }
    }

    .thankyou-invoice-header {
        grid-template-columns: minmax(0, 128px) minmax(0, 1fr) minmax(0, 230px);
    }

    .thankyou-invoice-header-logo-block,
    .thankyou-invoice-header-brand,
    .thankyou-invoice-meta-box,
    .thankyou-invoice-panel {
        min-width: 0;
    }
}

@media screen and (max-width: 900px) {
    .thankyou-section.invoice-page {
        padding: 8px 0 12px;
    }

    .thankyou-section.invoice-page .invoice-wrapper {
        max-width: 100%;
        padding-inline: 12px;
    }

    .thankyou-invoice-scale-viewport {
        max-width: 100%;
    }
}

@media print {
    .thankyou-section.invoice-page {
        padding: 0;
        background: #fff;
    }

    .thankyou-section.invoice-page .invoice-wrapper {
        max-width: 100%;
    }

    .thankyou-invoice-pdf-container {
        box-shadow: none;
        border: none;
        max-width: 100%;
        border-radius: 0;
    }

    .thankyou-invoice-panel-head,
    .thankyou-invoice-policies-pill,
    .thankyou-invoice-table.price-table thead,
    .thankyou-invoice-total-box,
    .thankyou-invoice-meta-box,
    .thankyou-invoice-footer-bar {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Reviews Fixed Button */
.reviews-fixed-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--yellow-accent) 0%, #ffd700 100%);
    border: 3px solid var(--dark-blue);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(254, 187, 2, 0.6), 0 0 0 0 rgba(254, 187, 2, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: var(--black-text);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 30px rgba(254, 187, 2, 0.6), 0 0 0 0 rgba(254, 187, 2, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(254, 187, 2, 0.6), 0 0 0 10px rgba(254, 187, 2, 0);
    }
    100% {
        box-shadow: 0 8px 30px rgba(254, 187, 2, 0.6), 0 0 0 0 rgba(254, 187, 2, 0);
    }
}

.reviews-fixed-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 40px rgba(254, 187, 2, 0.8), 0 0 0 8px rgba(254, 187, 2, 0.2);
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
    color: var(--primary-white);
    border-color: var(--yellow-accent);
    animation: none;
}

.reviews-fixed-btn:active {
    transform: scale(1.05) translateY(-2px);
}

.reviews-fixed-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yellow-accent) 0%, #ffd700 100%);
    opacity: 0.3;
    z-index: -1;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.reviews-fixed-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
    transition: transform 0.3s;
}

.reviews-fixed-btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

.reviews-count {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Sidebar Menu - General Styles */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    z-index: 10000;
    transition: right 0.3s ease;
    pointer-events: none;
}

html[dir="rtl"] .sidebar-menu {
    right: auto;
    left: -100%;
    transition: left 0.3s ease;
}

.sidebar-menu.active {
    right: 0;
    pointer-events: auto;
}

html[dir="rtl"] .sidebar-menu.active {
    right: auto;
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-menu.active .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: var(--primary-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

html[dir="rtl"] .sidebar-content {
    right: auto;
    left: 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 1.5rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--primary-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.sidebar-nav a:hover {
    background: var(--light-gray);
    color: var(--dark-blue);
    padding-right: 2rem;
}

html[dir="ltr"] .sidebar-nav a:hover {
    padding-right: 1.5rem;
    padding-left: 2rem;
}

.sidebar-nav a.active {
    background: rgba(0, 71, 129, 0.1);
    color: var(--dark-blue);
    border-right: 4px solid var(--dark-blue);
    font-weight: 600;
}

html[dir="ltr"] .sidebar-nav a.active {
    border-right: none;
    border-left: 4px solid var(--dark-blue);
}

.sidebar-nav a i {
    margin-left: 1rem;
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

html[dir="ltr"] .sidebar-nav a i {
    margin-left: 0;
    margin-right: 1rem;
}

.sidebar-nav a span {
    flex: 1;
}

/* Fixed Floating Buttons */
.fixed-floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.floating-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
}

.floating-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 8px rgba(0, 0, 0, 0.1);
}

.floating-btn:active {
    transform: scale(1.05) translateY(-2px);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    animation: none;
}

.chatbot-btn {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--light-blue) 100%);
}

.chatbot-btn:hover {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--dark-blue) 100%);
}

.menu-toggle-btn {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
}

.menu-toggle-btn:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
}

/* صف: زر القائمة + دخول/تسجيل للموبايل (عند عدم وجود شريط علوي) */
.floating-menu-auth-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.floating-auth-compact {
    display: none;
}

@media (max-width: 768px) {
    .floating-auth-compact {
        display: flex;
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 1.15rem;
        border-width: 2px;
    }

    .floating-auth-compact--register {
        background: linear-gradient(135deg, #003580 0%, #0056b3 100%);
    }

    .floating-auth-compact--login {
        background: linear-gradient(135deg, #1a4d8c 0%, #003580 100%);
        border-color: rgba(255, 255, 255, 0.45);
    }
}

.btn-tooltip {
    position: absolute;
    right: 95px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-text);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: var(--dark-text);
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
    right: 100px;
}

@media (max-width: 768px) {
    .fixed-floating-buttons {
        bottom: 10px;
        right: 20px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        border-width: 2px;
    }
    
    .btn-tooltip {
        display: none;
    }
    
    .whatsapp-btn {
        animation: none;
    }
}

/* Mojeeb chat (desktop/tablet): shift launcher + panel left so they sit beside site float buttons, not over WhatsApp */
@media (min-width: 769px) {
    #mojeeb-chat-launcher {
        right: 118px !important;
        bottom: 28px !important;
    }

    #mojeeb-chat-iframe {
        right: 118px !important;
        transform-origin: bottom right !important;
        width: min(460px, calc(100vw - 140px)) !important;
    }
}

/* Mojeeb notification: beside launcher (to the left of chat button), not stacked upward over WhatsApp */
#mojeeb-chat-launcher .mojeeb-notification-bubble {
    bottom: auto !important;
    top: 50% !important;
    right: 100% !important;
    left: auto !important;
    margin-right: 12px !important;
    transform: translate(0, -50%) !important;
}

/* Reviews Modal */
.reviews-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    overflow-y: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.reviews-modal-content {
    background: var(--primary-white);
    margin: 3% auto;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--yellow-accent);
    animation: slideUp 0.4s;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.reviews-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 2px solid var(--yellow-accent);
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    border-radius: 20px 20px 0 0;
}

.reviews-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.reviews-modal-close {
    width: 40px;
    height: 40px;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 2px solid var(--dark-blue);
}

.reviews-modal-close:hover {
    background: var(--light-blue);
    transform: rotate(90deg);
    border-color: var(--light-blue);
}

.reviews-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

/* Overall Rating */
.reviews-overall {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 15px;
    border: 2px solid var(--yellow-accent);
}

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

.rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.rating-stars {
    font-size: 1.5rem;
    color: var(--yellow-accent);
    margin-bottom: 0.5rem;
}

.rating-count {
    color: var(--medium-text);
    font-size: 0.95rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.breakdown-label {
    width: 40px;
    font-weight: 600;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breakdown-label i {
    color: var(--yellow-accent);
    font-size: 0.85rem;
}

.breakdown-bar {
    flex: 1;
    height: 10px;
    background: var(--primary-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--yellow-accent);
}

.breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--yellow-accent) 0%, #ffd700 100%);
    border-radius: 10px;
    transition: width 0.5s;
}

.breakdown-percent {
    width: 40px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--medium-text);
    font-weight: 600;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-item {
    background: var(--primary-white);
    border-radius: 15px;
    padding: 1.5rem;
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 187, 2, 0.2);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--yellow-accent) 0%, #ffd700 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--dark-blue);
}

.reviewer-avatar i {
    font-size: 1.5rem;
    color: var(--dark-blue);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
}

.review-date {
    font-size: 0.85rem;
    color: var(--medium-text);
}

.review-rating {
    color: var(--yellow-accent);
    font-size: 1rem;
}

.review-text {
    color: var(--dark-text);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.review-apartment {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--medium-text);
    border: 2px solid var(--yellow-accent);
}

.review-apartment i {
    color: var(--dark-blue);
}

/* Responsive Reviews */
@media (max-width: 968px) {
    .reviews-modal-content {
        margin: 5% auto;
        max-width: 95%;
    }

    .reviews-overall {
        grid-template-columns: 1fr;
    }

    .reviews-fixed-btn {
        width: 55px;
        height: 55px;
        bottom: 100px;
        left: 20px;
        right: auto;
    }

    .reviews-fixed-btn i {
        font-size: 1.25rem;
    }

    .reviews-count {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .reviews-modal-header {
        padding: 1.5rem;
    }

    .reviews-modal-header h2 {
        font-size: 1.5rem;
    }

    .reviews-modal-body {
        padding: 1.5rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .review-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Add Review Form */
.add-review-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--yellow-accent);
}

.add-review-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.add-review-form {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--yellow-accent);
}

.add-review-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-review-form .form-group {
    margin-bottom: 1rem;
}

.add-review-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.add-review-form input[type="text"],
.add-review-form input[type="email"],
.add-review-form select,
.add-review-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.add-review-form input:focus,
.add-review-form select:focus,
.add-review-form textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(0, 53, 128, 0.1);
}

.rating-input {
    margin-top: 0.5rem;
}

.star-rating {
    display: flex;
    gap: 0.5rem;
    direction: rtl;
    justify-content: flex-start;
}

.star-rating i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.star-rating i.fas {
    color: #ffc107;
}

.star-rating i:hover,
.star-rating i:hover ~ i {
    color: #ffc107;
}

.btn-submit-review {
    width: 100%;
    padding: 1rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.btn-submit-review:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

.review-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

.review-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    display: block;
}

.review-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    display: block;
}

.no-reviews {
    text-align: center;
    padding: 3rem;
    color: var(--medium-text);
}

@media (max-width: 768px) {
    .add-review-form .form-row {
        grid-template-columns: 1fr;
    }
}

.offer-validity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--medium-text);
    font-size: 0.9rem;
}

.offer-validity i {
    color: var(--dark-blue);
}

.services-header {
    margin-bottom: 2rem;
}

.services-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.services-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 113, 194, 0.2);
    color: var(--dark-text);
    font-weight: 500;
    margin-bottom: 0;
}

.services-note i {
    color: var(--light-blue);
    font-size: 1.2rem;
}

.services-booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-booking-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--yellow-accent);
    transition: all 0.3s;
}

.service-booking-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 53, 128, 0.3);
}

.service-booking-card i {
    font-size: 3rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.service-booking-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.service-booking-card p {
    color: var(--medium-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-blue);
}

/* Complete Booking Styles */
.complete-booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.booking-summary-section h3,
.booking-form-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.summary-card {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
}

.summary-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--medium-text);
}

.summary-item-row:last-child {
    border-bottom: none;
}

.summary-item-row strong {
    color: var(--dark-text);
    font-weight: 600;
}

.summary-divider {
    height: 2px;
    background: var(--border-color);
    margin: 1rem 0;
}

.total-row {
    font-size: 1.3rem;
    font-weight: 700;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    margin-top: 1rem;
}

.total-row span {
    color: var(--dark-text);
}

.total-amount {
    color: var(--dark-blue);
    font-size: 1.5rem;
}

.discount-amount {
    color: #28a745;
}

.complete-booking-form {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--yellow-accent);
}

.complete-booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.complete-booking-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.complete-booking-form label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.complete-booking-form input,
.complete-booking-form textarea,
.complete-booking-form select {
    padding: 0.875rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.complete-booking-form input:focus,
.complete-booking-form textarea:focus,
.complete-booking-form select:focus {
    outline: none;
    border-color: var(--yellow-accent);
    border-radius: 12px;
    box-shadow: 0 0 0 3px rgba(254, 187, 2, 0.15);
}

.payment-title {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid var(--yellow-accent);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--light-gray);
}

.payment-method:hover {
    border-color: var(--yellow-accent);
    border-radius: 12px;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.2);
}

.payment-method input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.payment-method input[type="radio"]:checked + i,
.payment-method:has(input[type="radio"]:checked) {
    border-color: var(--yellow-accent);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffef0 0%, #fff9e0 100%);
    color: var(--dark-blue);
    box-shadow: 0 4px 12px rgba(254, 187, 2, 0.25);
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--medium-text);
}

.payment-method:has(input[type="radio"]:checked) i {
    color: var(--dark-blue);
}

.card-payment-details {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
    border: 2px solid var(--yellow-accent);
}

.terms-checkbox {
    margin: 2rem 0 1.5rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
    color: var(--medium-text);
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.terms-checkbox a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.btn-complete-booking {
    width: 100%;
    padding: 1.25rem;
    background: var(--dark-blue);
    color: var(--primary-white);
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 53, 128, 0.3);
}

.btn-complete-booking:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 53, 128, 0.4);
}

@media (max-width: 768px) {
    .search-bar-wrapper {
        grid-template-columns: 1fr;
    }

    .booking-layout {
        grid-template-columns: 1fr;
    }

    .apartment-list-item {
        grid-template-columns: 1fr;
    }

    .apt-list-image {
        width: 100%;
    }

    .coupon-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .coupon-input-group {
        min-width: 100%;
    }

    .complete-booking-wrapper {
        grid-template-columns: 1fr;
    }

    .complete-booking-form .form-row {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
    }
}

/* Hide default Chatbase bubble button */
#chatbase-bubble-button {
    display: none !important;
}

/* Hide Chatbase widget button */
#chatbase-widget-button,
.chatbase-widget-button,
[class*="chatbase"]:not(.chatbot-btn) {
    display: none !important;
}

/* ===== Welcome Coupon Popup - Compact & Professional ===== */
.welcome-coupon-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.welcome-coupon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.welcome-coupon-content {
    position: relative;
    background: linear-gradient(145deg, #1e3a5f 0%, #0d2137 100%);
    border-radius: 16px;
    max-width: 360px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.06);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.welcome-coupon-content.show {
    transform: scale(1);
    opacity: 1;
    top: -50px;
}

.welcome-coupon-close {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}

.welcome-coupon-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.welcome-coupon-header {
    text-align: center;
    padding: 24px 20px 16px;
    color: white;
}

.welcome-icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.95;
}

.welcome-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.welcome-subtitle {
    font-size: 12px;
    opacity: 0.85;
    margin: 0;
}

.welcome-coupon-body {
    background: #fff;
    padding: 16px 20px;
}

.coupon-code-display {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    margin-bottom: 12px;
}

.coupon-code-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-code-value {
    font-size: 20px;
    font-weight: 700;
    color: #0d2137;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.btn-copy-coupon {
    background: #0d2137;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
}

.btn-copy-coupon:hover {
    background: #1e3a5f;
    transform: translateY(-1px);
}

.coupon-details {
    text-align: center;
    margin-bottom: 10px;
}

.coupon-discount {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 4px;
}

.coupon-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.welcome-message {
    text-align: center;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.welcome-coupon-footer {
    background: #f8fafc;
    padding: 14px 20px;
    display: flex;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-welcome-book {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(13, 33, 55, 0.25);
}

.btn-welcome-book:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 33, 55, 0.3);
}

.btn-welcome-later {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-welcome-later:hover {
    border-color: #94a3b8;
    color: #475569;
}

@media (max-width: 480px) {
    .welcome-coupon-content {
        max-width: 100%;
        border-radius: 14px;
    }
    
    .welcome-title {
        font-size: 16px;
    }
    
    .coupon-code-value {
        font-size: 18px;
    }
    
    .welcome-coupon-footer {
        flex-direction: column;
    }
}

/* Welcome offer: horizontal snackbar — short height, wide on mobile */
.welcome-coupon-popup.welcome-coupon-popup--alert {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    width: min(520px, calc(100vw - 16px));
    height: auto;
    min-height: 0;
    max-height: none;
    display: block;
    padding: 0;
    margin: 0;
    background: transparent;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 100050;
    transform: translateX(-50%);
}

.welcome-coupon-popup--alert .welcome-coupon-content.welcome-coupon-content--hstrip {
    pointer-events: auto;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: hidden;
    background: #fff;
    color: #0f172a;
    border-radius: 12px;
    border-inline-start: 4px solid #0d9488;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.06);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.welcome-coupon-popup--alert .welcome-coupon-content--hstrip.show {
    transform: translateY(0);
    opacity: 1;
    top: auto;
}

.welcome-coupon-popup--alert .welcome-coupon-close--hstrip {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    left: auto;
    width: 30px;
    height: 30px;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
    border-radius: 8px;
}

.welcome-coupon-popup--alert .welcome-coupon-close--hstrip:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
    transform: none;
}

.welcome-hstrip-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 38px 8px 10px;
    min-height: 0;
}

.welcome-hstrip-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #14b8a6, #0d9488);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
}

.welcome-hstrip-middle {
    flex: 1 1 0;
    min-width: 0;
    text-align: start;
}

.welcome-coupon-content--hstrip .welcome-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 2px 0;
    line-height: 1.25;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.welcome-coupon-content--hstrip .welcome-subtitle {
    font-size: 11px;
    margin: 0;
    line-height: 1.3;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.welcome-hstrip-tools {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-welcome-book--hstrip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: none;
    white-space: nowrap;
}

.btn-welcome-book--hstrip i {
    font-size: 11px;
}

.btn-welcome-later--hstrip {
    padding: 6px 6px;
    font-size: 10px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: #64748b;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

.welcome-hstrip-code {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 6px 10px 8px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.welcome-hstrip-code .coupon-code-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.welcome-hstrip-code .coupon-code-value {
    font-size: 14px;
    font-weight: 800;
    font-family: ui-monospace, 'Cascadia Code', monospace;
    letter-spacing: 0.06em;
    color: #0d2137;
    margin: 0;
}

.btn-copy-coupon--hstrip {
    margin-inline-start: auto;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 6px;
    gap: 4px;
}

.welcome-hstrip-details {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 5px 10px 7px;
    font-size: 11px;
    line-height: 1.35;
    background: #f0fdf9;
    border-top: 1px solid #ccfbf1;
}

.welcome-hstrip-details .coupon-discount {
    font-weight: 700;
    color: #047857;
    margin: 0;
}

.welcome-hstrip-details .coupon-description {
    color: #64748b;
    margin: 0;
    flex: 1 1 140px;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.welcome-message--hstrip {
    display: none !important;
}

@media (max-width: 380px) {
    .welcome-hstrip-primary {
        flex-wrap: wrap;
        padding-bottom: 6px;
    }

    .welcome-hstrip-tools {
        width: 100%;
        justify-content: flex-end;
        padding-inline-end: 32px;
    }

    .btn-welcome-book--hstrip span {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Ownership Apartments */
.ownership-listing-section {
    padding: 48px 0 72px;
}

.ownership-card .ownership-badge {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #fff;
}

.ownership-price {
    margin: 12px 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--light-blue);
}

.ownership-price .price-currency {
    font-size: 0.95rem;
    font-weight: 600;
    margin-inline-start: 6px;
}

.ownership-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ownership-btn-details,
.ownership-btn-whatsapp {
    flex: 1 1 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ownership-btn-details {
    background: var(--primary-white);
    color: var(--light-blue);
    border: 2px solid var(--light-blue);
}

.ownership-btn-details:hover {
    background: var(--light-blue);
    color: #ffffff;
}

.ownership-btn-whatsapp,
.btn-whatsapp.ownership-detail-whatsapp {
    background: #25d366;
    color: #fff;
    border: 0;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
}

.ownership-btn-whatsapp:hover,
.btn-whatsapp.ownership-detail-whatsapp:hover {
    transform: translateY(-2px);
    color: #fff;
}

.ownership-detail-section {
    padding: 32px 0 72px;
}

.ownership-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.ownership-main-media {
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    min-height: 360px;
}

.ownership-main-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.ownership-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.ownership-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ownership-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.ownership-thumb {
    position: relative;
    flex: 0 0 92px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: #e2e8f0;
}

.ownership-thumb.active {
    border-color: var(--light-blue);
}

.ownership-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ownership-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

.ownership-detail-info {
    background: var(--primary-white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.ownership-detail-badge {
    display: inline-block;
    background: #ecfeff;
    color: #0f766e;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 12px;
}

.ownership-detail-info h1 {
    margin: 0 0 12px;
    font-size: 1.8rem;
    color: var(--dark-text);
}

.ownership-detail-desc {
    color: var(--medium-text);
    line-height: 1.7;
    margin-bottom: 18px;
}

.ownership-detail-features {
    margin-bottom: 20px;
}

.ownership-detail-price {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
}

.ownership-detail-price .price-label {
    display: block;
    color: var(--medium-text);
    margin-bottom: 6px;
}

.ownership-detail-price .price-value strong {
    font-size: 2rem;
    color: var(--light-blue);
}

.ownership-detail-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ownership-detail-content {
    margin-top: 40px;
    background: var(--primary-white);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.ownership-detail-content h2 {
    margin-top: 0;
    margin-bottom: 16px;
}

.ownership-content-body {
    color: var(--dark-text);
    line-height: 1.9;
    white-space: pre-line;
}

.no-apartments-message {
    text-align: center;
    padding: 72px 20px;
    color: var(--medium-text);
}

.no-apartments-message i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-blue);
}

@media (max-width: 900px) {
    .ownership-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ownership-listing-section {
        padding: 28px 0 56px;
    }

    .ownership-card-actions {
        flex-direction: column;
    }

    .ownership-btn-details,
    .ownership-btn-whatsapp {
        flex: 1 1 auto;
        width: 100%;
    }

    .ownership-detail-section {
        padding: 20px 0 56px;
    }

    .ownership-detail-info {
        padding: 20px 16px;
    }

    .ownership-detail-info h1 {
        font-size: 1.35rem;
    }

    .ownership-detail-price .price-value strong {
        font-size: 1.55rem;
    }

    .ownership-main-media {
        min-height: 240px;
        border-radius: 14px;
    }

    .ownership-main-media img {
        min-height: 240px;
    }

    .ownership-detail-content {
        padding: 20px 16px;
        margin-top: 24px;
    }

    .ownership-thumbnails {
        gap: 8px;
    }

    .ownership-thumb {
        flex: 0 0 76px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .apartments-grid {
        gap: 1.25rem;
    }

    .ownership-price {
        font-size: 1.15rem;
    }
}

/* Site marketing popup */
body.panorama-site-popup-open {
    overflow: hidden;
}

.panorama-site-popup {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.panorama-site-popup.is-open {
    display: flex !important;
}

.panorama-site-popup[hidden] {
    display: none !important;
}

.panorama-site-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 40, 0.62);
    backdrop-filter: blur(2px);
}

.panorama-site-popup__dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: min(90vh, 720px);
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    animation: panoramaPopupIn 0.35s ease;
}

.panorama-site-popup--promo_image .panorama-site-popup__dialog {
    width: min(100%, 560px);
    padding: 0;
    overflow: hidden;
}

.panorama-site-popup--bottom_slide {
    align-items: flex-end;
    padding: 0;
}

.panorama-site-popup--bottom_slide .panorama-site-popup__dialog {
    width: 100%;
    max-width: none;
    border-radius: 18px 18px 0 0;
    animation: panoramaPopupSlideUp 0.4s ease;
}

.panorama-site-popup--side_card {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
}

.panorama-site-popup--side_card .panorama-site-popup__dialog {
    width: min(100%, 360px);
    border-radius: 14px;
    animation: panoramaPopupSideIn 0.35s ease;
}

.panorama-site-popup__close {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #1a2b4b;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.panorama-site-popup__image-wrap {
    width: 100%;
    max-height: 260px;
    overflow: hidden;
}

.panorama-site-popup--promo_image .panorama-site-popup__image-wrap {
    max-height: 320px;
}

.panorama-site-popup__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panorama-site-popup__body {
    padding: 24px 22px 26px;
}

.panorama-site-popup--promo_image .panorama-site-popup__body {
    padding-top: 18px;
}

.panorama-site-popup__title {
    margin: 0 0 12px;
    font-size: 1.45rem;
    line-height: 1.35;
    color: #0b1a3a;
}

.panorama-site-popup__text {
    margin-bottom: 18px;
    color: #4a5568;
    line-height: 1.7;
    font-size: 0.98rem;
}

.panorama-site-popup__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b1a3a, #1f3f78);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panorama-site-popup__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 26, 58, 0.25);
}

@keyframes panoramaPopupIn {
    from { opacity: 0; transform: scale(0.94) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes panoramaPopupSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes panoramaPopupSideIn {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 640px) {
    .panorama-site-popup--side_card {
        align-items: flex-end;
        justify-content: center;
        padding: 12px;
    }

    .panorama-site-popup--side_card .panorama-site-popup__dialog {
        width: 100%;
    }

    .panorama-site-popup--split_image .panorama-site-popup__split {
        flex-direction: column;
    }

    .panorama-site-popup--split_image .panorama-site-popup__split-media {
        max-height: 200px;
    }
}

/* Additional popup templates */
.panorama-site-popup--light .panorama-site-popup__overlay {
    background: transparent;
    pointer-events: none;
}

.panorama-site-popup--light .panorama-site-popup__dialog {
    pointer-events: auto;
}

.panorama-site-popup--top_ribbon {
    align-items: flex-start;
    justify-content: center;
    padding: 0;
}

.panorama-site-popup--top_ribbon .panorama-site-popup__dialog {
    width: 100%;
    max-width: none;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #0b1a3a, #1f3f78);
    color: #fff;
    animation: panoramaPopupSlideDown 0.35s ease;
}

.panorama-site-popup--top_ribbon .panorama-site-popup__title,
.panorama-site-popup--top_ribbon .panorama-site-popup__text {
    color: #fff;
}

.panorama-site-popup--top_ribbon .panorama-site-popup__close {
    color: #0b1a3a;
}

.panorama-site-popup--minimal_toast {
    align-items: flex-start;
    justify-content: center;
    padding: 16px;
}

.panorama-site-popup--minimal_toast .panorama-site-popup__dialog {
    width: min(100%, 480px);
    border-radius: 999px;
    padding: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    animation: panoramaPopupIn 0.3s ease;
}

.panorama-site-popup--minimal_toast .panorama-site-popup__body {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.panorama-site-popup--minimal_toast .panorama-site-popup__title {
    font-size: 1rem;
    margin: 0;
}

.panorama-site-popup--minimal_toast .panorama-site-popup__text {
    margin: 0;
    font-size: 0.88rem;
}

.panorama-site-popup--minimal_toast .panorama-site-popup__btn {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.panorama-site-popup--split_image .panorama-site-popup__dialog {
    width: min(100%, 720px);
    padding: 0;
    overflow: hidden;
}

.panorama-site-popup--split_image .panorama-site-popup__split {
    display: flex;
    min-height: 280px;
}

.panorama-site-popup--split_image .panorama-site-popup__split-media {
    flex: 0 0 42%;
    min-height: 200px;
}

.panorama-site-popup--split_image .panorama-site-popup__split-media .panorama-site-popup__image {
    height: 100%;
    min-height: 200px;
    object-fit: cover;
}

.panorama-site-popup--split_image .panorama-site-popup__split-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panorama-site-popup--glass_modern .panorama-site-popup__overlay {
    background: rgba(11, 26, 58, 0.45);
    backdrop-filter: blur(6px);
}

.panorama-site-popup--glass_modern .panorama-site-popup__dialog {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.panorama-site-popup--full_bleed .panorama-site-popup__dialog {
    width: min(100%, 640px);
    min-height: 380px;
    padding: 0;
    overflow: hidden;
    background: #0b1a3a;
    border: none;
}

.panorama-site-popup--full_bleed .panorama-site-popup__bleed-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.panorama-site-popup--full_bleed .panorama-site-popup__body--on-image {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 28px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.panorama-site-popup--full_bleed .panorama-site-popup__title,
.panorama-site-popup--full_bleed .panorama-site-popup__text {
    color: #fff;
}

.panorama-site-popup--full_bleed .panorama-site-popup__close {
    z-index: 2;
}

.panorama-site-popup--newsletter_box .panorama-site-popup__dialog {
    border: 4px solid #d4af37;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.15), 0 24px 60px rgba(0, 0, 0, 0.22);
}

.panorama-site-popup--newsletter_box .panorama-site-popup__title {
    color: #8b6914;
}

.panorama-site-popup--newsletter_box .panorama-site-popup__btn {
    background: linear-gradient(135deg, #d4af37, #b8941f);
    color: #1a1200 !important;
}

.panorama-site-popup--circle_focus .panorama-site-popup__dialog {
    width: min(100%, 400px);
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: radial-gradient(circle at 30% 20%, #ffffff, #eef2fb);
    border: 6px solid rgba(31, 63, 120, 0.12);
}

.panorama-site-popup--circle_focus .panorama-site-popup__body {
    padding: 12px 20px 0;
}

.panorama-site-popup--circle_focus .panorama-site-popup__image-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 8px;
    max-height: none;
}

.panorama-site-popup--circle_focus .panorama-site-popup__image {
    border-radius: 50%;
    object-fit: cover;
    height: 72px;
}

.panorama-site-popup--circle_focus .panorama-site-popup__title {
    font-size: 1.15rem;
}

.panorama-site-popup--circle_focus .panorama-site-popup__text {
    font-size: 0.88rem;
}

@keyframes panoramaPopupSlideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* Favorites / Wishlist */
.apartment-card-wrap {
    position: relative;
}

.apartment-card,
.apartment-card-wrap .apartment-card {
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #c53030;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.08);
    background: #fff;
}

.favorite-btn.is-active {
    color: #e53e3e;
    background: #fff;
}

.favorite-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.favorite-btn i.fas {
    animation: favoritePop 0.25s ease;
}

/* Listing cards (home + apartments page): heart on the opposite side from badge */
.apartment-card-wrap > .favorite-btn,
.apartments-listing-section .apartment-card > .favorite-btn {
    right: auto;
    left: 12px;
}

@keyframes favoritePop {
    0% { transform: scale(0.7); }
    70% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.main-gallery-image .favorite-btn {
    top: 16px;
    right: 16px;
}

.header-favorites-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--dark-blue, #003580);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 53, 128, 0.12);
    text-decoration: none;
    margin-inline-end: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-favorites-link:hover {
    background: #fff;
    transform: translateY(-1px);
}

.header-favorites-link .favorites-count-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53e3e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.favorites-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Pay booking balance (guest) */
.pay-booking-page {
    min-height: calc(100vh - 200px);
    padding: 40px 20px 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pay-booking-container {
    max-width: 720px;
    margin: 0 auto;
}

.pay-booking-card {
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid transparent;
}

.pay-booking-header {
    background: linear-gradient(135deg, #003580 0%, #0056b3 100%);
    padding: 28px 32px;
    color: #ffffff;
}

.pay-booking-header h1 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
}

.pay-booking-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #ffffff;
}

.pay-booking-body {
    padding: 28px 32px;
    color: var(--dark-text);
}

.pay-alert {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.pay-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pay-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pay-alert-info {
    background: #e7f3ff;
    color: #003580;
    border: 1px solid #bee3f8;
}

.pay-phone-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.pay-phone-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 16px;
    background: var(--input-bg, var(--primary-white));
    color: var(--dark-text);
}

.pay-phone-form input[type="tel"]::placeholder {
    color: var(--muted-text);
}

.pay-phone-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--light-blue);
}

.btn-pay-lookup,
.btn-pay-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pay-lookup {
    background: linear-gradient(135deg, #003580 0%, #0056b3 100%);
    color: #ffffff;
    width: 100%;
}

.btn-pay-balance {
    background: linear-gradient(135deg, #F08D1E 0%, #e67e22 100%);
    color: #ffffff;
}

.btn-pay-lookup:hover,
.btn-pay-balance:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-pay-balance:disabled,
.btn-pay-lookup:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.pay-booking-item {
    border: 2px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--light-gray);
}

.pay-booking-item:last-child {
    margin-bottom: 0;
}

.pay-booking-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pay-booking-item-head strong {
    color: var(--light-blue);
    font-size: 1.05rem;
}

.pay-booking-item-head span {
    color: var(--dark-text);
}

.pay-booking-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    color: var(--medium-text);
    font-size: 0.92rem;
}

.pay-booking-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pay-booking-meta i {
    color: var(--light-blue);
}

.pay-remaining-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.pay-remaining-label {
    font-size: 0.85rem;
    color: var(--medium-text);
}

.pay-remaining-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #c53030;
}

.pay-balance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.btn-pay-balance--wallet {
    background: linear-gradient(135deg, #e60000 0%, #ff5722 100%);
}

.btn-pay-balance--wallet:hover {
    background: linear-gradient(135deg, #cc0000 0%, #e64a19 100%);
}

.pay-reset-link-wrap {
    margin-top: 16px;
    text-align: center;
}

.pay-reset-link {
    color: var(--light-blue);
    font-weight: 600;
    text-decoration: none;
}

.pay-reset-link:hover {
    text-decoration: underline;
}

.pay-login-hint {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    text-align: center;
    color: var(--medium-text);
    font-size: 0.92rem;
}

.pay-login-hint a {
    color: var(--light-blue);
    font-weight: 700;
}

@media (max-width: 600px) {
    .pay-booking-body {
        padding: 20px;
    }

    .pay-booking-header {
        padding: 22px 20px;
    }
}

/* Auth pages — login / register */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: var(--primary-white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid transparent;
}

.auth-header {
    background: linear-gradient(135deg, #003580 0%, #0056b3 100%);
    padding: 30px;
    text-align: center;
    color: #ffffff;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.auth-header p {
    opacity: 0.9;
    font-size: 0.95rem;
    color: #ffffff;
}

.auth-body {
    padding: 30px;
    color: var(--dark-text);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.auth-form .required::after {
    content: ' *';
    color: #e74c3c;
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--input-bg);
    color: var(--dark-text);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--light-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 194, 0.15);
}

.auth-form input::placeholder {
    color: var(--muted-text);
}

.auth-form .input-hint {
    font-size: 0.8rem;
    color: var(--medium-text);
    margin-top: 5px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--light-blue);
}

.remember-me label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    color: var(--dark-text);
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #003580 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 53, 128, 0.3);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--medium-text);
    margin-bottom: 15px;
}

.auth-footer a {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.forgot-password {
    text-align: left;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--medium-text);
    font-size: 0.85rem;
    text-decoration: none;
}

.forgot-password a:hover {
    color: var(--light-blue);
    text-decoration: underline;
}

.auth-page .alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.auth-page .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-page .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 5px;
    color: var(--medium-text);
}

.strength-weak {
    background: #e74c3c;
}

.strength-medium {
    background: #f39c12;
}

.strength-strong {
    background: #27ae60;
}

@media (max-width: 480px) {
    .auth-container {
        border-radius: 0;
        box-shadow: none;
    }

    .auth-page {
        padding: 0;
        background: var(--primary-white);
    }

    .auth-header {
        border-radius: 0;
    }
}

.favorites-container {
    max-width: 1100px;
    margin: 0 auto;
}

.favorites-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.favorites-header {
    padding: 28px 32px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.favorites-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.favorites-header h1 i {
    color: #e53e3e;
}

.favorites-guest-hint {
    margin: 0;
    color: #718096;
    font-size: 0.92rem;
}

.favorites-body {
    padding: 28px 32px 36px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.favorites-empty {
    text-align: center;
    padding: 48px 20px;
    color: #718096;
}

.favorites-empty i {
    font-size: 3rem;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.favorites-empty h2 {
    margin: 0 0 8px;
    color: #2d3748;
}

.favorites-item-card {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.favorites-item-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.favorites-item-image {
    display: block;
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.favorites-item-body {
    padding: 16px;
}

.favorites-item-body h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.favorites-item-body h3 a {
    color: inherit;
    text-decoration: none;
}

.favorites-item-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #718096;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.favorites-item-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.favorites-item-actions .btn-book {
    flex: 1;
    text-align: center;
    text-decoration: none;
}

@media (max-width: 768px) {
    .favorites-header,
    .favorites-body {
        padding: 20px 16px;
    }
}

/* Theme toggle */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--light-gray);
    color: var(--dark-text);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: var(--medium-gray);
    transform: translateY(-1px);
}

.theme-toggle-btn i {
    font-size: 1rem;
    line-height: 1;
}

.theme-toggle-btn--sidebar {
    width: auto;
    min-width: 40px;
    height: 36px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.theme-toggle-btn--sidebar:hover {
    background: rgba(255, 255, 255, 0.24);
}

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

@media (max-width: 992px) {
    .header .theme-toggle-btn:not(.theme-toggle-btn--sidebar) {
        display: none;
    }
}

/* Dark mode */
[data-theme="dark"] {
    color-scheme: dark;
    --primary-white: #151920;
    --dark-text: #eef1f4;
    --medium-text: #c5cbd3;
    --muted-text: #9aa3ae;
    --black-text: #eef1f4;
    --light-gray: #1e2430;
    --medium-gray: #2a3140;
    --border-color: #3a4150;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.55);
    --surface-elevated: #1c2230;
    --input-bg: #252b36;
}

[data-theme="dark"] body {
    background-color: var(--primary-white);
    color: var(--dark-text);
}

[data-theme="dark"] .header {
    background-color: rgba(21, 25, 32, 0.98);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .header-search-form {
    background: var(--input-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .header-search-input,
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--input-bg);
    color: var(--dark-text);
    border-color: var(--border-color);
}

[data-theme="dark"] .header-search-results {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .header-search-results a:hover {
    background: var(--light-gray);
}

[data-theme="dark"] .apartment-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .sidebar-content,
[data-theme="dark"] .filter-section,
[data-theme="dark"] .search-box,
[data-theme="dark"] .offer-card,
[data-theme="dark"] .blog-card,
[data-theme="dark"] .service-card {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .user-dropdown-toggle {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--dark-text);
}

[data-theme="dark"] .user-dropdown-toggle:hover {
    background: var(--medium-gray);
}

[data-theme="dark"] .user-dropdown-menu {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .user-dropdown-item:hover {
    background: var(--light-gray);
}

[data-theme="dark"] .user-dropdown-header {
    background: var(--light-gray);
}

[data-theme="dark"] .header-favorites-link {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--dark-text);
}

[data-theme="dark"] .favorite-btn {
    background: rgba(30, 36, 48, 0.92);
}

[data-theme="dark"] .lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-theme="dark"] .lang-switcher {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .lang-btn {
    color: var(--medium-text);
}

[data-theme="dark"] .lang-btn.active {
    background: var(--light-blue);
    color: #ffffff !important;
}

[data-theme="dark"] .header-search-form:focus-within {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 2px rgba(0, 113, 194, 0.25);
}

[data-theme="dark"] .header-search-input {
    background: transparent !important;
    color: var(--dark-text);
}

[data-theme="dark"] .header-search-input::placeholder {
    color: var(--medium-text);
}

[data-theme="dark"] .header-search-btn {
    background: var(--light-blue);
    color: #ffffff !important;
}

[data-theme="dark"] .header-search-btn:hover {
    background: #0091ea;
}

[data-theme="dark"] .hero,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-tagline,
[data-theme="dark"] .hero-pwa-text {
    color: #ffffff;
}

[data-theme="dark"] .hero-search-form {
    background: rgba(28, 34, 48, 0.94);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .search-form-group label {
    color: var(--dark-text);
}

[data-theme="dark"] .search-form-group input[type="date"],
[data-theme="dark"] .search-form-group input[type="text"],
[data-theme="dark"] .search-form-group select,
[data-theme="dark"] .date-range-group input[type="text"],
[data-theme="dark"] #heroCoupon,
[data-theme="dark"] #heroDateRange {
    background: var(--input-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--dark-text) !important;
}

[data-theme="dark"] .search-form-group input[type="date"]:hover,
[data-theme="dark"] .search-form-group input[type="text"]:hover,
[data-theme="dark"] .date-range-group input[type="text"]:hover {
    border-color: #5f6775 !important;
}

[data-theme="dark"] .search-form-group input::placeholder,
[data-theme="dark"] .date-range-group input[type="text"]::placeholder {
    color: var(--medium-text) !important;
    opacity: 1;
}

[data-theme="dark"] .search-form-group i {
    color: var(--medium-text);
}

[data-theme="dark"] .search-submit-btn {
    background: var(--light-blue);
    color: #ffffff !important;
}

[data-theme="dark"] .search-submit-btn:hover {
    background: var(--yellow-accent);
    color: #1a1200 !important;
}

[data-theme="dark"] .hero-quick-nav {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .hero-quick-nav-btn--apartments {
    background: rgba(0, 113, 194, 0.15);
    color: #8ecae6;
    border-color: rgba(0, 113, 194, 0.35);
}

[data-theme="dark"] .hero-quick-nav-btn--apartments:hover {
    background: var(--light-blue);
    color: #ffffff !important;
    border-color: var(--light-blue);
}

[data-theme="dark"] .hero-quick-nav-btn--offers {
    background: rgba(254, 187, 2, 0.12);
    color: #ffd966;
    border-color: rgba(254, 187, 2, 0.35);
}

[data-theme="dark"] .hero-quick-nav-btn--offers:hover {
    color: #1a1200 !important;
}

[data-theme="dark"] .hero-quick-nav-btn--ownership {
    background: rgba(30, 158, 74, 0.16);
    color: #86efac;
    border-color: rgba(30, 158, 74, 0.4);
}

[data-theme="dark"] .hero-quick-nav-btn--ownership:hover {
    background: #1e9e4a;
    color: #ffffff !important;
    border-color: #1e9e4a;
}

/* Flatpickr calendar — dark mode */
[data-theme="dark"] #flatpickr-overlay {
    background: rgba(0, 0, 0, 0.78) !important;
}

[data-theme="dark"] .hero-date-picker.flatpickr-calendar,
[data-theme="dark"] .flatpickr-calendar {
    background: var(--surface-elevated) !important;
    border-color: var(--border-color) !important;
    color: var(--dark-text);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .hero-date-picker .flatpickr-months,
[data-theme="dark"] .flatpickr-calendar .flatpickr-months {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .hero-date-picker .flatpickr-month,
[data-theme="dark"] .flatpickr-calendar .flatpickr-current-month,
[data-theme="dark"] .flatpickr-calendar .flatpickr-monthDropdown-months,
[data-theme="dark"] .flatpickr-calendar .numInputWrapper input {
    color: var(--dark-text) !important;
}

[data-theme="dark"] .hero-date-picker .flatpickr-prev-month,
[data-theme="dark"] .hero-date-picker .flatpickr-next-month,
[data-theme="dark"] .flatpickr-calendar .flatpickr-prev-month,
[data-theme="dark"] .flatpickr-calendar .flatpickr-next-month {
    color: var(--light-blue) !important;
    fill: var(--light-blue) !important;
}

[data-theme="dark"] .hero-date-picker .flatpickr-prev-month:hover,
[data-theme="dark"] .hero-date-picker .flatpickr-next-month:hover,
[data-theme="dark"] .flatpickr-calendar .flatpickr-prev-month:hover,
[data-theme="dark"] .flatpickr-calendar .flatpickr-next-month:hover {
    background: var(--light-gray);
}

[data-theme="dark"] .hero-date-picker .flatpickr-weekdays,
[data-theme="dark"] .flatpickr-calendar .flatpickr-weekdays {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .hero-date-picker .flatpickr-weekday,
[data-theme="dark"] .flatpickr-calendar span.flatpickr-weekday {
    color: var(--light-blue) !important;
}

[data-theme="dark"] .hero-date-picker .flatpickr-day,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day {
    color: var(--dark-text);
}

[data-theme="dark"] .hero-date-picker .flatpickr-day:hover,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day:hover {
    background: var(--light-gray);
    border-color: var(--light-blue);
    color: var(--dark-text);
}

[data-theme="dark"] .hero-date-picker .flatpickr-day.selected,
[data-theme="dark"] .hero-date-picker .flatpickr-day.startRange,
[data-theme="dark"] .hero-date-picker .flatpickr-day.endRange,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.selected,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.startRange,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.endRange {
    background: var(--light-blue) !important;
    border-color: var(--light-blue) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .hero-date-picker .flatpickr-day.inRange,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.inRange {
    background: rgba(0, 113, 194, 0.22) !important;
    border-color: rgba(0, 113, 194, 0.35) !important;
    color: var(--dark-text) !important;
    box-shadow: none;
}

[data-theme="dark"] .hero-date-picker .flatpickr-day.today,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.today {
    border-color: var(--yellow-accent);
}

[data-theme="dark"] .hero-date-picker .flatpickr-day.flatpickr-disabled,
[data-theme="dark"] .hero-date-picker .flatpickr-day.prevMonthDay,
[data-theme="dark"] .hero-date-picker .flatpickr-day.nextMonthDay,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.flatpickr-disabled,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.prevMonthDay,
[data-theme="dark"] .flatpickr-calendar .flatpickr-day.nextMonthDay {
    color: var(--medium-text) !important;
    opacity: 0.55;
}

[data-theme="dark"] .flatpickr-time input,
[data-theme="dark"] .flatpickr-time .flatpickr-am-pm {
    background: var(--input-bg);
    color: var(--dark-text);
}

[data-theme="dark"] .theme-toggle-btn:not(.theme-toggle-btn--sidebar) {
    background: var(--input-bg);
    color: #fbbf24;
}

[data-theme="dark"] .favorites-card,
[data-theme="dark"] .bookings-card,
[data-theme="dark"] .pay-booking-card,
[data-theme="dark"] .auth-container,
[data-theme="dark"] .auth-container .auth-card,
[data-theme="dark"] .auth-container > div {
    background: var(--surface-elevated) !important;
    color: var(--dark-text);
}

[data-theme="dark"] .auth-page {
    background: linear-gradient(135deg, #1a2030 0%, #151920 100%);
}

[data-theme="dark"] .auth-header {
    background: linear-gradient(135deg, #003580 0%, #0056b3 100%) !important;
}

[data-theme="dark"] .auth-header h1,
[data-theme="dark"] .auth-header p {
    color: #ffffff;
}

[data-theme="dark"] .auth-body {
    color: var(--dark-text);
}

[data-theme="dark"] .auth-form label,
[data-theme="dark"] .remember-me label {
    color: var(--dark-text);
}

[data-theme="dark"] .auth-form input {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--dark-text);
}

[data-theme="dark"] .auth-form input::placeholder {
    color: var(--muted-text);
}

[data-theme="dark"] .auth-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .auth-footer p {
    color: var(--medium-text);
}

[data-theme="dark"] .auth-footer a,
[data-theme="dark"] .forgot-password a:hover {
    color: #7eb8ff;
}

[data-theme="dark"] .forgot-password a {
    color: var(--medium-text);
}

[data-theme="dark"] .auth-form .input-hint,
[data-theme="dark"] .password-strength-text {
    color: var(--medium-text);
}

[data-theme="dark"] .auth-page .alert-success {
    background: rgba(72, 187, 120, 0.15);
    color: #9ae6b4;
    border-color: rgba(72, 187, 120, 0.35);
}

[data-theme="dark"] .auth-page .alert-error {
    background: rgba(245, 101, 101, 0.15);
    color: #feb2b2;
    border-color: rgba(245, 101, 101, 0.35);
}

@media (max-width: 480px) {
    [data-theme="dark"] .auth-page {
        background: var(--primary-white);
    }
}

[data-theme="dark"] .pay-booking-page {
    background: linear-gradient(135deg, #1a2030 0%, #151920 100%);
}

[data-theme="dark"] .pay-booking-body {
    color: var(--dark-text);
}

[data-theme="dark"] .pay-booking-item {
    background: var(--input-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .pay-booking-item-head strong {
    color: #7eb8ff;
}

[data-theme="dark"] .pay-booking-item-head span {
    color: var(--dark-text);
}

[data-theme="dark"] .pay-booking-meta {
    color: var(--medium-text);
}

[data-theme="dark"] .pay-booking-meta i {
    color: #7eb8ff;
}

[data-theme="dark"] .pay-remaining-amount {
    color: #fc8181;
}

[data-theme="dark"] .pay-alert-success {
    background: rgba(72, 187, 120, 0.15);
    color: #9ae6b4;
    border-color: rgba(72, 187, 120, 0.35);
}

[data-theme="dark"] .pay-alert-error {
    background: rgba(245, 101, 101, 0.15);
    color: #feb2b2;
    border-color: rgba(245, 101, 101, 0.35);
}

[data-theme="dark"] .pay-alert-info {
    background: rgba(66, 153, 225, 0.15);
    color: #90cdf4;
    border-color: rgba(66, 153, 225, 0.35);
}

[data-theme="dark"] .pay-phone-form input[type="tel"] {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--dark-text);
}

[data-theme="dark"] .pay-login-hint a,
[data-theme="dark"] .pay-reset-link {
    color: #7eb8ff;
}

[data-theme="dark"] .favorites-item-card {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .apartments-listing-section,
[data-theme="dark"] .apartments-section {
    background: var(--primary-white);
}

[data-theme="dark"] .bottom-nav {
    background: var(--surface-elevated);
    border-top-color: var(--border-color);
}

/* Homepage sections — intro, apartments, services, location */
[data-theme="dark"] .intro-section,
[data-theme="dark"] .location-section {
    background: var(--primary-white);
}

[data-theme="dark"] .services-section {
    background: linear-gradient(180deg, var(--primary-white) 0%, var(--light-gray) 100%);
}

[data-theme="dark"] .intro-text,
[data-theme="dark"] .intro-text p {
    color: var(--medium-text);
}

[data-theme="dark"] .feature-item {
    background: var(--surface-elevated);
}

[data-theme="dark"] .feature-item:hover {
    background: var(--medium-gray);
    border-color: rgba(254, 187, 2, 0.45);
}

[data-theme="dark"] .feature-item-pay {
    background: var(--surface-elevated);
    border-color: var(--border-color);
    border-inline-start-color: var(--light-blue);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .feature-item-pay:hover {
    background: var(--medium-gray);
    border-color: rgba(142, 202, 230, 0.35);
    border-inline-start-color: #8ecae6;
}

[data-theme="dark"] .feature-pay-icon-wrap {
    background: rgba(0, 113, 194, 0.12);
    border-color: rgba(142, 202, 230, 0.25);
}

[data-theme="dark"] .feature-pay-icon-wrap i {
    color: #8ecae6;
}

[data-theme="dark"] .feature-pay-eyebrow {
    color: var(--medium-text);
}

[data-theme="dark"] .feature-pay-link-text {
    color: #8ecae6;
}

[data-theme="dark"] .feature-pay-cards {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color);
}

[data-theme="dark"] .feature-pay-aside {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .apartment-desc {
    color: var(--medium-text);
}

[data-theme="dark"] .apartment-features {
    color: var(--medium-text);
    border-top-color: var(--border-color);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .apartment-features i {
    color: var(--light-blue);
}

[data-theme="dark"] .apartment-info h3 {
    color: var(--dark-text);
}

[data-theme="dark"] .apartment-badge--yellow,
[data-theme="dark"] .apartment-badge.yellow,
[data-theme="dark"] .apartment-badge--sun,
[data-theme="dark"] .apartment-badge.sun,
[data-theme="dark"] .apartment-badge--luxury,
[data-theme="dark"] .apartment-badge.luxury {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .service-item {
    background: var(--surface-elevated);
}

[data-theme="dark"] .service-item:hover {
    background: var(--medium-gray);
}

[data-theme="dark"] .service-item p {
    color: var(--medium-text);
}

[data-theme="dark"] .service-item h3 {
    color: var(--dark-text);
}

[data-theme="dark"] .location-info h3 {
    color: var(--dark-text);
}

[data-theme="dark"] .location-info p,
[data-theme="dark"] .location-contact p {
    color: var(--medium-text);
}

[data-theme="dark"] .section-title {
    color: var(--dark-text);
}

[data-theme="dark"] .section-subtitle {
    color: var(--medium-text);
}

/* Dark mode — text readability (secondary copy) */
[data-theme="dark"] p,
[data-theme="dark"] .intro-text,
[data-theme="dark"] .intro-text p,
[data-theme="dark"] .apartment-desc,
[data-theme="dark"] .apartment-features,
[data-theme="dark"] .apartment-description p,
[data-theme="dark"] .blog-excerpt,
[data-theme="dark"] .offer-desc {
    color: var(--medium-text);
}

[data-theme="dark"] .offer-apartment-card,
[data-theme="dark"] .offers-page-section .offer-apartment-card {
    background: var(--surface-elevated);
    border-color: var(--border-color);
}

[data-theme="dark"] .offer-apartment-card--mandatory {
    border-color: rgba(0, 113, 194, 0.45);
}

[data-theme="dark"] .offer-price-section {
    background: linear-gradient(165deg, var(--surface-elevated) 0%, var(--light-gray) 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .offer-apartment-card--mandatory .offer-price-section {
    background: linear-gradient(165deg, rgba(0, 53, 128, 0.28) 0%, rgba(0, 113, 194, 0.14) 100%);
    border-color: rgba(0, 113, 194, 0.4);
}

[data-theme="dark"] .discount-display {
    background: linear-gradient(135deg, rgba(254, 187, 2, 0.22) 0%, rgba(255, 215, 0, 0.12) 100%);
    border-color: rgba(254, 187, 2, 0.45);
}

[data-theme="dark"] .discount-display.mandatory-package {
    background: linear-gradient(135deg, rgba(0, 53, 128, 0.42) 0%, rgba(0, 113, 194, 0.22) 100%);
    border-color: rgba(0, 113, 194, 0.55);
}

[data-theme="dark"] .discount-amount {
    color: var(--yellow-accent);
}

[data-theme="dark"] .discount-display.mandatory-package .discount-amount {
    color: #8ecae6;
}

[data-theme="dark"] .discount-label {
    color: var(--dark-text);
}

[data-theme="dark"] .discount-description {
    color: var(--medium-text);
}

[data-theme="dark"] .offer-validity-badge {
    background: rgba(0, 0, 0, 0.78);
    color: #ffffff;
    border-color: var(--yellow-accent);
}

[data-theme="dark"] .offer-validity-badge span,
[data-theme="dark"] .offer-validity-badge i {
    color: #ffffff;
}

[data-theme="dark"] .offer-validity-badge i {
    color: var(--yellow-accent);
}

[data-theme="dark"] .offer-apartments-list {
    background: var(--light-gray);
    color: var(--dark-text);
}

[data-theme="dark"] .offer-min-nights i {
    color: var(--light-blue);
}

[data-theme="dark"] .offer-desc {
    color: var(--medium-text);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] .section-title,
[data-theme="dark"] .apartment-info h3,
[data-theme="dark"] .service-item h3,
[data-theme="dark"] .location-info h3,
[data-theme="dark"] .feature-item h3 {
    color: var(--dark-text);
}

/* Countdown — always white digits on promo bar */
[data-theme="dark"] .countdown-bar,
[data-theme="dark"] .countdown-label,
[data-theme="dark"] .countdown-flip-face span {
    color: #ffffff;
}

/* Apartment listing price card */
[data-theme="dark"] .price-total.price-total--listing.price-summary-card {
    background: linear-gradient(165deg, var(--surface-elevated) 0%, var(--light-gray) 100%);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .apartment-card:hover .price-total.price-total--listing.price-summary-card {
    border-color: rgba(0, 113, 194, 0.35);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .price-summary-card .total-label {
    color: var(--medium-text);
}

[data-theme="dark"] .price-summary-card .total-nights {
    background: rgba(255, 255, 255, 0.06);
    color: var(--medium-text);
}

[data-theme="dark"] .price-summary-card .total-amount {
    color: #8ecae6;
}

[data-theme="dark"] .price-summary-card .total-amount.is-total-placeholder,
[data-theme="dark"] .price-summary-card .total-amount.is-total-pending {
    color: var(--medium-text);
}

[data-theme="dark"] .apartment-price--listing .price-amount-final,
[data-theme="dark"] .apartment-price--listing .price-amount-final .price-amount-num,
[data-theme="dark"] .apartment-price--listing .price-amount-single,
[data-theme="dark"] .apartment-price--listing .price-amount-single .price-amount-num {
    color: var(--dark-text);
}

[data-theme="dark"] .apartment-price--listing .price-amount-original,
[data-theme="dark"] .apartment-price--listing .price-amount-original .price-amount-num {
    color: var(--muted-text);
}

[data-theme="dark"] .apartment-price--listing .price-currency {
    color: var(--medium-text);
}

[data-theme="dark"] .price-summary-card .price-discount-info {
    background: rgba(40, 167, 69, 0.12);
    color: #7dcea0;
}

[data-theme="dark"] .price-summary-card .price-coupon-info {
    background: rgba(0, 113, 194, 0.15);
    color: #8ecae6;
}

/* Booking buttons — always white label/icon on brand buttons */
[data-theme="dark"] .btn-book,
[data-theme="dark"] .btn-book-now,
[data-theme="dark"] .btn-select-dates-summary,
[data-theme="dark"] .apartment-booking-info .btn-book {
    color: #ffffff !important;
}

[data-theme="dark"] .btn-book-now i,
[data-theme="dark"] .btn-book i,
[data-theme="dark"] .btn-select-dates-summary i {
    color: #ffffff !important;
}

/* Detail page — booking summary sidebar */
[data-theme="dark"] .booking-summary-card {
    background: var(--surface-elevated);
    border-color: rgba(254, 187, 2, 0.45);
}

[data-theme="dark"] .summary-title {
    color: var(--dark-text);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .summary-dates {
    background: var(--input-bg);
}

[data-theme="dark"] .summary-date-item,
[data-theme="dark"] .summary-date-item label,
[data-theme="dark"] .summary-date-item span {
    color: var(--dark-text);
}

[data-theme="dark"] .summary-mandatory-services {
    background: rgba(230, 126, 34, 0.12);
    border-color: rgba(230, 126, 34, 0.35);
}

[data-theme="dark"] .summary-mandatory-title {
    color: #f5b07a;
}

[data-theme="dark"] .summary-mandatory-item {
    color: var(--medium-text);
}

[data-theme="dark"] .summary-mandatory-item + .summary-mandatory-item {
    border-top-color: rgba(230, 126, 34, 0.28);
}

[data-theme="dark"] .summary-mandatory-name {
    color: var(--dark-text);
}

[data-theme="dark"] .summary-mandatory-amount {
    color: #8ecae6;
}

[data-theme="dark"] .breakdown-item {
    border-bottom-color: var(--border-color);
    color: var(--medium-text);
}

[data-theme="dark"] .breakdown-item.total {
    border-top-color: var(--light-blue);
    color: var(--dark-text);
}

[data-theme="dark"] .breakdown-item.total > span:first-child {
    color: var(--dark-text);
}

[data-theme="dark"] .breakdown-label {
    color: var(--medium-text);
}

[data-theme="dark"] .breakdown-value {
    color: var(--medium-text);
}

[data-theme="dark"] .breakdown-value.discount {
    color: #7dcea0;
}

[data-theme="dark"] .breakdown-value.total-amount,
[data-theme="dark"] #totalAmount {
    color: #cceeff;
    font-weight: 700;
}

[data-theme="dark"] .coupon-input {
    background: var(--input-bg);
    color: var(--dark-text);
    border-color: var(--border-color);
}

[data-theme="dark"] .booking-note {
    background: var(--input-bg);
    color: var(--medium-text);
}

[data-theme="dark"] .detail-sidebar,
[data-theme="dark"] .detail-main-content {
    color: var(--dark-text);
}

/* Page headers — white text on brand bar */
[data-theme="dark"] .page-header,
[data-theme="dark"] .page-header .page-title,
[data-theme="dark"] .page-header .page-subtitle {
    color: #ffffff;
}

/* Ownership apartments */
[data-theme="dark"] .ownership-btn-details {
    background: rgba(0, 113, 194, 0.12);
    color: #8ecae6;
    border-color: #8ecae6;
}

[data-theme="dark"] .ownership-btn-details:hover {
    background: rgba(0, 113, 194, 0.22);
    color: #cceeff;
    border-color: #cceeff;
}

[data-theme="dark"] .ownership-price,
[data-theme="dark"] .ownership-detail-price .price-value strong {
    color: #8ecae6;
}

[data-theme="dark"] .ownership-detail-info,
[data-theme="dark"] .ownership-detail-content {
    background: var(--surface-elevated);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .ownership-detail-badge {
    background: rgba(15, 118, 110, 0.22);
    color: #5eead4;
}

[data-theme="dark"] .ownership-detail-desc,
[data-theme="dark"] .ownership-detail-price .price-label {
    color: var(--medium-text);
}

[data-theme="dark"] .ownership-detail-price {
    background: var(--input-bg);
}

[data-theme="dark"] .ownership-detail-info h1,
[data-theme="dark"] .ownership-detail-content h2,
[data-theme="dark"] .ownership-content-body {
    color: var(--dark-text);
}

[data-theme="dark"] .ownership-thumb {
    background: var(--medium-gray);
}

/* Elite Club — first-visit popup */
.elite-first-visit-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.55);
}

.elite-first-visit-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 2.75rem 1.5rem 1.5rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.elite-first-visit-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.elite-first-visit-text {
    margin: 0 0 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
    color: #0f172a;
}

.elite-first-visit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
}

.elite-first-visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
}

.elite-first-visit-btn--outline {
    border: 2px solid #0369a1;
    color: #0369a1;
    background: #fff;
}

.elite-first-visit-btn--primary {
    background: #0369a1;
    color: #fff;
    border: 2px solid #0369a1;
}

.elite-first-visit-close {
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.elite-first-visit-close--corner {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 1.35rem;
}

.elite-first-visit-close--corner:hover,
.elite-first-visit-close--corner:focus-visible {
    background: #e2e8f0;
    border-color: #94a3b8;
    outline: none;
}

.elite-first-visit-close--footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 52px;
    margin-top: 1rem;
    padding: 0.85rem 1.25rem;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 700;
}

.elite-first-visit-close--footer i {
    font-size: 1.15rem;
}

.elite-first-visit-close--footer:hover,
.elite-first-visit-close--footer:focus-visible {
    background: #e2e8f0;
    border-color: #94a3b8;
    outline: none;
}

[data-theme="dark"] .elite-first-visit-card {
    background: var(--light-gray, #1e293b);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .elite-first-visit-text {
    color: var(--dark-text, #f1f5f9);
}

[data-theme="dark"] .elite-first-visit-close--corner,
[data-theme="dark"] .elite-first-visit-close--footer {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #f8fafc;
}

[data-theme="dark"] .elite-first-visit-close--corner:hover,
[data-theme="dark"] .elite-first-visit-close--corner:focus-visible,
[data-theme="dark"] .elite-first-visit-close--footer:hover,
[data-theme="dark"] .elite-first-visit-close--footer:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Elite club */
[data-theme="dark"] .elite-status-panel {
    background: rgba(0, 113, 194, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--dark-text);
}

[data-theme="dark"] .elite-status-panel--guest {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(252, 211, 77, 0.45);
}

[data-theme="dark"] .elite-status-panel a {
    color: #8ecae6;
    font-weight: 700;
}

[data-theme="dark"] .elite-progress-wrap {
    background: var(--medium-gray);
}

[data-theme="dark"] .elite-intro {
    color: var(--medium-text);
}

[data-theme="dark"] .elite-urgency {
    color: #fbbf24;
}

[data-theme="dark"] .elite-card--bronze {
    background: linear-gradient(160deg, #252b36, #1e2430);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .elite-card--silver {
    background: linear-gradient(160deg, #2a3140, #1e2430);
    color: var(--dark-text);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .elite-card--gold {
    background: linear-gradient(160deg, rgba(245, 158, 11, 0.28), rgba(180, 83, 9, 0.18));
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

/* Privacy & sales policy pages */
[data-theme="dark"] .privacy-policy-section {
    background: linear-gradient(135deg, #151920 0%, #1e2430 100%) !important;
}

[data-theme="dark"] .privacy-content {
    background: var(--surface-elevated) !important;
    box-shadow: var(--shadow-md) !important;
}

[data-theme="dark"] .privacy-block h2 {
    color: #8ecae6 !important;
    border-bottom-color: var(--light-blue) !important;
}

[data-theme="dark"] .privacy-block h2:after {
    background: linear-gradient(90deg, var(--light-blue), transparent) !important;
}

[data-theme="dark"] .privacy-block p {
    color: var(--medium-text) !important;
}

[data-theme="dark"] .privacy-block ul li {
    color: var(--medium-text) !important;
    background: var(--input-bg) !important;
}

[data-theme="dark"] .privacy-block ul li:hover {
    background: var(--medium-gray) !important;
}

[data-theme="dark"] .last-updated {
    border-top-color: var(--border-color) !important;
}

[data-theme="dark"] .last-updated p {
    color: var(--muted-text) !important;
    background: var(--input-bg) !important;
}

.tourist-attraction-location {
    color: var(--medium-text);
    font-size: 0.92rem;
    margin: 8px 0;
}

.tourist-attraction-location i {
    color: var(--light-blue);
    margin-left: 6px;
}

.tourist-attractions-section .apartments-grid {
    width: 100%;
    max-width: 100%;
}

.tourist-attractions-section .apartment-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.tourist-attractions-section .apartment-image-scroll .apartment-image-single img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px;
    object-fit: cover;
    opacity: 1 !important;
    animation: none !important;
}

.tourist-attraction-video-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tourist-attraction-badge {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
}

.tourist-attraction-price-note {
    display: block;
    font-size: 0.82rem;
    opacity: 0.85;
    margin-top: 4px;
}

.tourist-attraction-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.tourist-attraction-video-item h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.tourist-attractions-section .ownership-price small,
.tourist-attractions-section .ownership-card-price small {
    display: block;
    font-size: 0.82rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Tourist attraction article (detail page) */
.tourist-attraction-article-section {
    padding: 40px 0 72px;
}

.tourist-attraction-article {
    max-width: 920px;
    margin: 0 auto;
}

.tourist-attraction-article-card {
    overflow: hidden;
}

.tourist-attraction-article-media {
    background: #0f172a;
}

.tourist-attraction-article-media .ownership-main-media {
    min-height: 320px;
    border-radius: 0;
    background: #111827;
}

.tourist-attraction-article-media .ownership-main-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    animation: none !important;
}

.tourist-attraction-article-media .ownership-video-wrap {
    min-height: 320px;
}

.tourist-attraction-article-media .ownership-video-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.tourist-attraction-thumbnails {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--light-gray);
}

.tourist-attraction-category {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: none;
}

.tourist-attraction-lead {
    margin-top: 1.25rem;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--medium-text);
}

.tourist-attraction-body {
    border-top: 1px solid var(--border-color);
}

.tourist-attraction-videos-in-article {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.tourist-attraction-videos-in-article h2 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.tourist-attraction-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.75rem;
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 600;
}

.tourist-attraction-back-link:hover {
    color: var(--dark-blue);
}

.tourist-attractions-section .ownership-card-actions {
    margin-top: 12px;
}

.tourist-attraction-read-link {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .tourist-attraction-article-section {
        padding: 24px 0 56px;
    }

    .tourist-attraction-article-media .ownership-main-media,
    .tourist-attraction-article-media .ownership-main-media img,
    .tourist-attraction-article-media .ownership-video-wrap,
    .tourist-attraction-article-media .ownership-video-wrap iframe {
        min-height: 220px;
    }

    .tourist-attraction-article .blog-post-header-detail,
    .tourist-attraction-article .blog-post-content-detail {
        padding: 1.25rem 1rem;
    }

    .tourist-attraction-article .blog-post-title-detail {
        font-size: 1.55rem;
        margin-bottom: 1rem;
    }

    .tourist-attraction-meta {
        gap: 0.75rem;
        font-size: 0.88rem;
    }

    .tourist-attraction-thumbnails {
        padding: 10px 12px 12px;
    }

    .tourist-attraction-thumbnails .ownership-thumb {
        flex: 0 0 72px;
        height: 54px;
    }

    .tourist-attraction-videos-grid {
        grid-template-columns: 1fr;
    }
}
