:root {
    --primary-color: #C9A961;
    --primary-dark: #A68948;
    --primary-light: #E5D4A6;
    --secondary-color: #2C5F4F;
    --secondary-dark: #1A3A2E;
    --accent-color: #D4856C;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-gray: #6B6B6B;
    --bg-light: #FAF8F5;
    --bg-dark: #0F1410;
    --border-light: #E8E4DD;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

/* =============================================
   INTERIOR / EXTERIOR SPACES - NEW SECTIONS
   ============================================= */

.section-label-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    /* Kurdish/Arabic connected-letters fix for mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
    -webkit-text-size-adjust: 100%;
}

.interior-badge {
    background: linear-gradient(135deg, #f0ece4, #e8e0d0);
    color: #7a5c2e;
    border: 1px solid #d4bc8a;
}

.exterior-badge {
    background: linear-gradient(135deg, #e8f4f0, #d4ece4);
    color: #2C5F4F;
    border: 1px solid #a0cfc0;
}

.spaces-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 600px) {
    .spaces-grid { grid-template-columns: 1fr; }
}

.space-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.space-card.available {
    background: #fff;
    border: 1.5px solid #e2d9c8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.space-card.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197,165,97,0.15);
    border-color: #C9A961;
}

.space-card.missing {
    background: #fafafa;
    border: 1.5px dashed #e0e0e0;
}

.space-icon {
    font-size: 1.8rem;
    width: 42px;
    text-align: center;
    flex-shrink: 0;
}

.space-info {
    flex: 1;
    min-width: 0;
}

.space-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c2c2c;
}

.space-desc {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.1rem;
}

.space-status {
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.available-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.missing-badge {
    background: #ffeef0;
    color: #c0392b;
}

/* =============================================
   QUICK FEATURES SIDEBAR CARD
   ============================================= */

.quick-features-card {
    background: linear-gradient(135deg, #fdf8f0, #f5ede0);
    border: 1.5px solid #e2d4be;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
}

.quick-features-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #7a5c2e;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2d4be;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ku);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 2px 20px var(--shadow);
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #C5A572 !important;
    font-weight: 700 !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100% !important;
    background: #C5A572 !important;
    height: 2.5px !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.35rem;
    border-radius: 25px;
    border: 1px solid var(--border-light);
}

.lang-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-gray);
    cursor: pointer;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

.lang-btn:hover:not(.active) {
    background: rgba(201, 169, 97, 0.1);
    color: var(--primary-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(201, 169, 97, 0.15) 0%, 
        rgba(44, 95, 79, 0.08) 50%,
        rgba(212, 133, 108, 0.12) 100%);
}

.pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(44, 95, 79, 0.06) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.hero-text {
    max-width: 700px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.4s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
    animation: fadeInUp 1s ease 0.8s both;
}

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

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(50%) translateY(0); }
    50% { transform: translateX(50%) translateY(-10px); }
}

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

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(-45deg);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.property-card {
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.4s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.property-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.property-card:hover .image-placeholder {
    transform: scale(1.1);
}

/* Hotel Images */
.hotel-1 {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.9), rgba(44, 95, 79, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23C9A961" width="400" height="300"/><text x="200" y="150" font-size="80" fill="white" text-anchor="middle" dominant-baseline="middle">🏨</text></svg>');
}

.hotel-2 {
    background: linear-gradient(135deg, rgba(44, 95, 79, 0.9), rgba(201, 169, 97, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%232C5F4F" width="400" height="300"/><text x="200" y="150" font-size="80" fill="white" text-anchor="middle" dominant-baseline="middle">🏛️</text></svg>');
}

.hotel-3 {
    background: linear-gradient(135deg, rgba(212, 133, 108, 0.9), rgba(201, 169, 97, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23D4856C" width="400" height="300"/><text x="200" y="150" font-size="80" fill="white" text-anchor="middle" dominant-baseline="middle">🏨</text></svg>');
}

/* Farm Images */
.farm-1 {
    background: linear-gradient(135deg, rgba(44, 95, 79, 0.85), rgba(26, 58, 46, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%232C5F4F" width="400" height="300"/><text x="200" y="150" font-size="80" fill="white" text-anchor="middle" dominant-baseline="middle">🌾</text></svg>');
}

.farm-2 {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.85), rgba(166, 137, 72, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23C9A961" width="400" height="300"/><text x="200" y="150" font-size="80" fill="white" text-anchor="middle" dominant-baseline="middle">🌳</text></svg>');
}

.farm-3 {
    background: linear-gradient(135deg, rgba(212, 133, 108, 0.85), rgba(201, 169, 97, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 300"><rect fill="%23D4856C" width="400" height="300"/><text x="200" y="150" font-size="80" fill="white" text-anchor="middle" dominant-baseline="middle">🐄</text></svg>');
}

.about-img {
    background: linear-gradient(135deg, rgba(44, 95, 79, 0.8), rgba(201, 169, 97, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><rect fill="%232C5F4F" width="400" height="400"/><text x="200" y="200" font-size="100" fill="white" text-anchor="middle" dominant-baseline="middle">🏔️</text></svg>');
}

.property-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.property-badge.premium {
    background: var(--secondary-color);
}

.property-badge.eco {
    background: var(--secondary-dark);
}

.property-content {
    padding: 1.75rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.property-location svg {
    color: var(--primary-color);
}

.property-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.property-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.property-features {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.feature svg {
    color: var(--primary-color);
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.15;
    white-space: nowrap;
}

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

.btn-book {
    padding: 0.75rem 1.75rem;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-book:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

/* Hotels Section */
.hotels-section {
    background: var(--bg-light);
}

/* Farms Section */
.farms-section {
    background: linear-gradient(180deg, 
        var(--bg-light) 0%, 
        rgba(44, 95, 79, 0.05) 50%,
        var(--bg-light) 100%);
}

/* About Section */
.about-section {
    background: #FFFFFF;
}

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

.about-text {
    max-width: 600px;
}

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

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(44, 95, 79, 0.15));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    color: var(--primary-color);
}

.value-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.value-item p {
    color: var(--text-gray);
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 3rem;
}

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

.info-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease;
}

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

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(44, 95, 79, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-icon svg {
    color: var(--primary-color);
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-gray);
}

.contact-form {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.form-group.full {
    grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-ku);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #FFFFFF;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 2rem;
}


/* Responsive Design - Mobile First Approach */

/* Tablet and below - 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

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

/* Medium devices - 968px */
@media (max-width: 968px) {
    /* Mobile Navigation - Slide-in Menu */
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-link::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Overlay when menu is open */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 80px;
        left: 0;
        width: calc(100vw - 280px);
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

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

    .about-image {
        height: 400px;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    section {
        padding: 4rem 0;
    }
}

/* Small tablets - 768px */
@media (max-width: 768px) {
    .nav-content {
        padding: 0.75rem 0;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 3rem;
    }

    .hero-content {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        min-height: 48px; /* Touch-friendly */
    }

    .hero-stats {
        margin-top: 3rem;
        padding-top: 2rem;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

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

    .section-description {
        font-size: 1rem;
    }

    .property-card {
        max-width: 100%;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }
}

/* Mobile devices - 640px */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    /* Full-width mobile menu */
    .nav-links {
        width: 100%;
        right: -100%;
    }

    .nav-links.active::before {
        width: 0;
    }

    .language-selector {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .lang-btn {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
        min-height: 36px;
    }

    .hero {
        padding-top: 80px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        min-height: 50px; /* Touch-friendly */
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .property-image {
        height: 130px;
    }

    .property-title {
        font-size: 1.3rem;
    }

    .property-price {
        font-size: 1.5rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        min-height: 48px; /* Touch-friendly */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .footer-links,
    .footer-contact {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px; /* Touch-friendly */
    }
}

/* Extra small devices - 480px */
@media (max-width: 480px) {
    .nav-content {
        padding: 0.5rem 0;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .menu-toggle {
        padding: 0.75rem; /* Larger touch area */
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .property-title {
        font-size: 1.2rem;
    }

    .property-location,
    .property-rating {
        font-size: 0.85rem;
    }

    .property-price {
        font-size: 1.3rem;
    }

    .property-period {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .feature-description {
        font-size: 0.9rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .info-card {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .footer-logo {
        justify-content: center;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 0 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.property-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Property Details Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-light);
    border-radius: 25px;
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 0;
}

/* Property Header */
.property-header {
    position: relative;
    padding: 3rem 3rem 2rem;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(44, 95, 79, 0.05));
    border-radius: 25px 25px 0 0;
}

.property-header-content {
    max-width: 800px;
}

.property-category {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.property-main-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.property-location-full {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.property-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    color: #FFB800;
    font-size: 1.2rem;
}

.rating-text {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.property-price-large {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.price-large {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

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

/* Image Gallery */
.property-gallery {
    padding: 2rem 3rem;
}

.gallery-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    background-color: #f0ebe0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 2;
}

.gallery-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-nav button:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.1);
}

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

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

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.gallery-thumb-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.3), rgba(44, 95, 79, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Property Details Section */
.property-details {
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

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

.detail-section {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.detail-section p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Room Types */
.room-types {
    display: grid;
    gap: 1.5rem;
}

.room-type {
    background: #FFFFFF;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.room-type:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.room-type-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.room-type-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.room-type-capacity {
    color: var(--text-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-type-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.room-feature-tag {
    padding: 0.4rem 1rem;
    background: rgba(201, 169, 97, 0.1);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.amenity-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(44, 95, 79, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amenity-icon svg {
    color: var(--primary-color);
}

.amenity-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* Booking Sidebar */
.booking-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.booking-card {
    background: #FFFFFF;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.booking-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.booking-price-amount {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.booking-price-period {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.booking-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.info-label {
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    color: var(--text-dark);
    font-weight: 600;
}

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

.booking-input {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-family: var(--font-ku);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.booking-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #FFFFFF;
}

.btn-book-now {
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4);
}

.btn-book-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}

.booking-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Location Map */
.location-section {
    padding: 2rem 3rem 3rem;
}

.location-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.map-container {
    height: 400px;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(44, 95, 79, 0.15));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Enhanced Property Badges */
.property-badge.popular {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
}

.property-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.property-badge.new {
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
}

/* Responsive Design for Modal */
@media (max-width: 968px) {
    .modal-content {
        max-height: 95vh;
        border-radius: 20px 20px 0 0;
    }

    .property-header {
        padding: 2rem 1.5rem;
    }

    .property-gallery {
        padding: 1.5rem;
    }

    .gallery-main {
        height: 220px;
    }

    .property-details {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .booking-sidebar {
        position: static;
    }

    .location-section {
        padding: 1.5rem;
    }

    .map-container {
        height: 300px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .modal {
        overflow-y: auto;
        align-items: flex-start !important;
    }

    .modal.active {
        padding: 0;
        align-items: flex-start;
    }

    .modal-content {
        max-height: none;
        min-height: 100vh;
        border-radius: 0;
        width: 100%;
    }

    .property-main-title {
        font-size: 1.75rem;
    }

    .price-large {
        font-size: 2rem;
    }

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

    .room-types {
        gap: 1rem;
    }
}
/* Expanded Properties View Styles */
.expanded-properties-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 10000;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-properties-view.active {
    opacity: 1;
    transform: translateY(0);
}

.expanded-header {
    background: linear-gradient(135deg, #C9A961 0%, #2C5F4F 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.expanded-header h2 {
    font-size: 2rem;
    margin: 0;
}

.close-expanded-view {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-expanded-view:hover {
    background: white;
    color: #C9A961;
    transform: rotate(90deg);
}

.filters-section {
    background: #FAF8F5;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    border-bottom: 2px solid #E8E4DD;
}

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

.filter-group label {
    font-weight: 600;
    color: #2C5F4F;
    font-size: 0.95rem;
}

.filter-group select {
    padding: 0.8rem 1rem;
    border: 2px solid #E8E4DD;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:hover {
    border-color: #C9A961;
}

.filter-group select:focus {
    outline: none;
    border-color: #C9A961;
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}

.expanded-count {
    padding: 1.5rem 2rem;
    background: white;
    font-size: 1.1rem;
    color: #6B6B6B;
    border-bottom: 2px solid #E8E4DD;
}

.expanded-count span {
    font-weight: 700;
    color: #C9A961;
    font-size: 1.5rem;
}

.expanded-properties-grid {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.expanded-property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.expanded-property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.expanded-property-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.expanded-property-content {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .expanded-header h2 {
        font-size: 1.5rem;
    }
    
    .filters-section {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .expanded-properties-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .close-expanded-view {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .expanded-header {
        padding: 1.5rem 1rem;
    }
    
    .expanded-header h2 {
        font-size: 1.3rem;
    }
}
/* =============================================
   ADVANCED ANIMATIONS & EFFECTS
   ============================================= */

/* ---- MODAL OPEN ANIMATION ---- */
@keyframes modalSlideIn {
    0%   { opacity: 0; transform: translateY(60px) scale(0.96); }
    60%  { opacity: 1; transform: translateY(-8px) scale(1.005); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdropFadeIn {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to   { opacity: 1; backdrop-filter: blur(10px); }
}

.modal.active {
    animation: backdropFadeIn 0.35s ease forwards;
}

.modal.active .modal-content {
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ---- GALLERY IMAGE TRANSITION ---- */
.gallery-main-image {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gallery-main-image.transitioning {
    opacity: 0;
    transform: scale(0.97);
}

/* ---- GALLERY NAV BUTTON PULSE ---- */
.gallery-nav button {
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-nav button:hover {
    transform: scale(1.18) !important;
    background: var(--primary-color) !important;
    color: white !important;
}

.gallery-nav button:active {
    transform: scale(0.92) !important;
}

/* ---- THUMBNAIL HOVER ---- */
.gallery-thumb {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-color 0.25s ease,
                box-shadow 0.25s ease !important;
}

.gallery-thumb:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 8px 24px rgba(201,169,97,0.35) !important;
}

/* ---- PROPERTY CARD EFFECTS ---- */
.property-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1), 
                box-shadow 0.4s ease !important;
    will-change: transform;
}

.property-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18) !important;
}

.property-card:hover .image-placeholder,
.property-card:hover img {
    transform: scale(1.08) !important;
    transition: transform 0.6s ease !important;
}

/* ---- SPACE CARDS ENTRANCE ---- */
@keyframes spaceCardIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.space-card {
    animation: spaceCardIn 0.4s ease both;
}

.space-card:nth-child(1) { animation-delay: 0.05s; }
.space-card:nth-child(2) { animation-delay: 0.10s; }
.space-card:nth-child(3) { animation-delay: 0.15s; }
.space-card:nth-child(4) { animation-delay: 0.20s; }
.space-card:nth-child(5) { animation-delay: 0.25s; }
.space-card:nth-child(6) { animation-delay: 0.30s; }

.space-card.available:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 28px rgba(201,169,97,0.2) !important;
}

/* ---- AVAILABLE BADGE SHIMMER ---- */
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.available-badge {
    background: linear-gradient(90deg, #d4edda, #e8f5e9, #d4edda);
    background-size: 200% auto;
    animation: shimmer 2.5s linear infinite;
    color: #2e7d32 !important;
}

/* ---- BOOKING BUTTON EFFECT ---- */
.btn-book-now {
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease !important;
}

.btn-book-now::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-book-now:hover::before {
    width: 300px;
    height: 300px;
}

.btn-book-now:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(201,169,97,0.5) !important;
}

.btn-book-now:active {
    transform: translateY(0px) scale(0.97) !important;
}

/* ---- SECTION HEADERS SLIDE IN ---- */
@keyframes sectionIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

.detail-section {
    animation: sectionIn 0.5s ease both;
}

.detail-section:nth-child(1) { animation-delay: 0.1s; }
.detail-section:nth-child(2) { animation-delay: 0.2s; }
.detail-section:nth-child(3) { animation-delay: 0.3s; }
.detail-section:nth-child(4) { animation-delay: 0.4s; }
.detail-section:nth-child(5) { animation-delay: 0.5s; }

/* ---- RATING STARS GLOW ---- */
.property-rating-large svg {
    filter: drop-shadow(0 0 4px rgba(255,184,0,0.6));
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(255,184,0,0.6)); }
    50%       { filter: drop-shadow(0 0 10px rgba(255,184,0,0.9)); }
}

/* ---- MODAL CLOSE BUTTON ---- */
.modal-close {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.15) !important;
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(201,169,97,0.4) !important;
}

/* ---- BOOKING CARD PULSE ON ENTER ---- */
@keyframes bookingCardIn {
    0%   { opacity: 0; transform: translateX(30px); }
    70%  { opacity: 1; transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0); }
}

.booking-sidebar .booking-card {
    animation: bookingCardIn 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) 0.2s both;
}

/* ---- QUICK FEATURES CARD ---- */
.quick-features-card {
    animation: bookingCardIn 0.55s cubic-bezier(0.34, 1.2, 0.64, 1) 0.35s both;
}

/* ---- ROOM TYPE ITEMS ---- */
.room-type-item {
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) !important;
}

.room-type-item:hover {
    transform: translateX(-6px) !important;
    background: linear-gradient(135deg, #fff8ee, #f5f0e8) !important;
    box-shadow: 0 6px 20px rgba(201,169,97,0.15) !important;
}

/* ---- AMENITY ITEM HOVER ---- */
.amenity-item {
    transition: all 0.3s cubic-bezier(0.34, 1.3, 0.64, 1) !important;
    cursor: default;
}

.amenity-item:hover {
    transform: translateY(-4px) scale(1.03) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 8px 20px rgba(201,169,97,0.2) !important;
}

/* ---- SCROLL SMOOTH IN for property grid ---- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.properties-grid .property-card {
    animation: fadeSlideUp 0.6s ease both;
}

.properties-grid .property-card:nth-child(1) { animation-delay: 0.1s; }
.properties-grid .property-card:nth-child(2) { animation-delay: 0.2s; }
.properties-grid .property-card:nth-child(3) { animation-delay: 0.3s; }
.properties-grid .property-card:nth-child(4) { animation-delay: 0.4s; }
.properties-grid .property-card:nth-child(5) { animation-delay: 0.5s; }
.properties-grid .property-card:nth-child(6) { animation-delay: 0.6s; }

/* ---- HERO STATS COUNTER ---- */
.stat-number {
    transition: color 0.3s ease;
}

.stat-item:hover .stat-number {
    color: var(--primary-light) !important;
    text-shadow: 0 0 20px rgba(229,212,166,0.5);
}
/* ---- BOOK NOW HEADER BUTTON ---- */
.btn-book-now-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #C5A572, #8B7355);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-ku);
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(197, 165, 114, 0.45);
    transition: all 0.3s ease;
    animation: pulse-book 2s infinite;
}

.btn-book-now-header:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 32px rgba(197, 165, 114, 0.7);
    background: linear-gradient(135deg, #d4b483, #9a8060);
}

.btn-book-now-header:active {
    transform: translateY(0) scale(0.98);
}

@keyframes pulse-book {
    0%, 100% { box-shadow: 0 6px 24px rgba(197, 165, 114, 0.5); }
    50%       { box-shadow: 0 6px 32px rgba(197, 165, 114, 0.85); }
}

/* ================================================
   MOBILE RESPONSIVE - BOOKING & RATING MODALS
   ================================================ */

/* Make all modals mobile-safe */
#bookingModal,
#siteRatingModal {
    padding: 0.75rem !important;
    box-sizing: border-box;
}

#bookingModal > div,
#siteRatingModal > div {
    max-height: 95vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Booking modal form on mobile */
@media (max-width: 480px) {
    #bookingModal > div,
    #siteRatingModal > div {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
        max-height: 92vh;
    }

    /* Booking modal header */
    #bookingModal > div > div:first-child,
    #siteRatingModal > div > div:first-child {
        padding: 1rem 1.1rem !important;
    }

    /* Booking form padding */
    #bookingModal > div > div:last-child {
        padding: 1rem 1.1rem !important;
    }

    /* Date inputs side by side still on small screens */
    #bookingModalForm > div:nth-child(4) {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.4rem !important;
    }

    /* Bigger touch targets for inputs */
    #bookingModalForm input,
    #bookingModalForm textarea {
        min-height: 44px;
        font-size: 16px !important; /* prevents iOS zoom */
    }

    #bookingModalForm input[type="date"] {
        font-size: 13px !important;
        padding: 0.6rem 0.4rem !important;
    }

    /* Submit button touch-friendly */
    #bookingModalForm button[type="submit"] {
        min-height: 48px;
        font-size: 1rem !important;
    }

    /* Site rating modal */
    #siteRatingModal input,
    #siteRatingModal textarea {
        font-size: 16px !important;
        min-height: 44px;
    }

    #siteRatingModal .site-star {
        font-size: 2rem !important;
    }

    /* Book now header button */
    .btn-book-now-header {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem !important;
        font-size: 1rem !important;
    }

    /* Property modal on mobile */
    .modal-content {
        border-radius: 12px !important;
        margin: 0.5rem !important;
    }

    .property-details {
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
    }

    .booking-sidebar {
        width: 100% !important;
    }

    /* Booking card button on mobile */
    .btn-book-now {
        min-height: 48px;
        font-size: 1rem !important;
        width: 100% !important;
    }
}

/* Tablet 481-768 */
@media (min-width: 481px) and (max-width: 768px) {
    #bookingModal > div,
    #siteRatingModal > div {
        max-width: 90% !important;
        max-height: 88vh;
    }

    #bookingModalForm input,
    #bookingModalForm textarea {
        font-size: 16px !important;
    }
}

/* Prevent iOS input zoom on all inputs globally */
@media (max-width: 768px) {
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    input[type="date"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* Nav links easier to tap */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Language buttons touch-friendly */
    .lang-btn {
        min-height: 36px;
        min-width: 44px;
    }

    /* Property cards full width */
    .properties-grid {
        grid-template-columns: 1fr !important;
    }

    /* Stat items wrap nicely */
    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem !important;
    }

    /* Contact form full width inputs */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px !important;
        min-height: 44px;
    }
}
/* ===== CUSTOM FIXES ===== */
/* Hero stats always 3 cols, smaller font on mobile */
@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .stat-number {
        font-size: 1.8rem !important;
    }
    .stat-label {
        font-size: 0.75rem !important;
    }
    #siteRatingCount {
        font-size: 0.65rem !important;
    }
    /* Properties 3-per-row desktop */
    /* Contact info row on mobile */
    .contact-info {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 1rem !important;
    }
    .info-card {
        flex: 1 1 120px;
        padding: 1rem !important;
    }
    /* About values row on mobile */
    .about-values {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 1rem !important;
    }
}

/* Nav link gold color - override all */
.nav-link:hover,
.nav-link.active {
    color: #C5A572 !important;
    font-weight: 700 !important;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100% !important;
    background: #C5A572 !important;
    height: 2.5px !important;
}

/* About values responsive */
@media (max-width: 768px) {
    .about-values {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
    }
    .value-item h4 {
        font-size: 1rem !important;
    }
    .value-item p {
        font-size: 0.85rem !important;
    }
    .value-icon {
        width: 45px !important;
        height: 45px !important;
    }
}

/* Contact info row on mobile */
@media (max-width: 968px) {
    .contact-info {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
    }
    .info-card {
        flex: 1 1 0;
        min-width: 0;
        padding: 1.25rem 1rem;
    }
    .info-card h4 {
        font-size: 0.9rem !important;
    }
    .info-card p, .info-card a {
        font-size: 0.8rem !important;
    }
    .info-icon {
        width: 38px !important;
        height: 38px !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ===== 3 PROPERTY CARDS PER ROW ON MOBILE ===== */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem !important;
    }

    .property-card {
        border-radius: 12px !important;
    }

    .property-image {
        height: 110px !important;
    }

    .property-content {
        padding: 0.65rem !important;
    }

    .property-location {
        font-size: 0.65rem !important;
        gap: 0.2rem !important;
        margin-bottom: 0.3rem !important;
    }

    .property-location svg {
        width: 10px !important;
        height: 10px !important;
    }

    .property-title {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
        /* Limit to 2 lines */
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .property-description {
        display: none !important;
    }

    .property-features {
        display: none !important;
    }

    .property-footer {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.4rem !important;
    }

    .price-amount {
        font-size: 1rem !important;
    }

    .price-period {
        font-size: 0.65rem !important;
    }

    .btn-book {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.7rem !important;
        border-radius: 15px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .property-badge {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.6rem !important;
        top: 0.5rem !important;
        left: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.4rem !important;
    }

    .property-image {
        height: 90px !important;
    }

    .property-content {
        padding: 0.5rem !important;
    }

    .property-title {
        font-size: 0.68rem !important;
    }

    .price-amount {
        font-size: 0.85rem !important;
    }

    .btn-book {
        font-size: 0.62rem !important;
        padding: 0.35rem 0.5rem !important;
    }
}

/* VIP Badge special style */
.property-badge.vip-badge {
    background: linear-gradient(135deg, #FFD700, #C5A572) !important;
    color: #3d2b00 !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.5) !important;
    border: 1.5px solid rgba(255,255,255,0.4);
}

/* ===== CONTACT SECTION MOBILE COMPACT ===== */
@media (max-width: 768px) {
    .contact-section .section-header {
        margin-bottom: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        margin-top: 1.25rem !important;
    }

    /* Info cards — 3 in one row, compact */
    .contact-info {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.6rem !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        overflow-x: unset !important;
    }

    .info-card {
        padding: 0.85rem 0.6rem !important;
        border-radius: 12px !important;
        text-align: center !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.07) !important;
    }

    .info-card:hover {
        transform: none !important;
    }

    .info-icon {
        width: 36px !important;
        height: 36px !important;
        margin: 0 auto 0.4rem !important;
        border-radius: 10px !important;
    }

    .info-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .info-card h4 {
        font-size: 0.78rem !important;
        margin-bottom: 0.25rem !important;
    }

    .info-card p,
    .info-card a {
        font-size: 0.72rem !important;
        word-break: break-all !important;
        color: var(--text-gray) !important;
    }

    /* Contact form compact */
    .contact-form {
        grid-template-columns: 1fr !important;
        padding: 1.1rem !important;
        gap: 0.8rem !important;
        border-radius: 14px !important;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.7rem 0.9rem !important;
        font-size: 0.9rem !important;
        border-radius: 10px !important;
    }

    .contact-form textarea {
        min-height: 90px !important;
    }

    .contact-form button[type="submit"] {
        width: 100% !important;
        padding: 0.85rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    .info-card h4 {
        font-size: 0.7rem !important;
    }
    .info-card p,
    .info-card a {
        font-size: 0.65rem !important;
    }
    .info-card {
        padding: 0.7rem 0.4rem !important;
    }
}

/* ===== FOOTER MOBILE COMPACT ===== */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1.25rem !important;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Logo col spans full width */
    .footer-col:first-child {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .footer-logo {
        margin: 0 !important;
    }

    .footer-description {
        font-size: 0.82rem !important;
        margin-top: 0 !important;
        line-height: 1.5 !important;
    }

    .footer-col h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }

    .footer-links,
    .footer-contact {
        gap: 0.5rem !important;
        font-size: 0.82rem !important;
        align-items: flex-start !important;
    }

    .footer-links a,
    .footer-contact li,
    .footer-contact a {
        font-size: 0.82rem !important;
    }

    .social-links {
        gap: 0.6rem !important;
        margin-top: 0.5rem !important;
        justify-content: flex-start !important;
    }

    .social-links a {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px !important;
        min-width: unset !important;
        min-height: unset !important;
    }

    .social-links a svg {
        width: 16px !important;
        height: 16px !important;
    }

    .footer-bottom {
        font-size: 0.75rem !important;
        padding-top: 1rem !important;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    .footer-col h4 {
        font-size: 0.82rem !important;
        margin-bottom: 0.6rem !important;
    }

    .footer-links a,
    .footer-contact li,
    .footer-contact a {
        font-size: 0.75rem !important;
    }

    .footer-bottom {
        font-size: 0.68rem !important;
    }
}

/* ===== AMENITY CHIPS — compact display in modal ===== */
.amenities-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    grid-template-columns: unset !important;
}

.amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: #f5f3ef;
    border: 1.5px solid #e8dcc8;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.amenity-chip:hover {
    background: linear-gradient(135deg, rgba(197,165,114,0.18), rgba(139,115,85,0.1));
    border-color: #C5A572;
    transform: translateY(-2px);
}

.amenity-chip-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.amenity-chip-text {
    font-size: 0.82rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .amenity-chip {
        padding: 0.38rem 0.7rem;
        font-size: 0.78rem;
    }
    .amenity-chip-icon {
        font-size: 0.95rem;
    }
    .amenity-chip-text {
        font-size: 0.75rem;
    }
}

/* ===== BOOKING CARD COMPACT + AMENITY CHIPS BIGGER ===== */

/* Booking card smaller on mobile */
@media (max-width: 768px) {
    .booking-card {
        padding: 1.1rem !important;
        border-radius: 16px !important;
    }

    .booking-price {
        margin-bottom: 1rem !important;
        padding-bottom: 0.75rem !important;
        gap: 0.4rem !important;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .booking-price-amount {
        font-size: 1.7rem !important;
    }

    .booking-price-period {
        font-size: 0.85rem !important;
    }

    .booking-info {
        gap: 0.4rem !important;
        margin-bottom: 0.9rem !important;
    }

    .info-row {
        padding: 0.4rem 0 !important;
    }

    .info-label {
        font-size: 0.82rem !important;
    }

    .info-value {
        font-size: 0.82rem !important;
    }

    .btn-book-now {
        padding: 0.85rem 1.5rem !important;
        font-size: 0.95rem !important;
        border-radius: 40px !important;
    }

    .quick-features-card {
        padding: 0.9rem !important;
        border-radius: 14px !important;
        margin-top: 0.75rem !important;
    }

    .quick-features-card h4 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ===== AMENITY CHIPS BIGGER in modal ===== */
.amenity-chip {
    padding: 0.55rem 1rem !important;
    border-radius: 22px !important;
    font-size: 0.92rem !important;
}

.amenity-chip-icon {
    font-size: 1.3rem !important;
}

.amenity-chip-text {
    font-size: 0.88rem !important;
}

/* Selected amenities pill highlight */
.amenity-chip:hover {
    background: linear-gradient(135deg, rgba(197,165,114,0.22), rgba(139,115,85,0.12)) !important;
    border-color: #C5A572 !important;
    box-shadow: 0 3px 12px rgba(197,165,114,0.25) !important;
}

/* ===== SITE RATING SECTION MOBILE ===== */
@media (max-width: 768px) {
    #site-rating-section {
        padding: 2.5rem 0 !important;
    }

    #site-rating-section > .container > div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    #site-rating-section h2 {
        font-size: 1.5rem !important;
    }
}

/* ===== SITE RATING SECTION — MOBILE COMPACT ===== */
@media (max-width: 768px) {
    #site-rating-section {
        padding: 2rem 0 !important;
    }

    /* Title area smaller */
    #site-rating-section h2 {
        font-size: 1.3rem !important;
        margin: 0.3rem 0 !important;
    }

    #site-rating-section > .container > div:first-child {
        margin-bottom: 1.25rem !important;
    }

    /* Grid: single column */
    #site-rating-section > .container > div:nth-child(2) {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        padding: 0 !important;
    }

    /* Form card compact */
    #site-rating-section > .container > div:nth-child(2) > div:first-child {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    /* Big rating number */
    #siteRatingBig {
        font-size: 2.2rem !important;
    }

    #siteStarDisplay span {
        font-size: 1.1rem !important;
    }

    /* Section stars smaller */
    #sectionStarRating span,
    .section-star {
        font-size: 1.7rem !important;
    }

    /* Reviews list */
    #site-rating-section > .container > div:nth-child(2) > div:last-child h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
    }

    #sectionRatingsList {
        max-height: 250px !important;
    }

    #sectionRatingsList > div {
        padding: 0.7rem 0.85rem !important;
        border-radius: 10px !important;
    }
}

@media (max-width: 480px) {
    #site-rating-section {
        padding: 1.5rem 0 !important;
    }

    #site-rating-section h2 {
        font-size: 1.15rem !important;
    }

    #site-rating-section > .container > div:first-child p {
        font-size: 0.82rem !important;
    }

    #site-rating-section > .container > div:nth-child(2) > div:first-child {
        padding: 1rem !important;
    }

    #siteRatingBig {
        font-size: 1.9rem !important;
    }

    .section-star {
        font-size: 1.5rem !important;
    }

    #sectionRatingName,
    #sectionRatingComment {
        font-size: 0.85rem !important;
        padding: 0.55rem 0.75rem !important;
    }

    #sectionRatingsList {
        max-height: 200px !important;
    }
}

