/*
Theme Name: Tay Ninh Land
Theme URI: https://tayninhland.vn
Description: Child theme cho Flatsome - Cổng thông tin bất động sản Tây Ninh. Phong cách "The Digital Cartographer" - Hiện đại, chuyên nghiệp, tối ưu SEO.
Author: Tay Ninh Horizon
Version: 1.0.0
Template: flatsome
Text Domain: tay-ninh-land
Tags: real-estate, vietnamese, professional
*/

/* ============================================
   IMPORT FLATSOME PARENT
============================================ */
@import url('../flatsome/style.css');

/* ============================================
   GOOGLE FONTS
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&family=Manrope:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
============================================ */
:root {
    /* Primary Palette - Deep Blue */
    --tnl-primary:               #001e40;
    --tnl-primary-container:     #003366;
    --tnl-primary-fixed:         #d5e3ff;
    --tnl-primary-fixed-dim:     #a7c8ff;
    --tnl-on-primary:            #ffffff;
    --tnl-on-primary-container:  #799dd6;
    --tnl-inverse-primary:       #a7c8ff;

    /* Secondary Palette - Emerald Green */
    --tnl-secondary:             #2a6b2c;
    --tnl-secondary-container:   #acf4a4;
    --tnl-secondary-fixed:       #acf4a4;
    --tnl-secondary-fixed-dim:   #91d78a;
    --tnl-on-secondary:          #ffffff;
    --tnl-on-secondary-container:#307231;

    /* Surface Hierarchy */
    --tnl-surface:               #f8f9fa;
    --tnl-surface-bright:        #f8f9fa;
    --tnl-surface-dim:           #d9dadb;
    --tnl-surface-container-lowest: #ffffff;
    --tnl-surface-container-low: #f3f4f5;
    --tnl-surface-container:     #edeeef;
    --tnl-surface-container-high:#e7e8e9;
    --tnl-surface-container-highest: #e1e3e4;
    --tnl-surface-variant:       #e1e3e4;
    --tnl-on-surface:            #191c1d;
    --tnl-on-surface-variant:    #43474f;
    --tnl-inverse-surface:       #2e3132;
    --tnl-inverse-on-surface:    #f0f1f2;

    /* Tertiary */
    --tnl-tertiary:              #00231e;
    --tnl-tertiary-container:    #003b33;
    --tnl-on-tertiary:           #ffffff;

    /* Outline */
    --tnl-outline:               #737780;
    --tnl-outline-variant:       #c3c6d1;

    /* Error */
    --tnl-error:                 #ba1a1a;
    --tnl-error-container:       #ffdad6;

    /* Typography */
    --tnl-font-headline:         'Be Vietnam Pro', sans-serif;
    --tnl-font-body:             'Manrope', sans-serif;

    /* Border Radius */
    --tnl-radius-sm:             0.125rem;
    --tnl-radius-md:             0.25rem;
    --tnl-radius-lg:             0.5rem;
    --tnl-radius-xl:             1rem;
    --tnl-radius-full:           9999px;

    /* Shadows */
    --tnl-shadow-sm:             0 1px 2px rgba(25,28,29,0.04);
    --tnl-shadow-md:             0 4px 16px rgba(25,28,29,0.08);
    --tnl-shadow-lg:             0 8px 32px rgba(25,28,29,0.10);
    --tnl-shadow-primary:        0 8px 32px rgba(0,30,64,0.15);
}

/* ============================================
   GLOBAL RESET & BASE
============================================ */
body {
    font-family: var(--tnl-font-body) !important;
    background-color: var(--tnl-surface) !important;
    color: var(--tnl-on-surface) !important;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-headline {
    font-family: var(--tnl-font-headline) !important;
}

/* Override Flatsome defaults */
.header-main { display: none !important; } /* We use our own header */
.footer-default { display: none !important; } /* We use our own footer */

/* ============================================
   MATERIAL SYMBOLS
============================================ */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ============================================
   HEADER / NAVIGATION
============================================ */
.tnl-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(195,198,209,0.3);
    height: 80px;
    display: flex;
    align-items: center;
}

.tnl-header .tnl-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tnl-logo {
    font-family: var(--tnl-font-headline) !important;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--tnl-primary) !important;
    text-decoration: none !important;
}

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

.tnl-nav a {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.2s;
}

.tnl-nav a:hover,
.tnl-nav a.active {
    color: var(--tnl-primary) !important;
}

