/* ═══════════════════════════════════════════════════════════════════════════
   TBF Real Estate – Frontend CSS
   Luxury real estate page design
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
    --tbf-accent:       #c8a96e;
    --tbf-accent-d:     #a8894e;
    --tbf-accent-l:     rgba(200,169,110,.12);
    --tbf-dark:         #0f172a;
    --tbf-mid:          #1e293b;
    --tbf-text:         #1e293b;
    --tbf-muted:        #64748b;
    --tbf-light:        #f8fafc;
    --tbf-border:       #e2e8f0;
    --tbf-white:        #ffffff;
    --tbf-radius:       12px;
    --tbf-radius-lg:    20px;
    --tbf-shadow:       0 4px 24px rgba(0,0,0,.08);
    --tbf-shadow-lg:    0 8px 48px rgba(0,0,0,.14);
    --tbf-transition:   all .28s cubic-bezier(.4,0,.2,1);
    --tbf-container:    1280px;
}

/* ── Base Reset for Plugin Scope ───────────────────────────────────────────── */
.tbf-re-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--tbf-text);
    -webkit-font-smoothing: antialiased;
}

.tbf-re-wrap *, .tbf-re-wrap *::before, .tbf-re-wrap *::after { box-sizing: border-box; }
.tbf-re-wrap img { max-width: 100%; height: auto; display: block; }
.tbf-re-wrap a { text-decoration: none; }

/* ── Container ─────────────────────────────────────────────────────────────── */
.tbf-container {
    max-width: var(--tbf-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ════════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-hero {
    position: relative;
    height: 75vh;
    min-height: 480px;
    max-height: 700px;
    overflow: hidden;
    background: var(--tbf-dark);
}

.tbf-hero--property { height: 65vh; min-height: 420px; }

/* ── Slider ─────────────────────────────────────────────────────────────────── */
.tbf-gallery-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.tbf-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
}

.tbf-slide--active { opacity: 1; z-index: 1; }

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

/* ── Slider Controls ────────────────────────────────────────────────────────── */
.tbf-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tbf-transition);
}

.tbf-slider-btn:hover { background: rgba(255,255,255,.28); transform: translateY(-50%) scale(1.08); }
.tbf-slider-btn--prev { left: 24px; }
.tbf-slider-btn--next { right: 24px; }

/* ── Slider Dots ────────────────────────────────────────────────────────────── */
.tbf-slider-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.tbf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all .2s;
}
.tbf-dot--active { background: white; width: 24px; border-radius: 4px; }

/* ── Thumbnail Strip ────────────────────────────────────────────────────────── */
.tbf-slider-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(8px);
    padding: 6px;
    border-radius: 10px;
    max-width: 90%;
    overflow-x: auto;
}

.tbf-thumb {
    width: 52px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all .2s;
    flex-shrink: 0;
    padding: 0;
}
.tbf-thumb:hover { border-color: rgba(255,255,255,.6); }
.tbf-thumb--active { border-color: var(--tbf-accent); }

/* ── Hero Overlay ───────────────────────────────────────────────────────────── */
.tbf-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(to right, rgba(0,0,0,.68) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%);
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

.tbf-hero-overlay--property {
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.24) 60%, transparent 100%);
    align-items: flex-end;
    padding: 0 32px 100px;
}

.tbf-hero-content {
    padding: 0 32px;
    max-width: 700px;
}

.tbf-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    color: white;
    margin: 12px 0 8px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.tbf-hero-tagline {
    font-size: 17px;
    color: rgba(255,255,255,.85);
    margin: 0 0 12px;
    font-weight: 300;
}

.tbf-hero-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,.75);
    margin: 0;
}

.tbf-hero-ref {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin: 8px 0 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: .04em;
}

/* ── Badges ─────────────────────────────────────────────────────────────────── */
.tbf-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-right: 6px;
    margin-bottom: 8px;
}