/* ===== SITE RATING SECTION — EXTRA COMPACT ===== */
@media (max-width: 768px) {
    /* Header badge + title + subtitle tighter */
    #site-rating-section > .container > div:first-child {
        margin-bottom: 0.75rem !important;
    }
    #site-rating-section > .container > div:first-child span:first-child {
        padding: 0.3rem 0.9rem !important;
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
    }
    #site-rating-section h2 {
        font-size: 1.1rem !important;
        margin: 0.2rem 0 !important;
    }
    #site-rating-section > .container > div:first-child p {
        font-size: 0.78rem !important;
        margin: 0 !important;
    }

    /* Form card very compact */
    #site-rating-section > .container > div:nth-child(2) > div:first-child {
        padding: 0.9rem !important;
    }

    /* Big number smaller */
    #siteRatingBig {
        font-size: 1.7rem !important;
        line-height: 1 !important;
    }
    #siteRatingCountBig {
        font-size: 0.72rem !important;
        margin-top: 0.15rem !important;
    }
    #siteStarDisplay {
        margin-top: 0.3rem !important;
        gap: 0.15rem !important;
    }
    #siteStarDisplay span {
        font-size: 0.95rem !important;
    }

    /* "هەڵبژاردنا خۆ بدە" label */
    #site-rating-section > .container > div:nth-child(2) > div:first-child > p {
        font-size: 0.78rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Stars for input */
    #sectionStarRating,
    #site-rating-section #sectionStarRating {
        gap: 0.3rem !important;
        margin-bottom: 0.75rem !important;
    }
    .section-star {
        font-size: 1.45rem !important;
    }

    /* Inputs compact */
    #sectionRatingName {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.82rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 8px !important;
    }
    #sectionRatingComment {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.82rem !important;
        min-height: 55px !important;
        margin-bottom: 0.6rem !important;
        border-radius: 8px !important;
    }

    /* Submit button */
    #site-rating-section button[onclick="submitSectionRating()"] {
        padding: 0.65rem !important;
        font-size: 0.88rem !important;
    }

    /* Reviews section */
    #site-rating-section > .container > div:nth-child(2) > div:last-child > h3 {
        font-size: 0.88rem !important;
        margin-bottom: 0.6rem !important;
    }
    #sectionRatingsList {
        max-height: 180px !important;
        gap: 0.5rem !important;
    }
    #sectionRatingsList > div {
        padding: 0.55rem 0.7rem !important;
        border-radius: 9px !important;
    }
    #sectionRatingsList span {
        font-size: 0.75rem !important;
    }
    #sectionRatingsList p {
        font-size: 0.75rem !important;
    }
}

