/* Component: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background-color: var(--color-accent);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--color-accent);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
}
.btn-primary:hover {
    background-color: var(--color-accent-dark);
    color: #fff;
    border-color: var(--color-accent-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}
.btn-outline:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.75rem;
}

.btn-full { width: 100%; }

/* Component: Property Card (Editorial Style) */
.prop-card {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.prop-img {
    position: relative;
    height: 320px; /* Taller editorial ratio */
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #f0f0f0;
}

.prop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.prop-card:hover .prop-img img {
    transform: scale(1.05); /* Subtle zoom */
}

.prop-img .tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #FFFFFF;
    color: #1a1a1a;
    padding: 6px 12px;
    font-size: 0.7rem;
    text-transform: uppercase; /* Clean sans */
    letter-spacing: 0.1em;
    font-weight: 500;
    z-index: 2;
}

.prop-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    line-height: 1.25;
}

.prop-info .location {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prop-info .price {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #1a1a1a;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.prop-info .specs {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #777;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* =========================================
   COMPONENT: HEADER (Premium Sticky)
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 255, 255, 0.95); /* Default to slighttransparency white for readability anywhere */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-header.transparent {
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
}
.site-header.transparent:hover,
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.header-container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.brand-logo img {
    height: 36px;
    display: block;
    transition: opacity 0.3s;
    padding-left: 1.5rem; /* User requested logo move right */
}

/* Desktop Navigation */
.main-nav {
    display: flex;
    gap: 3.5rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #999;
}
.lang-toggle a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}
.lang-toggle a.active {
    color: var(--color-text);
}

.btn-list-property {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
    padding: 10px 24px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-list-property:hover {
    background: var(--color-accent-dark);
    color: #fff;
    border-color: var(--color-accent-dark);
}

/* Mobile Toggle - HIDDEN (Replaced by Bottom Nav) */
.mobile-toggle {
    display: none !important;
}

/* =========================================
   COMPONENT: BOTTOM NAVIGATION (App Style)
   ========================================= */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.08); /* Subtle border */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
    z-index: 1500; /* Below overlay (2000), above content */
    padding-bottom: env(safe-area-inset-bottom); /* iOS safe area */
    height: calc(3.5rem + env(safe-area-inset-bottom));
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #4a4a4a; /* Much darker grey for visibility */
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.bottom-nav-item svg {
    width: 20px;
    height: 20px;
    margin-bottom: 4px;
    stroke-width: 1.8px; /* Thicker lines */
}

.bottom-nav-item span {
    font-size: 0.65rem;
    font-family: 'Mitr', sans-serif; /* Clean Sans for UI */
    font-weight: 400; /* Increased weight */
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--color-accent); /* Active Color */
}
.bottom-nav-item.active svg,
.bottom-nav-item:hover svg {
    stroke: var(--color-accent);
}

@media (max-width: 991px) {
    .main-nav { display: none; }
    .header-actions { display: none; }
    /* Show Bottom Nav on Mobile */
    .mobile-bottom-nav { 
        display: flex; 
        justify-content: space-between;
    }
    .header-container { padding: 0 1rem; }
    
    /* Ensure content isn't hidden behind fixed bottom nav */
    body {
        padding-bottom: 5rem;
    }
}

/* =========================================
   COMPONENT: MOBILE MENU (Minimal White)
   ========================================= */

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff; /* Clean White */
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* 1. Header */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.menu-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.menu-close-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}
.menu-close-btn:hover {
    background: #e0e0e0;
}

/* 2. Navigation List */
.mobile-nav-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Expand from top */
    padding-top: 1rem;
    overflow-y: auto;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0; /* Minimal divider */
}

/* Hide the mask wrapper for minimal style - we just want the text */
.link-wrapper {
    display: block;
}

.link-text {
    display: block;
    font-family: var(--font-primary); /* Use main sans font */
    font-size: 1.1rem; /* Readable, standard size */
    font-weight: 500;
    color: #333;
    letter-spacing: 0.02em;
    transform: none; /* Reset cinematic transform */
    transition: color 0.2s;
}

/* Thai Font Adjust */
:lang(th) .link-text {
    font-family: 'Mitr', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
}

.mobile-nav-link:hover .link-text {
    color: var(--color-accent);
}

/* Arrow Icon for list */
.mobile-nav-link::after {
    content: '›';
    font-size: 1.5rem;
    color: #ccc;
    line-height: 1;
}

/* 3. Footer */
.mobile-menu-footer {
    padding-top: 1rem;
    opacity: 1;
    transform: none;
    transition: none;
}

.btn-mobile-cta {
    display: block;
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    text-align: center;
    padding: 1rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-radius: 4px; /* Soften edges slightly */
}
.btn-mobile-cta:hover {
    background: var(--color-accent-dark);
}

.mobile-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

.lang-toggle-mobile a {
    color: #999;
    text-decoration: none;
    margin-right: 1rem;
    font-family: var(--font-primary);
}
.lang-toggle-mobile a.active {
    color: #333;
    border-bottom: 1px solid #333;
}

.social-links-mobile {
    display: flex;
    gap: 1rem;
}
.social-link-sm {
    color: #999;
    transition: color 0.2s;
}
.social-link-sm:hover {
    color: var(--color-accent);
    transform: none;
}

@media (max-width: 991px) {
    .main-nav, .header-actions { display: none; }
    .mobile-toggle { display: flex; }
    .header-container { padding: 0 1.5rem; }
}


/* =========================================
   COMPONENT: FOOTER (Luxury 4-Col Grid)
   ========================================= */
.site-footer {
    background-color: #0F0F0F;
    color: #F8F8F8;
    padding: 5rem 0 2rem;
    font-family: var(--font-primary);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-col h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.footer-logo {
    height: 32px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.footer-desc {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 1rem;
}
.footer-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
    font-weight: 300;
}
.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Refined Footer Icons */
.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.5;
    align-items: flex-start;
}
.contact-item svg {
    color: #fff;
    min-width: 20px;
    margin-top: 3px; /* Align with text baseline */
    opacity: 0.8;
}
.contact-item a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 2px;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.social-link {
    color: #fff;
    opacity: 0.6;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
}
.social-link:hover {
    opacity: 1;
    background: #fff;
    color: #0c0c0c;
    border-color: #fff;
    transform: translateY(-2px);
}
.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.85rem;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}
.footer-legal a:hover { color: #888; }

@media (max-width: 991px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-legal a { margin: 0 0.75rem; }
}

/* Desktop Header Adjustments */
@media (min-width: 992px) {
    .brand-logo img {
        padding-left: 4rem; /* Simple nudge to align with text block inside 1400px grid */
    }
    
    .main-nav {
         /* Ensure gap is consistent */
         gap: 3rem;
    }
}