.tbf-badge--status      { background: var(--tbf-accent); color: white; }
.tbf-badge--type        { background: rgba(255,255,255,.18); backdrop-filter: blur(4px); color: white; border: 1px solid rgba(255,255,255,.3); }
.tbf-badge--availability{ background: var(--tbf-dark); color: white; }
.tbf-badge--for-sale    { background: #059669; color: white; }
.tbf-badge--for-rent    { background: #2563eb; color: white; }
.tbf-badge--sold-out    { background: #dc2626; color: white; }
.tbf-badge--off-plan    { background: #7c3aed; color: white; }
.tbf-badge--ready-to-move{ background: #059669; color: white; }
.tbf-badge--under-construction { background: #d97706; color: white; }
.tbf-badge--completed   { background: #0f766e; color: white; }
.tbf-badge--info        { background: rgba(255,255,255,.12); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.2); }

/* ════════════════════════════════════════════════════════════════════════════
   STATS BAR
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-stats-bar {
    background: var(--tbf-dark);
    padding: 18px 0;
}

.tbf-stats-bar .tbf-container {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.tbf-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 32px;
    border-right: 1px solid rgba(255,255,255,.1);
    gap: 2px;
}
.tbf-stat-item:last-child { border-right: none; }

.tbf-stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); font-weight: 600; }
.tbf-stat-value { font-size: 18px; font-weight: 700; color: white; }
.tbf-stat-value--price { color: var(--tbf-accent); font-family: 'Playfair Display', serif; }

/* ════════════════════════════════════════════════════════════════════════════
   LAYOUT: CONTENT + SIDEBAR
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 72px;
    align-items: start;
}

.tbf-main-content {}

.tbf-sidebar {}

.tbf-sidebar-sticky {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Section ────────────────────────────────────────────────────────────────── */
.tbf-section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--tbf-border);
}
.tbf-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.tbf-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    color: var(--tbf-dark);
    margin: 0 0 24px;
    position: relative;
    padding-bottom: 16px;
}

.tbf-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--tbf-accent);
    border-radius: 2px;
}

.tbf-prose {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
}
.tbf-prose p { margin: 0 0 16px; }

/* ── Highlights ─────────────────────────────────────────────────────────────── */
.tbf-highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tbf-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: var(--tbf-light);
    border: 1px solid var(--tbf-border);
    border-radius: 10px;
    transition: var(--tbf-transition);
}
.tbf-highlight-item:hover { border-color: var(--tbf-accent); background: var(--tbf-accent-l); transform: translateY(-2px); }

.tbf-highlight-icon { font-size: 20px; flex-shrink: 0; }
.tbf-highlight-text { font-size: 14px; font-weight: 500; color: var(--tbf-text); line-height: 1.4; }

/* ── Amenities Grid ─────────────────────────────────────────────────────────── */
.tbf-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.tbf-amenity-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: white;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius);
    text-align: center;
    transition: var(--tbf-transition);
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.tbf-amenity-card:hover { border-color: var(--tbf-accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(200,169,110,.18); }

.tbf-amenity-icon { font-size: 28px; }
.tbf-amenity-label { font-size: 12px; font-weight: 600; color: var(--tbf-text); text-transform: uppercase; letter-spacing: .04em; }

/* ── Payment Plan ───────────────────────────────────────────────────────────── */
.tbf-payment-plan {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--tbf-light);
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    padding: 28px;
}

.tbf-pp-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tbf-pp-bar {
    flex: 1;
    height: 10px;
    background: var(--tbf-border);
    border-radius: 100px;
    overflow: hidden;
}
.tbf-pp-fill {
    height: 100%;
    width: var(--pp-pct, 0%);
    background: var(--tbf-accent);
    border-radius: 100px;
    transition: width 1s cubic-bezier(.4,0,.2,1);
}
.tbf-pp-fill--2 { background: var(--tbf-mid); }
.tbf-pp-fill--3 { background: #2563eb; }

.tbf-pp-info { display: flex; flex-direction: column; min-width: 130px; }
.tbf-pp-pct { font-size: 22px; font-weight: 800; color: var(--tbf-dark); font-family: 'Playfair Display', serif; }
.tbf-pp-label { font-size: 12px; color: var(--tbf-muted); font-weight: 500; }
.tbf-pp-note { margin: 16px 0 0; font-size: 13px; color: var(--tbf-muted); font-style: italic; }

/* ── Developer Card ─────────────────────────────────────────────────────────── */
.tbf-developer-card {
    background: white;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    padding: 28px;
    box-shadow: var(--tbf-shadow);
}

.tbf-developer-card__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tbf-developer-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tbf-border);
    flex-shrink: 0;
    background: var(--tbf-light);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tbf-developer-logo img { width: 100%; height: 100%; object-fit: contain; }