/* ===== SITE RATING SECTION — CLEAN CSS ===== */
.sr-section {
    background: linear-gradient(135deg,#1a1a2e 0%,#16213e 50%,#0f3460 100%);
    padding: 3.5rem 0;
    direction: rtl;
}
.sr-header {
    text-align: center;
    margin-bottom: 2rem;
}
.sr-badge {
    display: inline-block;
    background: linear-gradient(135deg,rgba(197,165,114,0.2),rgba(139,115,85,0.1));
    border: 1px solid rgba(197,165,114,0.3);
    color: #C5A572;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.sr-title {
    color: white;
    font-size: 1.8rem;
    margin: 0.4rem 0;
}
.sr-subtitle {
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-size: 0.9rem;
}
.sr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}
.sr-form-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(197,165,114,0.2);
    border-radius: 18px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}
.sr-avg-display {
    text-align: center;
    margin-bottom: 1rem;
}
.sr-avg-num {
    font-size: 2.4rem;
    font-weight: 700;
    color: #C5A572;
    line-height: 1;
}
.sr-avg-count {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}
.sr-avg-stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.4rem;
}
.sr-avg-stars span {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.2);
}
.sr-label {
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}
.sr-stars {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.section-star {
    font-size: 1.9rem;
    cursor: pointer;
    color: rgba(255,255,255,0.25);
    transition: all 0.2s;
    user-select: none;
    text-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.sr-input, .sr-textarea {
    width: 100%;
    padding: 0.55rem 0.8rem;
    border: 1.5px solid rgba(197,165,114,0.3);
    border-radius: 9px;
    font-family: var(--font-ku);
    font-size: 0.88rem;
    box-sizing: border-box;
    background: rgba(255,255,255,0.08);
    color: white;
    outline: none;
    transition: border-color 0.2s;
}
.sr-input {
    margin-bottom: 0.55rem;
}
.sr-textarea {
    min-height: 60px;
    resize: none;
    margin-bottom: 0.8rem;
}
.sr-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg,#C5A572,#8B7355);
    color: white;
    border: none;
    border-radius: 40px;
    font-family: var(--font-ku);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(197,165,114,0.35);
    transition: all 0.2s;
}
.sr-submit:hover { transform: translateY(-2px); }
.sr-msg {
    margin-top: 0.6rem;
    padding: 0.5rem;
    border-radius: 8px;
    display: none;
    font-size: 0.85rem;
    text-align: center;
    font-family: var(--font-ku);
}
.sr-reviews { }
.sr-reviews-title {
    color: white;
    margin: 0 0 1rem;
    font-size: 1rem;
}
.sr-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 340px;
    overflow-y: auto;
}
.sr-empty {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    text-align: center;
    padding: 2rem 0;
}