.tnl-nav a.active {
    border-bottom: 2px solid var(--tnl-primary);
    padding-bottom: 2px;
}

.tnl-btn-primary {
    background: linear-gradient(135deg, var(--tnl-primary), var(--tnl-primary-container)) !important;
    color: var(--tnl-on-primary) !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: var(--tnl-radius-lg) !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s;
    box-shadow: var(--tnl-shadow-primary);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tnl-btn-primary:hover {
    filter: brightness(1.1);
    color: var(--tnl-on-primary) !important;
}

.tnl-btn-primary:active {
    transform: scale(0.97);
}

.tnl-btn-secondary {
    background: transparent !important;
    color: var(--tnl-on-surface) !important;
    font-size: 0.875rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
}

.tnl-btn-secondary:hover {
    color: var(--tnl-primary) !important;
}

/* Mobile Menu Toggle */
.tnl-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--tnl-primary);
}

/* ============================================
   HERO SECTION
============================================ */
.tnl-hero {
    position: relative;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

.tnl-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tnl-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,30,64,0.4), rgba(0,30,64,0.65));
}

.tnl-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 56rem;
    padding: 0 2rem;
    text-align: center;
    color: #fff;
    margin-bottom: 2.5rem;
}

.tnl-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--tnl-font-headline) !important;
}

.tnl-hero-title span {
    color: #91d78a;
}

.tnl-hero-desc {
    font-size: 1.125rem;
    font-weight: 500;
    opacity: 0.9;
    max-width: 40rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   SEARCH BOX (GLASS CARD)
============================================ */
.tnl-search-box {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
}

.tnl-glass-card {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--tnl-radius-xl);
    box-shadow: 0 25px 50px rgba(0,30,64,0.25);
    padding: 0.5rem;
}

.tnl-search-tabs {
    display: flex;
    border-bottom: 1px solid rgba(195,198,209,0.4);
    padding: 0.5rem 1rem 0;
    gap: 0;
}

.tnl-search-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.tnl-search-tab.active,
.tnl-search-tab:hover {
    color: var(--tnl-primary);
    border-bottom-color: var(--tnl-primary);
}

.tnl-search-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 0.5rem;
    padding: 0.5rem;
}

.tnl-filter-group {
    padding: 0.75rem;
    border-right: 1px solid rgba(195,198,209,0.4);
}

.tnl-filter-group:last-child {
    border-right: none;
}

.tnl-filter-label {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tnl-outline);
    display: block;
    margin-bottom: 0.25rem;
}

.tnl-filter-select {
    width: 100%;
    background: transparent;
    border: none;
    font-family: var(--tnl-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tnl-on-surface);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.tnl-search-btn {
    background: var(--tnl-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--tnl-radius-lg) !important;
    padding: 1rem 1.5rem !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.tnl-search-btn:hover {
    background: var(--tnl-primary-container) !important;
}

.tnl-search-input-wrap {
    padding: 0 1rem 1rem;
}

.tnl-search-input-inner {
    display: flex;
    align-items: center;
    background: rgba(248,249,250,0.7);
    border: 1px solid var(--tnl-outline-variant);
    border-radius: var(--tnl-radius-lg);
    padding: 0 1rem;
    gap: 0.5rem;
}

.tnl-search-input-inner input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.875rem;
    font-family: var(--tnl-font-body);
    color: var(--tnl-on-surface);
    width: 100%;
    padding: 0.625rem 0;
}

.tnl-search-input-inner input::placeholder {
    color: var(--tnl-outline);
}

/* Stats Bar */
.tnl-hero-stats {
    position: relative;
    z-index: 10;
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    color: #fff;
    padding: 0 2rem 3rem;
    width: 100%;
    max-width: 1000px;
}

.tnl-stat-number {
    font-size: 1.875rem;
    font-weight: 900;
    font-family: var(--tnl-font-headline) !important;
}

.tnl-stat-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* ============================================
   SECTION STYLES
============================================ */
.tnl-section {
    padding: 6rem 0;
}

.tnl-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tnl-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tnl-primary);
}

.tnl-section-title {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--tnl-primary);
    margin-top: 0.5rem;
    font-family: var(--tnl-font-headline) !important;
}

.tnl-section-desc {
    font-size: 0.875rem;
    color: var(--tnl-on-surface-variant);
    margin-top: 0.5rem;
}

.tnl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tnl-link-arrow {
    color: var(--tnl-primary);
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none !important;
    border-bottom: 2px solid var(--tnl-primary-fixed);
    transition: gap 0.2s;
}