.tbf-developer-name { font-size: 20px; font-weight: 700; margin: 0 0 6px; font-family: 'Playfair Display', serif; }

.tbf-developer-stats {
    display: flex;
    gap: 16px;
}
.tbf-developer-stats span {
    font-size: 12px;
    color: var(--tbf-muted);
    background: var(--tbf-light);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 500;
}

.tbf-developer-desc { font-size: 14px; color: #475569; line-height: 1.7; margin: 0 0 16px; }

.tbf-developer-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--tbf-accent);
    border: 1px solid var(--tbf-accent);
    padding: 8px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--tbf-transition);
}
.tbf-developer-link:hover { background: var(--tbf-accent); color: white; }

/* ── Map ────────────────────────────────────────────────────────────────────── */
.tbf-map {
    width: 100%;
    height: 380px;
    border-radius: var(--tbf-radius);
    overflow: hidden;
    border: 1px solid var(--tbf-border);
    margin-top: 16px;
    background: var(--tbf-light);
}

.tbf-address-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--tbf-muted);
    margin: 0 0 12px;
}

.tbf-nearby { margin-top: 20px; }
.tbf-nearby h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--tbf-muted); margin: 0 0 10px; }
.tbf-nearby-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tbf-nearby-item {
    font-size: 13px;
    padding: 6px 14px;
    background: var(--tbf-light);
    border: 1px solid var(--tbf-border);
    border-radius: 100px;
    color: var(--tbf-text);
    font-weight: 500;
}

/* ── Key Stats (Property) ───────────────────────────────────────────────────── */
.tbf-key-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    background: var(--tbf-dark);
    border-radius: var(--tbf-radius-lg);
    padding: 28px;
}

.tbf-key-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tbf-key-stat__icon { font-size: 28px; }
.tbf-key-stat__value { font-size: 22px; font-weight: 800; color: white; font-family: 'Playfair Display', serif; display: block; }
.tbf-key-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); font-weight: 600; }

/* ── Detail Grid ────────────────────────────────────────────────────────────── */
.tbf-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius);
    overflow: hidden;
}

.tbf-detail-item {
    padding: 16px 20px;
    border-right: 1px solid var(--tbf-border);
    border-bottom: 1px solid var(--tbf-border);
}
.tbf-detail-item:nth-child(3n) { border-right: none; }

.tbf-detail-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--tbf-muted); font-weight: 600; margin-bottom: 4px; }
.tbf-detail-value { display: block; font-size: 15px; font-weight: 600; color: var(--tbf-text); }

/* ── Features Grid ──────────────────────────────────────────────────────────── */
.tbf-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.tbf-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--tbf-light);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--tbf-border);
}

.tbf-feature-icon { font-size: 16px; color: var(--tbf-accent); }

/* ── Floor Plan ─────────────────────────────────────────────────────────────── */
.tbf-floorplan-wrap {
    background: var(--tbf-light);
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius);
    padding: 24px;
    text-align: center;
}
.tbf-floorplan-img { max-width: 100%; max-height: 500px; margin: 0 auto; object-fit: contain; }