/* Mobile */
@media (max-width: 768px) {
    .sr-section { padding: 2rem 0; }
    .sr-header { margin-bottom: 1.25rem; }
    .sr-title { font-size: 1.2rem; }
    .sr-subtitle { font-size: 0.78rem; }
    .sr-badge { font-size: 0.78rem; padding: 0.28rem 0.8rem; margin-bottom: 0.4rem; }
    .sr-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .sr-form-card { padding: 1rem; border-radius: 14px; }
    .sr-avg-num { font-size: 1.8rem; }
    .sr-avg-count { font-size: 0.72rem; }
    .sr-avg-stars span { font-size: 1rem; }
    .sr-label { font-size: 0.78rem; margin-bottom: 0.4rem; }
    .section-star { font-size: 1.55rem; }
    .sr-stars { gap: 0.3rem; margin-bottom: 0.75rem; }
    .sr-input, .sr-textarea { font-size: 0.82rem; padding: 0.48rem 0.7rem; }
    .sr-textarea { min-height: 50px; }
    .sr-submit { padding: 0.65rem; font-size: 0.88rem; }
    .sr-reviews-title { font-size: 0.9rem; margin-bottom: 0.6rem; }
    .sr-list { max-height: 220px; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .sr-section { padding: 1.5rem 0; }
    .sr-title { font-size: 1.05rem; }
    .section-star { font-size: 1.35rem; }
    .sr-avg-num { font-size: 1.5rem; }
    .sr-list { max-height: 180px; }
}
/* ===== HERO STATS 4 cols ===== */
.hero-stats { grid-template-columns: repeat(4, 1fr) !important; }
/* ===== Kurdish/Arabic Mobile Font Fix =====
   Prevents letter disconnection on mobile browsers (especially Chrome/Safari Android).
   Forces font-display:swap and ensures the correct unicode range loads. */
@media screen and (max-width: 768px) {
    body, * { font-family: var(--font-ku) !important; }
    /* Override for Latin-only decorative headings */
    .logo-text, .playfair, .hero-title-en {
        font-family: 'Playfair Display', 'Georgia', serif;
    }
    /* Force full word-level shaping — prevents mid-word breaks on soft-wrap */
    p, h1, h2, h3, h4, span, a, button, label, input, textarea, li {
        word-break: keep-all;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* ══════════════════════════════════════════════════
   CLICKABLE SITE-RATING STAT
   ══════════════════════════════════════════════════ */
.clickable-stat {
  cursor: pointer;
  position: relative;
  transition: transform .3s cubic-bezier(.16,1,.3,1),
              box-shadow .3s ease,
              background .3s ease;
  border-radius: 14px;
  padding: .85rem .9rem;
  outline: none;
}
.clickable-stat:hover {
  transform: translateY(-4px) scale(1.03);
  background: linear-gradient(135deg, rgba(201,168,76,.10), rgba(201,168,76,.04));
  box-shadow: 0 10px 30px rgba(201,168,76,.22);
}
.clickable-stat:focus-visible {
  outline: 2px solid #C5A572;
  outline-offset: 3px;
}
.clickable-stat:active { transform: translateY(-2px) scale(1.01); }

.clickable-stat .stat-rate-cta {
  font-size: .72rem;
  color: #C5A572;
  margin-top: .35rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
  white-space: nowrap;
}
.clickable-stat:hover .stat-rate-cta,
.clickable-stat:focus-visible .stat-rate-cta {
  opacity: 1;
  transform: translateY(0);
}
/* Always show CTA on mobile (no hover) */
@media (max-width: 768px) {
  .clickable-stat .stat-rate-cta {
    opacity: .85;
    transform: none;
    font-size: .66rem;
  }
}

/* Subtle pulse to draw attention */
@keyframes rate-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); }
  50%      { box-shadow: 0 0 0 12px rgba(201,168,76,.08); }
}
.clickable-stat::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  pointer-events: none;
  animation: rate-pulse 3.2s ease-in-out infinite;
}
.clickable-stat:hover::before { animation: none; }

