:root {
    --treb-primary: #0a192f;
    --treb-primary-dark: #060e1a;
    --treb-primary-light: #172a45;
    --treb-gold: #c5a880;
    --treb-gold-hover: #b39266;
    --treb-accent-red: #e11d48;
    --treb-text-main: #1e293b;
    --treb-text-muted: #64748b;
    --treb-bg-light: #f8fafc;
    --treb-card-border: #e2e8f0;
    --treb-whatsapp: #25D366;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --treb-radius: 8px;
    --treb-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08);
    --treb-shadow-hover: 0 10px 30px -4px rgba(10, 25, 47, 0.15);
}

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

body {
    font-family: var(--font-body);
    color: var(--treb-text-main);
    background-color: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--treb-primary);
    font-weight: 700;
    line-height: 1.25;
}

.treb-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------- HEADER ------------------- */
.treb-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--treb-card-border);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.treb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
}

.treb-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.treb-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.treb-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--treb-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
}

.treb-nav a:hover, .treb-nav a.active {
    color: var(--treb-gold);
}

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

.btn-treb-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--treb-whatsapp);
    color: #ffffff !important;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-treb-whatsapp:hover {
    background-color: #20ba59;
    transform: translateY(-2px);
}

.btn-treb-gold {
    background: var(--treb-gold);
    color: #ffffff !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.btn-treb-gold:hover {
    background: var(--treb-gold-hover);
}

/* ------------------- HERO SECTION ------------------- */
.treb-hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(rgba(10, 25, 47, 0.78), rgba(10, 25, 47, 0.88)), url('https://images.unsplash.com/photo-1512453979798-5ea266f8880c?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
    color: #ffffff;
}

.treb-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.treb-hero-badge {
    display: inline-block;
    background: rgba(197, 168, 128, 0.25);
    border: 1px solid var(--treb-gold);
    color: var(--treb-gold);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.treb-hero h1 {
    font-size: 52px;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.treb-hero p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 35px;
}

/* ------------------- SEARCH BAR ------------------- */
.treb-search-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    margin-top: 30px;
    text-align: left;
}

.treb-search-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--treb-card-border);
    padding-bottom: 10px;
}

.treb-tab-btn {
    background: none;
    border: none;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 14px;
    color: var(--treb-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.treb-tab-btn.active {
    background: var(--treb-primary);
    color: #ffffff;
}

.treb-search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 15px;
    align-items: center;
}

.treb-field-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--treb-text-muted);
    margin-bottom: 6px;
}

.treb-field-group select,
.treb-field-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--treb-primary);
    outline: none;
    background: #ffffff;
}