/* ── Breadcrumb ─────────────────────────────────────────────────────────────── */
.tbf-breadcrumb {
    background: var(--tbf-light);
    border-bottom: 1px solid var(--tbf-border);
    padding: 14px 0;
    font-size: 13px;
}
.tbf-breadcrumb .tbf-container { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tbf-breadcrumb a { color: var(--tbf-muted); transition: color .15s; }
.tbf-breadcrumb a:hover { color: var(--tbf-accent); }
.tbf-bc-sep { color: var(--tbf-border); }
.tbf-breadcrumb span:last-child { color: var(--tbf-text); font-weight: 500; }

/* ── Project Card (on property page) ─────────────────────────────────────── */
.tbf-project-card-link:hover .tbf-project-card { transform: translateY(-3px); border-color: var(--tbf-accent); }

.tbf-project-card {
    display: flex;
    gap: 0;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    overflow: hidden;
    transition: var(--tbf-transition);
    box-shadow: var(--tbf-shadow);
}

.tbf-project-card__img {
    width: 220px;
    flex-shrink: 0;
}
.tbf-project-card__img img { width: 100%; height: 100%; object-fit: cover; }

.tbf-project-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tbf-project-card__title { font-size: 20px; font-weight: 700; color: var(--tbf-dark); margin: 4px 0; font-family: 'Playfair Display', serif; }
.tbf-project-card__dev { color: var(--tbf-muted); font-size: 13px; }
.tbf-project-card__cta { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--tbf-accent); }

/* ── Property Cards (related / archive) ─────────────────────────────────── */
.tbf-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.tbf-prop-card {
    background: white;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    overflow: hidden;
    transition: var(--tbf-transition);
    box-shadow: var(--tbf-shadow);
    display: flex;
    flex-direction: column;
    color: var(--tbf-text);
}
.tbf-prop-card:hover { transform: translateY(-4px); box-shadow: var(--tbf-shadow-lg); border-color: var(--tbf-accent); }

.tbf-prop-card__img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--tbf-light);
}
.tbf-prop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tbf-prop-card:hover .tbf-prop-card__img img { transform: scale(1.04); }

.tbf-prop-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--tbf-dark);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 100px;
}

.tbf-prop-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbf-border);
}

.tbf-prop-card__body { padding: 18px 20px; flex: 1; }
.tbf-prop-card__type { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tbf-accent); font-weight: 700; margin: 0 0 6px; }
.tbf-prop-card__title { font-size: 16px; font-weight: 700; color: var(--tbf-dark); margin: 0 0 8px; line-height: 1.35; }
.tbf-prop-card__price { font-size: 18px; font-weight: 800; color: var(--tbf-accent); margin: 0 0 12px; font-family: 'Playfair Display', serif; }

.tbf-prop-card__stats {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--tbf-muted);
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-sidebar-card {
    background: white;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    overflow: hidden;
    box-shadow: var(--tbf-shadow);
}

.tbf-sidebar-card--cta {
    background: var(--tbf-dark);
    border-color: var(--tbf-dark);
    padding: 24px;
}

.tbf-sidebar-price { margin-bottom: 16px; }
.tbf-sidebar-price__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 6px; }
.tbf-sidebar-price__value { display: block; font-size: 30px; font-weight: 800; color: var(--tbf-accent); font-family: 'Playfair Display', serif; line-height: 1; }
.tbf-sidebar-price__sub { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 4px; }

.tbf-sidebar-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tbf-sidebar-ref { font-size: 12px; color: rgba(255,255,255,.4); margin: 12px 0 0; }