/* ══════════════════════════════════════════════════
   BOOKING MODAL — Unit picker cards
   ══════════════════════════════════════════════════ */
.bm-unit-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
  background: white;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: .55rem .75rem;
  cursor: pointer;
  transition: all .15s ease;
  font-family: var(--font-ku);
}
.bm-unit-card:hover {
  border-color: rgba(197,165,114,.5);
  background: #fffbf2;
}
.bm-unit-card.active {
  border-color: #C5A572;
  background: linear-gradient(135deg, #fffbf2, #fff5e3);
  box-shadow: 0 2px 8px rgba(197,165,114,.25);
}
.bm-unit-radio {
  width: 18px; height: 18px;
  border: 2px solid #c8c8c8;
  border-radius: 50%;
  background: white;
  position: relative;
  transition: all .15s ease;
  flex-shrink: 0;
}
.bm-unit-card.active .bm-unit-radio {
  border-color: #C5A572;
  background: #C5A572;
}
.bm-unit-card.active .bm-unit-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: white;
  border-radius: 50%;
}

/* Scrollbar for units list */
#bm_unitsList::-webkit-scrollbar { width: 6px; }
#bm_unitsList::-webkit-scrollbar-track { background: transparent; }
#bm_unitsList::-webkit-scrollbar-thumb {
  background: rgba(197,165,114,.6);
  border-radius: 3px;
}