.tnl-link-arrow:hover {
    gap: 0.75rem;
}

/* ============================================
   CATEGORY CARDS
============================================ */
.tnl-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 640px)  { .tnl-categories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .tnl-categories-grid { grid-template-columns: repeat(8, 1fr); } }

.tnl-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--tnl-radius-xl);
    background: var(--tnl-surface-container-low);
    text-decoration: none !important;
    transition: all 0.3s;
}

.tnl-cat-card:hover {
    background: var(--tnl-surface-container-lowest);
    box-shadow: var(--tnl-shadow-lg);
}

.tnl-cat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(0,30,64,0.05);
    color: var(--tnl-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.tnl-cat-card:hover .tnl-cat-icon {
    transform: scale(1.1);
}

.tnl-cat-name {
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
    color: var(--tnl-primary);
}

.tnl-cat-count {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

/* ============================================
   PROPERTY LISTING CARDS
============================================ */
.tnl-listings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px)  { .tnl-listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tnl-listings-grid { grid-template-columns: repeat(4, 1fr); } }

.tnl-property-card {
    background: var(--tnl-surface-container-lowest);
    border-radius: var(--tnl-radius-xl);
    overflow: hidden;
    box-shadow: var(--tnl-shadow-sm);
    transition: box-shadow 0.5s, transform 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
}

.tnl-property-card:hover {
    box-shadow: var(--tnl-shadow-lg);
    transform: translateY(-2px);
}

.tnl-property-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.tnl-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.tnl-property-card:hover .tnl-property-image img {
    transform: scale(1.08);
}

.tnl-property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tnl-badge {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--tnl-radius-full);
    backdrop-filter: blur(8px);
}

.tnl-badge-primary {
    background: rgba(0,30,64,0.88);
    color: #fff;
}

.tnl-badge-secondary {
    background: rgba(42,107,44,0.88);
    color: #fff;
}

.tnl-badge-hot {
    background: rgba(186,26,26,0.88);
    color: #fff;
}

.tnl-property-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: var(--tnl-radius-full);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    color: #fff;
}

.tnl-property-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tnl-property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--tnl-secondary);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tnl-property-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--tnl-on-surface);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-clamp: 2;
    overflow: hidden;
    font-family: var(--tnl-font-headline) !important;
}

.tnl-property-card:hover .tnl-property-title {
    color: var(--tnl-primary);
}

.tnl-property-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    margin-bottom: 1rem;
}

.tnl-property-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--tnl-primary);
}

.tnl-property-per-m2 {
    font-size: 0.75rem;
    color: #94a3b8;
}

.tnl-property-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.tnl-property-specs {
    display: flex;
    gap: 1rem;
}

.tnl-spec {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
}

.tnl-property-time {
    font-size: 0.625rem;
    color: #94a3b8;
    font-style: italic;
}

/* Filter Pills */
.tnl-filter-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tnl-pill {
    padding: 0.5rem 1.25rem;
    border-radius: var(--tnl-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--tnl-outline-variant);
    background: var(--tnl-surface-container-lowest);
    color: #475569;
    transition: all 0.2s;
}

.tnl-pill.active,
.tnl-pill:hover {
    background: var(--tnl-primary);
    color: #fff;
    border-color: var(--tnl-primary);
}

/* ============================================
   REGIONAL AREA CARDS
============================================ */
.tnl-regions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) { .tnl-regions-grid { grid-template-columns: repeat(3, 1fr); } }

.tnl-region-card {
    position: relative;
    height: 450px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--tnl-shadow-md);
    display: block;
    text-decoration: none !important;
}

.tnl-region-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s;
}

.tnl-region-card:hover img {
    transform: scale(1.08);
}

.tnl-region-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,30,64,0.9) 0%, rgba(0,30,64,0.2) 50%, transparent 100%);
}

.tnl-region-body {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: #fff;
}

.tnl-region-name {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--tnl-font-headline) !important;
    margin-bottom: 0.5rem;
}