/* ════════════════════════════════════════════════════════════════════════════
   ENQUIRY FORM
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-enquiry-form-wrap { padding: 24px; }

.tbf-enquiry-header { margin-bottom: 20px; }
.tbf-enquiry-title { font-size: 18px; font-weight: 700; color: var(--tbf-dark); margin: 0 0 4px; font-family: 'Playfair Display', serif; }
.tbf-enquiry-sub { font-size: 12px; color: var(--tbf-muted); margin: 0; }

.tbf-form-messages {
    margin-bottom: 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.tbf-form-messages.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 12px 16px;
}
.tbf-form-messages.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
}

.tbf-contact-form { display: flex; flex-direction: column; gap: 14px; }

.tbf-form-group { display: flex; flex-direction: column; gap: 5px; }
.tbf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tbf-form-label { font-size: 12px; font-weight: 600; color: var(--tbf-muted); text-transform: uppercase; letter-spacing: .04em; }
.tbf-req { color: var(--tbf-accent); }

.tbf-form-input,
.tbf-form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--tbf-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--tbf-text);
    background: var(--tbf-light);
    transition: var(--tbf-transition);
}
.tbf-form-input:focus,
.tbf-form-textarea:focus {
    outline: none;
    border-color: var(--tbf-accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(200,169,110,.15);
}
.tbf-form-input.tbf-error,
.tbf-form-textarea.tbf-error { border-color: #ef4444; }
.tbf-form-textarea { resize: vertical; min-height: 90px; }

.tbf-form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: var(--tbf-accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tbf-transition);
    letter-spacing: .02em;
}
.tbf-form-submit:hover { background: var(--tbf-accent-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,169,110,.4); }
.tbf-form-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

@keyframes tbfSpin {
    to { transform: rotate(360deg); }
}
.tbf-btn-spinner svg { animation: tbfSpin .8s linear infinite; }

/* ── Contact Alternatives ───────────────────────────────────────────────────── */
.tbf-contact-alts { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tbf-border); }
.tbf-contact-alts__label { font-size: 11px; color: var(--tbf-muted); text-align: center; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.tbf-contact-alts__btns { display: flex; gap: 8px; }

.tbf-contact-alt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--tbf-transition);
    border: 1.5px solid;
}
.tbf-contact-alt-btn--phone { border-color: var(--tbf-dark); color: var(--tbf-dark); }
.tbf-contact-alt-btn--phone:hover { background: var(--tbf-dark); color: white; }
.tbf-contact-alt-btn--whatsapp { border-color: #25D366; color: #25D366; }
.tbf-contact-alt-btn--whatsapp:hover { background: #25D366; color: white; }

/* ── Download Documents Section ─────────────────────────────────────────────── */
.tbf-downloads-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--tbf-border);
}

.tbf-downloads-label {
    font-size: 11px;
    color: var(--tbf-muted);
    text-align: center;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tbf-downloads-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tbf-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--tbf-accent);
    color: var(--tbf-accent);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    transition: var(--tbf-transition);
    background: transparent;
}
.tbf-download-btn:hover {
    background: var(--tbf-accent);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(200,169,110,.3);
}
.tbf-download-btn svg {
    flex-shrink: 0;
    opacity: .85;
}

/* Admin: PDF file preview in meta box */
.tbf-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.tbf-file-preview a { color: #166534; font-weight: 500; }
.tbf-file-preview .dashicons-pdf { color: #ef4444; font-size: 20px; }

/* ── Download Lead Modal ─────────────────────────────────────────────────── */
.tbf-dl-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: tbfFadeIn 0.3s forwards;
}

.tbf-dl-modal-box {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    animation: tbfSlideUp 0.3s forwards;
}

@keyframes tbfFadeIn { to { opacity: 1; } }
@keyframes tbfSlideUp { to { transform: translateY(0); } }

.tbf-dl-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.tbf-dl-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tbf-dl-header {
    text-align: center;
    margin-bottom: 24px;
}
.tbf-dl-header svg {
    color: var(--tbf-accent);
    margin-bottom: 12px;
}
.tbf-dl-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-family: 'Playfair Display', serif;
    color: var(--tbf-dark);
}
.tbf-dl-sub {
    margin: 0;
    font-size: 14px;
    color: var(--tbf-muted);
}


/* ════════════════════════════════════════════════════════════════════════════
   ARCHIVE PAGES
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-archive-header {
    background: linear-gradient(135deg, var(--tbf-dark) 0%, var(--tbf-mid) 100%);
    padding: 60px 0 48px;
    margin-bottom: 0;
}

.tbf-archive-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
}

.tbf-archive-count { font-size: 14px; color: rgba(255,255,255,.55); margin: 0; font-weight: 400; }

/* ── Filter Bar ─────────────────────────────────────────────────────────────── */
.tbf-archive-filters { padding: 28px 0 0; }
.tbf-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }

.tbf-filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid var(--tbf-border);
    background: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--tbf-muted);
    cursor: pointer;
    transition: var(--tbf-transition);
    text-decoration: none;
}
.tbf-filter-btn:hover, .tbf-filter-btn.active {
    background: var(--tbf-dark);
    border-color: var(--tbf-dark);
    color: white;
}

/* ── Advanced Filter Panel ──────────────────────────────────────────────────── */
.tbf-filter-panel {
    background: white;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--tbf-shadow);
}

.tbf-filter-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.tbf-filter-group { display: flex; flex-direction: column; gap: 6px; }
.tbf-filter-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tbf-muted); }

.tbf-filter-select,
.tbf-filter-input {
    height: 40px;
    border-radius: 8px;
    font-size: 13px;
}

.tbf-filter-group--actions { display: flex; gap: 8px; }

.tbf-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--tbf-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tbf-transition);
    text-decoration: none;
}
.tbf-btn-accent:hover { background: var(--tbf-accent-d); color: white; transform: translateY(-1px); }

.tbf-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: transparent;
    color: var(--tbf-muted);
    border: 1.5px solid var(--tbf-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--tbf-transition);
    text-decoration: none;
}
.tbf-btn-outline:hover { border-color: var(--tbf-text); color: var(--tbf-text); }

/* ── Active Filter Tags ─────────────────────────────────────────────────────── */
.tbf-active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tbf-active-filters__label { font-size: 12px; color: var(--tbf-muted); font-weight: 600; }
.tbf-active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: var(--tbf-accent-l);
    border: 1px solid var(--tbf-accent);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tbf-accent-d);
}
.tbf-active-filter-tag a { color: inherit; font-weight: 700; }

/* ── Archive Card Grid ──────────────────────────────────────────────────────── */
.tbf-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    padding: 20px 0;
}

.tbf-archive-card {
    background: white;
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--tbf-transition);
    box-shadow: var(--tbf-shadow);
    color: var(--tbf-text);
    text-decoration: none;
}
.tbf-archive-card:hover { transform: translateY(-5px); box-shadow: var(--tbf-shadow-lg); border-color: var(--tbf-accent); }

.tbf-archive-card__img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--tbf-light);
}
.tbf-archive-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tbf-archive-card:hover .tbf-archive-card__img img { transform: scale(1.06); }

.tbf-archive-card__status {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

.tbf-archive-card__dev-logo {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: white;
    border-radius: 6px;
    padding: 4px 8px;
    z-index: 2;
}
.tbf-archive-card__dev-logo img { height: 28px; max-width: 80px; object-fit: contain; }

.tbf-archive-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbf-border);
}

.tbf-archive-card__body { padding: 20px; flex: 1; }
.tbf-archive-card__type { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tbf-accent); font-weight: 700; margin: 0 0 6px; }
.tbf-archive-card__title { font-size: 19px; font-weight: 700; color: var(--tbf-dark); margin: 0 0 8px; font-family: 'Playfair Display', serif; line-height: 1.3; }
.tbf-archive-card__tagline { font-size: 13px; color: var(--tbf-muted); margin: 0 0 10px; }
.tbf-archive-card__address { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--tbf-muted); margin: 0 0 10px; }
.tbf-archive-card__project { font-size: 13px; color: var(--tbf-muted); margin: 0 0 6px; }
.tbf-archive-card__view { font-size: 13px; color: var(--tbf-muted); margin: 0 0 8px; }

.tbf-archive-card__amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tbf-archive-card__amenity {
    font-size: 11px;
    padding: 3px 9px;
    background: var(--tbf-light);
    border: 1px solid var(--tbf-border);
    border-radius: 100px;
    color: var(--tbf-text);
}
.tbf-archive-card__amenity--more { color: var(--tbf-accent); border-color: var(--tbf-accent); background: var(--tbf-accent-l); }

.tbf-archive-card__stats { display: flex; gap: 12px; font-size: 13px; color: var(--tbf-muted); flex-wrap: wrap; margin-top: 10px; }