/* =====================================================
   AMENITIES — refreshed to distinct cards
   Each service now stands alone: white card, round icon
   badge, label underneath.  Overrides the older "chip"
   pill styles further up in this file.
   ===================================================== */
.amenities-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 0.7rem !important;
    flex-wrap: unset !important;
}

.amenity-chip {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.95rem 0.55rem !important;
    background: #ffffff !important;
    border: 1.5px solid var(--border-light, #E8E4DD) !important;
    border-radius: 14px !important;
    text-align: center !important;
    white-space: normal !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease !important;
}

.amenity-chip:hover {
    transform: translateY(-3px) !important;
    border-color: var(--primary-color, #C9A961) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 22px rgba(166, 137, 72, .16) !important;
}

.amenity-chip-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.95rem !important;
    line-height: 1 !important;
    background: #FAF6EE !important;
    border-radius: 50% !important;
    transition: background .2s ease !important;
}

.amenity-chip:hover .amenity-chip-icon {
    background: linear-gradient(135deg, rgba(201, 169, 97, .20), rgba(166, 137, 72, .10)) !important;
}

.amenity-chip-text {
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    color: var(--text-dark, #1A1A1A) !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-wrap: break-word;
}

@media (max-width: 600px) {
    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
        gap: 0.5rem !important;
    }
    .amenity-chip {
        padding: 0.75rem 0.4rem !important;
        gap: 0.4rem !important;
    }
    .amenity-chip-icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.8rem !important;
    }
    .amenity-chip-text {
        font-size: 0.78rem !important;
    }
}