.tnl-region-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tnl-region-count {
    background: var(--tnl-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--tnl-radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tnl-region-growth {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
}

/* ============================================
   NEWS SECTION
============================================ */
.tnl-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px)  { .tnl-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tnl-news-grid { grid-template-columns: repeat(3, 1fr); } }

.tnl-news-card {
    border-radius: var(--tnl-radius-xl);
    overflow: hidden;
    background: var(--tnl-surface-container-lowest);
    box-shadow: var(--tnl-shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
}

.tnl-news-card:hover {
    box-shadow: var(--tnl-shadow-lg);
    transform: translateY(-2px);
}

.tnl-news-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.tnl-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.tnl-news-card:hover .tnl-news-image img {
    transform: scale(1.05);
}

.tnl-news-body {
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tnl-news-tag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tnl-secondary);
    margin-bottom: 0.5rem;
}

.tnl-news-title {
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--tnl-on-surface);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 0.75rem;
    font-family: var(--tnl-font-headline) !important;
}

.tnl-news-card:hover .tnl-news-title {
    color: var(--tnl-primary);
}

.tnl-news-excerpt {
    font-size: 0.8125rem;
    color: var(--tnl-on-surface-variant);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tnl-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ============================================
   FOOTER
============================================ */
.tnl-footer {
    background: var(--tnl-primary);
    color: rgba(255,255,255,0.85);
    padding: 4rem 0 2rem;
}

.tnl-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px)  { .tnl-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tnl-footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.tnl-footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    font-family: var(--tnl-font-headline) !important;
    margin-bottom: 0.75rem;
}

.tnl-footer-tagline {
    font-size: 0.8125rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.tnl-footer-socials {
    display: flex;
    gap: 0.75rem;
}

.tnl-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    text-decoration: none !important;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.tnl-social-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff !important;
}

.tnl-footer-col-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1.25rem;
}

.tnl-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.tnl-footer-links a {
    font-size: 0.875rem;
    opacity: 0.7;
    text-decoration: none !important;
    transition: opacity 0.2s;
    color: inherit;
}

.tnl-footer-links a:hover {
    opacity: 1;
}

.tnl-footer-contact-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.875rem;
}

.tnl-footer-contact-item .material-symbols-outlined {
    font-size: 1.125rem;
    opacity: 0.6;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.tnl-footer-contact-item span:last-child {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.5;
}

.tnl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tnl-footer-copy {
    font-size: 0.8125rem;
    opacity: 0.5;
}

.tnl-footer-policy {
    display: flex;
    gap: 1.5rem;
}

.tnl-footer-policy a {
    font-size: 0.8125rem;
    opacity: 0.5;
    text-decoration: none !important;
    color: inherit;
    transition: opacity 0.2s;
}

.tnl-footer-policy a:hover {
    opacity: 0.9;
}

/* ============================================
   PAGE BODY OFFSET (fixed header)
============================================ */
.tnl-page-body {
    padding-top: 80px;
}

/* ============================================
   SINGLE PROPERTY PAGE
============================================ */
.tnl-property-detail {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .tnl-property-detail {
        grid-template-columns: 1fr 360px;
        align-items: flex-start;
    }
}

.tnl-detail-main {}

.tnl-detail-sidebar {
    position: sticky;
    top: 6rem;
}

.tnl-sidebar-card {
    background: var(--tnl-surface-container-lowest);
    border-radius: var(--tnl-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--tnl-shadow-md);
    margin-bottom: 1.5rem;
}

.tnl-gallery {
    border-radius: var(--tnl-radius-xl);
    overflow: hidden;
    margin-bottom: 2rem;
}

.tnl-gallery-main {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.tnl-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tnl-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.25rem;
    cursor: pointer;
}

.tnl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.tnl-thumb:hover img {
    opacity: 0.8;
}

/* Detail Specs Table */
.tnl-specs-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--tnl-outline-variant);
    border-radius: var(--tnl-radius-lg);
    overflow: hidden;
    margin: 1.5rem 0;
}

.tnl-spec-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tnl-outline-variant);
    border-right: 1px solid var(--tnl-outline-variant);
}

.tnl-spec-item:nth-child(even) { border-right: none; }
.tnl-spec-item:nth-last-child(-n+2) { border-bottom: none; }

.tnl-spec-item-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tnl-outline);
    margin-bottom: 0.25rem;
}

.tnl-spec-item-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tnl-on-surface);
}

/* ============================================
   ARCHIVE / LISTING PAGE
============================================ */
.tnl-archive-layout {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    display: grid;
    gap: 2rem;
}