.tbf-archive-card__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--tbf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.tbf-price-from { font-size: 11px; color: var(--tbf-muted); text-transform: uppercase; letter-spacing: .06em; display: block; }
.tbf-price-value { font-size: 17px; font-weight: 800; color: var(--tbf-dark); font-family: 'Playfair Display', serif; }
.tbf-price-value--enquire { font-size: 14px; font-weight: 600; color: var(--tbf-muted); font-family: inherit; }
.tbf-archive-card__handover { font-size: 12px; color: var(--tbf-muted); }
.tbf-archive-card__cta { font-size: 13px; font-weight: 700; color: var(--tbf-accent); white-space: nowrap; }

/* ── No Results ─────────────────────────────────────────────────────────────── */
.tbf-no-results {
    text-align: center;
    padding: 80px 24px;
}
.tbf-no-results__icon { font-size: 64px; margin-bottom: 20px; }
.tbf-no-results h3 { font-size: 24px; font-weight: 700; color: var(--tbf-dark); margin: 0 0 10px; }
.tbf-no-results p { font-size: 15px; color: var(--tbf-muted); margin: 0 0 24px; }

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.tbf-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 32px 0;
}
.tbf-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--tbf-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--tbf-text);
    text-decoration: none;
    transition: var(--tbf-transition);
}
.tbf-pagination .page-numbers:hover { border-color: var(--tbf-accent); color: var(--tbf-accent); }
.tbf-pagination .page-numbers.current { background: var(--tbf-accent); border-color: var(--tbf-accent); color: white; }
.tbf-pagination .prev,
.tbf-pagination .next { width: auto; padding: 0 16px; font-size: 13px; }

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .tbf-layout {
        grid-template-columns: 1fr;
    }
    .tbf-sidebar-sticky {
        position: static;
    }
    .tbf-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .tbf-hero { height: 55vh; min-height: 340px; }
    .tbf-hero-content { padding: 0 20px; }
    .tbf-stats-bar .tbf-container { gap: 0; }
    .tbf-stat-item { padding: 8px 16px; }
    .tbf-layout { padding-top: 28px; gap: 24px; }
    .tbf-highlights-list { grid-template-columns: 1fr; }
    .tbf-detail-grid { grid-template-columns: repeat(2,1fr); }
    .tbf-key-stats { grid-template-columns: repeat(2,1fr); }
    .tbf-archive-grid { grid-template-columns: 1fr; }
    .tbf-filter-form__grid { grid-template-columns: 1fr 1fr; }
    .tbf-form-row { grid-template-columns: 1fr; }
    .tbf-project-card { flex-direction: column; }
    .tbf-project-card__img { width: 100%; height: 180px; }
}

@media (max-width: 480px) {
    .tbf-detail-grid { grid-template-columns: 1fr; }
    .tbf-detail-item { border-right: none; }
    .tbf-amenities-grid { grid-template-columns: repeat(2,1fr); }
    .tbf-filter-form__grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════════
   SHORTCODE CARDS – [tbf_projects] & [tbf_properties]
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-sc-listing {
    padding: 8px 0;
}

.tbf-sc-grid {
    display: grid;
    grid-template-columns: repeat(var(--tbf-sc-cols, 3), 1fr);
    gap: 28px;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.tbf-sc-card {
    background: var(--tbf-white);
    border: 1px solid var(--tbf-border);
    border-radius: var(--tbf-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--tbf-transition);
    box-shadow: var(--tbf-shadow);
    color: var(--tbf-text);
    text-decoration: none;
    cursor: pointer;
}
.tbf-sc-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tbf-shadow-lg);
    border-color: var(--tbf-accent);
}

/* ── Image ─────────────────────────────────────────────────────────────────── */
.tbf-sc-card__img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tbf-light);
}
.tbf-sc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.tbf-sc-card:hover .tbf-sc-card__img img {
    transform: scale(1.06);
}

.tbf-sc-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbf-border);
}