/* =====================================================
   MODAL UNIT PICKER  ▸ progressive disclosure
   When the property has discrete units (farms with
   multiple خانیا), the modal opens with ONLY the unit
   list visible at the top. Picking a unit reveals the
   gallery, amenities, description and booking card.
   ===================================================== */

/* Hide everything except the picker while we're waiting for a pick */
.modal-content.modal-needs-pick .property-gallery,
.modal-content.modal-needs-pick #modalDiscountBanner,
.modal-content.modal-needs-pick .booking-sidebar,
.modal-content.modal-needs-pick .details-main > .detail-section {
    display: none !important;
}

/* …but always keep the picker itself visible, wherever it ended up */
.modal-content.modal-needs-pick > #modalUnitsSection,
.modal-content.modal-needs-pick #modalUnitsSection {
    display: block !important;
}

/* Picker styling when promoted directly under the header */
.modal-content > #modalUnitsSection {
    padding: 1.25rem 1.5rem 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-content > #modalUnitsSection > h3 {
    margin: 0 0 0.85rem !important;
    text-align: start;
    font-size: 1.1rem !important;
}

/* Selected unit highlight */
.room-select-card.unit-card-active {
    border-color: #C5A572 !important;
    background: linear-gradient(135deg, rgba(197, 165, 114, 0.14), rgba(139, 115, 85, 0.05)) !important;
    box-shadow: 0 8px 22px rgba(197, 165, 114, 0.28) !important;
    transform: translateY(-1px);
}

/* Affordance — hover lift for the cards while user hasn't picked */
.modal-content.modal-needs-pick .room-select-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.modal-content.modal-needs-pick .room-select-card:hover {
    border-color: #C5A572 !important;
    background: #fafaf5 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
    .modal-content > #modalUnitsSection {
        padding: 1rem 1rem 0.5rem;
    }
}