.tnl-filter-bar {
    background: var(--tnl-surface-container-lowest);
    border-radius: var(--tnl-radius-xl);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--tnl-shadow-sm);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.tnl-filter-select-styled {
    background: var(--tnl-surface-container-low);
    border: 1px solid var(--tnl-outline-variant);
    border-radius: var(--tnl-radius-lg);
    padding: 0.625rem 1rem;
    font-family: var(--tnl-font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tnl-on-surface);
    cursor: pointer;
    outline: none;
}

.tnl-filter-select-styled:focus {
    border-color: var(--tnl-primary);
}

/* ============================================
   BREADCRUMB
============================================ */
.tnl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tnl-breadcrumb a {
    color: #64748b;
    text-decoration: none !important;
    transition: color 0.2s;
}

.tnl-breadcrumb a:hover {
    color: var(--tnl-primary);
}

.tnl-breadcrumb .sep {
    opacity: 0.4;
    font-size: 0.75rem;
}

.tnl-breadcrumb .current {
    color: var(--tnl-on-surface);
    font-weight: 600;
}

/* ============================================
   FORMS
============================================ */
.tnl-form-group {
    margin-bottom: 1.25rem;
}

.tnl-form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tnl-on-surface);
    margin-bottom: 0.375rem;
}

.tnl-form-label .req {
    color: var(--tnl-error);
    margin-left: 0.125rem;
}

.tnl-form-input,
.tnl-form-select,
.tnl-form-textarea {
    width: 100%;
    background: var(--tnl-surface-container-lowest);
    border: 1.5px solid var(--tnl-outline-variant);
    border-radius: var(--tnl-radius-lg);
    padding: 0.75rem 1rem;
    font-family: var(--tnl-font-body);
    font-size: 0.875rem;
    color: var(--tnl-on-surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.tnl-form-input:focus,
.tnl-form-select:focus,
.tnl-form-textarea:focus {
    border-color: rgba(0,30,64,0.4);
    box-shadow: 0 0 0 3px rgba(0,30,64,0.07);
}

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

/* ============================================
   PAGINATION
============================================ */
.tnl-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tnl-page-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--tnl-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--tnl-outline-variant);
    background: var(--tnl-surface-container-lowest);
    color: var(--tnl-on-surface);
    text-decoration: none !important;
    transition: all 0.2s;
}

.tnl-page-btn.active,
.tnl-page-btn:hover {
    background: var(--tnl-primary);
    color: #fff;
    border-color: var(--tnl-primary);
}

/* ============================================
   AGENT CONTACT CARD
============================================ */
.tnl-agent-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tnl-agent-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.tnl-agent-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tnl-on-surface);
}

.tnl-agent-title {
    font-size: 0.8125rem;
    color: var(--tnl-on-surface-variant);
}

.tnl-agent-phone {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--tnl-primary);
    font-family: var(--tnl-font-headline) !important;
}

/* ============================================
   CTA BANNER
============================================ */
.tnl-cta-banner {
    background: linear-gradient(135deg, var(--tnl-primary), var(--tnl-primary-container));
    border-radius: 1.5rem;
    padding: 4rem 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tnl-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.tnl-cta-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 900;
    font-family: var(--tnl-font-headline) !important;
    margin-bottom: 1rem;
}

.tnl-cta-desc {
    opacity: 0.8;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 767px) {
    .tnl-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .tnl-search-filters {
        grid-template-columns: 1fr;
    }

    .tnl-filter-group {
        border-right: none;
        border-bottom: 1px solid rgba(195,198,209,0.4);
    }

    .tnl-section { padding: 3rem 0; }

    .tnl-container { padding: 0 1rem; }

    .tnl-hamburger { display: block; }

    .tnl-nav { display: none; }
    .tnl-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: var(--tnl-shadow-lg);
        z-index: 999;
    }

    .tnl-header .tnl-btn-primary span { display: none; }

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

    .tnl-property-detail {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 3rem;
    }

    .tnl-detail-sidebar {
        position: static;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .tnl-search-filters {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   UTILITY CLASSES
============================================ */
.tnl-bg-surface       { background-color: var(--tnl-surface) !important; }
.tnl-bg-surface-low   { background-color: var(--tnl-surface-container-low) !important; }
.tnl-bg-white         { background-color: var(--tnl-surface-container-lowest) !important; }
.tnl-text-primary     { color: var(--tnl-primary) !important; }
.tnl-text-secondary   { color: var(--tnl-secondary) !important; }
.tnl-text-muted       { color: var(--tnl-on-surface-variant) !important; }
.tnl-mt-auto          { margin-top: auto !important; }
.tnl-text-center      { text-align: center; }