/* ── Badge ─────────────────────────────────────────────────────────────────── */
.tbf-sc-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--tbf-dark);
    color: white;
}
.tbf-sc-badge--off-plan          { background: #7c3aed; }
.tbf-sc-badge--under-construction{ background: #d97706; }
.tbf-sc-badge--ready-to-move     { background: #059669; }
.tbf-sc-badge--completed         { background: #0f766e; }
.tbf-sc-badge--for-sale          { background: #059669; }
.tbf-sc-badge--for-rent          { background: #2563eb; }
.tbf-sc-badge--sold-out          { background: #dc2626; }

/* ── Body ──────────────────────────────────────────────────────────────────── */
.tbf-sc-card__body {
    padding: 18px 20px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tbf-sc-card__type {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--tbf-accent);
    font-weight: 700;
    margin: 0;
}

.tbf-sc-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--tbf-dark);
    margin: 2px 0 4px;
    line-height: 1.3;
}

.tbf-sc-card__tagline {
    font-size: 13px;
    color: var(--tbf-muted);
    margin: 0 0 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tbf-sc-card__location {
    font-size: 13px;
    color: var(--tbf-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tbf-sc-card__developer {
    font-size: 12px;
    color: var(--tbf-muted);
    margin: 0;
    font-style: italic;
}

.tbf-sc-card__view {
    font-size: 12px;
    color: var(--tbf-muted);
    margin: 0;
}

/* ── Stats (beds / baths / area) ───────────────────────────────────────────── */
.tbf-sc-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.tbf-sc-stat {
    font-size: 12px;
    font-weight: 500;
    color: var(--tbf-text);
    background: var(--tbf-light);
    border: 1px solid var(--tbf-border);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.tbf-sc-card__footer {
    padding: 14px 20px;
    border-top: 1px solid var(--tbf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.tbf-sc-card__price-wrap {
    display: flex;
    flex-direction: column;
}

.tbf-sc-price-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--tbf-muted);
    font-weight: 600;
}

.tbf-sc-price-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--tbf-dark);
    line-height: 1.2;
}

.tbf-sc-price--enquire {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--tbf-muted);
}

.tbf-sc-card__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tbf-sc-meta-item {
    font-size: 12px;
    color: var(--tbf-muted);
    white-space: nowrap;
}

.tbf-sc-card__cta {
    font-size: 13px;
    font-weight: 700;
    color: var(--tbf-accent);
    white-space: nowrap;
    transition: color .2s;
}
.tbf-sc-card:hover .tbf-sc-card__cta {
    color: var(--tbf-accent-d);
}

/* ── Empty State ───────────────────────────────────────────────────────────── */
.tbf-sc-empty {
    text-align: center;
    padding: 48px 24px;
    font-size: 15px;
    color: var(--tbf-muted);
    background: var(--tbf-light);
    border: 1px dashed var(--tbf-border);
    border-radius: var(--tbf-radius);
}

/* ── Shortcode Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tbf-sc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .tbf-sc-grid {
        grid-template-columns: 1fr;
    }
    .tbf-sc-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ════════════════════════════════════════════════════════════════════════════
   CITY GRID
   ════════════════════════════════════════════════════════════════════════════ */
.tbf-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 4px; /* Thin gap matching the image */
}

@media (min-width: 768px) {
    .tbf-city-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 320px;
    }
}

.tbf-city-card {
    position: relative;
    border-radius: 0; /* Remove border radius to match image */
    overflow: hidden;
    display: block;
    transition: var(--tbf-transition);
}

@media (min-width: 768px) {
    .tbf-city-card.tbf-city-span-2 {
        grid-column: span 2;
    }
}

.tbf-city-card:hover {
    box-shadow: var(--tbf-shadow-lg);
}

.tbf-city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.tbf-city-card:hover img {
    transform: scale(1.05); /* Zoom image on hover */
}

.tbf-city-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--tbf-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tbf-border);
}

.tbf-city-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    pointer-events: none;
    transition: opacity .4s ease; /* Smooth transition for hiding text */
}

.tbf-city-card:hover .tbf-city-card__overlay {
    opacity: 0; /* Hide text overlay on hover */
}

.tbf-city-card__title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin: 0 0 4px 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.tbf-city-card__count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