.treb-search-submit {
    height: 44px;
    align-self: flex-end;
    background: var(--treb-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 26px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.treb-search-submit:hover {
    background: var(--treb-gold);
}

/* ------------------- SECTION STYLES ------------------- */
.treb-section {
    padding: 80px 0;
}

.treb-section.bg-light {
    background-color: var(--treb-bg-light);
}

.treb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 45px;
}

.treb-section-title-wrap h2 {
    font-size: 34px;
    margin-bottom: 8px;
}

.treb-section-title-wrap p {
    color: var(--treb-text-muted);
    font-size: 15px;
}

.treb-view-all {
    font-size: 14px;
    font-weight: 700;
    color: var(--treb-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.treb-view-all:hover {
    color: var(--treb-gold);
}

/* ------------------- PROPERTY CARDS ------------------- */
.treb-property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.treb-card {
    background: #ffffff;
    border: 1px solid var(--treb-card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--treb-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.treb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--treb-shadow-hover);
}

.treb-card-media {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #e2e8f0;
}

.treb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.treb-card:hover .treb-card-media img {
    transform: scale(1.05);
}

.treb-badge-wrap {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.treb-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.badge-featured { background: var(--treb-gold); color: #ffffff; }
.badge-sale { background: var(--treb-primary); color: #ffffff; }
.badge-rent { background: #0284c7; color: #ffffff; }
.badge-offplan { background: #7c3aed; color: #ffffff; }

.treb-card-favorite {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
    z-index: 2;
}

.treb-card-favorite:hover, .treb-card-favorite.active {
    color: var(--treb-accent-red);
    background: #ffffff;
}

.treb-card-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 18px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #ffffff;
}

.treb-card-price {
    font-size: 22px;
    font-weight: 800;
    font-family: var(--font-heading);
}

.treb-card-price .per-year {
    font-size: 12px;
    font-weight: 500;
    color: #e2e8f0;
}

.treb-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.treb-card-location {
    font-size: 13px;
    color: var(--treb-text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.treb-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.35;
}

.treb-card-title a:hover {
    color: var(--treb-gold);
}

.treb-card-features {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 15px;
}

.treb-feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.treb-feature-item i {
    color: var(--treb-gold);
}

.treb-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.treb-card-agent-mini {
    display: flex;
    align-items: center;
    gap: 10px;
}

.treb-card-agent-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.treb-card-agent-mini span {
    font-size: 12px;
    font-weight: 600;
    color: var(--treb-primary);
}

.treb-card-actions {
    display: flex;
    gap: 8px;
}

.btn-card-wa {
    background: #e8f9ef;
    color: var(--treb-whatsapp);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-card-wa:hover {
    background: var(--treb-whatsapp);
    color: #ffffff;
}

.btn-card-view {
    background: var(--treb-bg-light);
    color: var(--treb-primary);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.btn-card-view:hover {
    background: var(--treb-primary);
    color: #ffffff;
}

/* ------------------- OFF PLAN CARDS ------------------- */
.treb-project-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--treb-card-border);
    box-shadow: var(--treb-shadow);
}

.treb-project-content {
    padding: 20px;
}

.treb-project-developer {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--treb-gold);
    margin-bottom: 5px;
}

/* ------------------- STATS COUNTER ------------------- */
.treb-stats-bar {
    background: var(--treb-primary);
    color: #ffffff;
    padding: 50px 0;
}

.treb-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.treb-stat-number {
    font-size: 42px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--treb-gold);
    margin-bottom: 6px;
}

.treb-stat-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ------------------- COMMUNITY GRID ------------------- */
.treb-community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.treb-community-card {
    position: relative;
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #ffffff;
}

.treb-community-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.treb-community-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.9) 10%, rgba(10, 25, 47, 0.2));
    z-index: 2;
}

.treb-community-info {
    position: relative;
    z-index: 3;
}

.treb-community-info h3 {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 4px;
}

.treb-community-info span {
    font-size: 13px;
    color: var(--treb-gold);
    font-weight: 600;
}

.treb-community-card:hover img {
    transform: scale(1.08);
}

/* ------------------- AGENT CARD ------------------- */
.treb-agent-card {
    background: #ffffff;
    border: 1px solid var(--treb-card-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--treb-shadow);
}

.treb-agent-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 15px;
    object-fit: cover;
    border: 3px solid var(--treb-gold);
}

.treb-agent-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.treb-agent-card .designation {
    font-size: 13px;
    color: var(--treb-text-muted);
    margin-bottom: 12px;
}

.treb-agent-card .brn {
    display: inline-block;
    background: var(--treb-bg-light);
    border: 1px solid #cbd5e1;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ------------------- FOOTER ------------------- */
.treb-footer {
    background: var(--treb-primary-dark);
    color: #94a3b8;
    padding: 70px 0 30px;
    border-top: 4px solid var(--treb-gold);
}

.treb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.treb-footer h4 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.treb-footer ul li {
    margin-bottom: 10px;
}

.treb-footer ul li a:hover {
    color: var(--treb-gold);
}

.treb-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* ------------------- FLOATING WHATSAPP ------------------- */
.treb-floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--treb-whatsapp);
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s;
}

.treb-floating-whatsapp:hover {
    transform: scale(1.1);
    color: #ffffff;
}

/* ------------------- RESPONSIVE ------------------- */
@media (max-width: 1024px) {
    .treb-property-grid, .treb-community-grid { grid-template-columns: repeat(2, 1fr); }
    .treb-search-form { grid-template-columns: 1fr 1fr; }
    .treb-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .treb-property-grid, .treb-community-grid, .treb-stats-grid { grid-template-columns: 1fr; }
    .treb-search-form { grid-template-columns: 1fr; }
    .treb-hero h1 { font-size: 34px; }
    .treb-nav { display: none; }
    .treb-footer-grid { grid-template-columns: 1fr; }
}
