/* =====================================================================
   Turath Pro — distinctive design system
   Deep navy + warm gold, soft elevation, generous rounding.
   ===================================================================== */
:root {
	--tpb-primary: #0f3d5f;
	--tpb-primary-dark: #0a2c45;
	--tpb-secondary: #0a1929;
	--tpb-accent: #25D366;
	--tpb-gold: #c9973e;
	--tpb-gold-soft: #f4e6cd;
	--tpb-radius: 16px;
	--tpb-radius-sm: 10px;
	--tpb-border: #e9e6df;
	--tpb-text: #14181f;
	--tpb-muted: #767b85;
	--tpb-bg-soft: #f7f5f0;
	--tpb-shadow: 0 10px 30px rgba(15,25,40,.08);
	--tpb-shadow-lg: 0 20px 50px rgba(15,25,40,.14);
	--tpb-font: "Poppins", -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }

.tpb-page { max-width: 1220px; margin: 0 auto; padding: 28px 20px 70px; direction: ltr; font-family: var(--tpb-font); color: var(--tpb-text); }
.tpb-page.tpb-rtl { direction: rtl; font-family: "Segoe UI", Tahoma, Arial, sans-serif; }

/* Language switcher */
.tpb-lang-switch { display:flex; justify-content:flex-end; align-items:center; gap:6px; margin-bottom:14px; font-size:12px; letter-spacing:.03em; }
.tpb-rtl .tpb-lang-switch { justify-content:flex-start; }
.tpb-lang-switch a { color: var(--tpb-muted); text-decoration:none; padding:4px 9px; border-radius:999px; font-weight:600; }
.tpb-lang-switch a.active { color:#fff; background: var(--tpb-primary); }
.tpb-lang-switch span { color: var(--tpb-border); }

.tpb-badge { display:inline-block; background: var(--tpb-gold-soft); color: var(--tpb-gold); font-weight:700; font-size: 11px; letter-spacing:.04em; text-transform:uppercase; padding: 4px 12px; border-radius: 999px; margin-inline-start: 10px; vertical-align: middle; }
.tpb-count-badge { display:inline-block; background: var(--tpb-primary); color:#fff; font-weight:600; font-size:12px; padding:4px 12px; border-radius:999px; margin-inline-start:10px; }

/* Buttons */
.tpb-btn { display:inline-flex; align-items:center; gap:9px; padding:11px 20px; border-radius: 999px; font-weight:600; text-decoration:none; font-size:14px; border:none; cursor:pointer; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; line-height:1; }
.tpb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18); filter:brightness(1.04); }
.tpb-btn .tpb-icon { flex-shrink:0; display:block; }
.tpb-btn span { white-space:nowrap; }
.tpb-btn-call { background: linear-gradient(135deg, var(--tpb-primary), var(--tpb-primary-dark)); color:#fff; }
.tpb-btn-whatsapp { background: var(--tpb-accent); color:#fff; }
.tpb-btn-lg { padding:15px 26px; font-size:15px; }
.tpb-btn-lg .tpb-icon { width:20px; height:20px; }
.tpb-btn-block { display:flex; justify-content:center; width:100%; margin-bottom:10px; padding:15px; border-radius: var(--tpb-radius-sm); }

/* Developer header */
.tpb-dev-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; padding:22px 0; border-bottom:1px solid var(--tpb-border); }
.tpb-dev-identity { display:flex; align-items:center; gap:16px; }
.tpb-dev-logo img { width:68px; height:68px; object-fit:contain; background:#fff; padding:8px; border-radius: 50%; box-shadow: 0 0 0 1px var(--tpb-border), var(--tpb-shadow); }
.tpb-dev-header h1 { margin:0; font-size:26px; font-weight:700; letter-spacing:-.01em; }
.tpb-dev-startprice { color: var(--tpb-gold); font-weight:700; font-size:18px; margin-top:6px; }
.tpb-dev-actions { display:flex; gap:10px; }
.tpb-dev-link { color: var(--tpb-primary); font-weight:600; text-decoration:none; font-size:14px; }

/* Area pills */
.tpb-developer-areas { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.tpb-area-pill { background: #fff; padding:7px 16px; border-radius:999px; font-size:13px; font-weight:600; color: var(--tpb-text); border:1px solid var(--tpb-border); text-decoration:none; transition: border-color .15s ease, color .15s ease; }
.tpb-area-pill:hover { border-color: var(--tpb-primary); color: var(--tpb-primary); }

.tpb-section-title { margin: 34px 0 18px; font-size:22px; font-weight:700; letter-spacing:-.01em; }

/* Grid & Cards — centered, never left-stranded when fewer items than columns */
.tpb-grid { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; }
.tpb-grid > * { flex: 1 1 320px; max-width: 360px; }
@media (max-width: 600px) { .tpb-grid > * { flex-basis: 100%; max-width: 440px; } }

.tpb-card { background:#fff; border:1px solid var(--tpb-border); border-radius: var(--tpb-radius); overflow:hidden; transition: box-shadow .25s ease, transform .25s ease; box-shadow: var(--tpb-shadow); }
.tpb-card:hover { box-shadow: var(--tpb-shadow-lg); transform: translateY(-4px); }
.tpb-card-media { display:block; aspect-ratio: 4/3; overflow:hidden; background: var(--tpb-bg-soft); position:relative; }
.tpb-card-media img { width:100%; height:100%; object-fit:cover; display:block; transition: transform .5s ease; }
.tpb-card:hover .tpb-card-media img { transform: scale(1.06); }

/* Distinctive developer card: ringed circular logo, name + "Developer" caption */
.tpb-developer-card { display:flex; flex-direction:column; align-items:center; text-align:center; border:1px solid var(--tpb-border); background:#fff; padding:30px 20px 24px; text-decoration:none; color:inherit; cursor:pointer; box-shadow: var(--tpb-shadow); }
.tpb-developer-card:hover { border-color: var(--tpb-gold); }
.tpb-developer-card-media { display:flex; align-items:center; justify-content:center; width:82px; height:82px; border-radius:50%; background:#fff; box-shadow: 0 0 0 1px var(--tpb-border); overflow:hidden; margin-bottom:18px; transition: box-shadow .2s ease; }
.tpb-developer-card:hover .tpb-developer-card-media { box-shadow: 0 0 0 3px var(--tpb-gold-soft), 0 0 0 1px var(--tpb-gold); }
.tpb-developer-card-media img { width:100%; height:100%; object-fit:contain; padding:12px; box-sizing:border-box; }
.tpb-developer-card .tpb-card-body { display:flex; flex-direction:column; align-items:center; gap:3px; padding:0; }
.tpb-developer-card .tpb-card-title { font-size:17px; font-weight:700; color: var(--tpb-secondary); margin-bottom:0; }
.tpb-developer-card .tpb-card-sub { color: var(--tpb-muted); font-size:13px; margin-bottom:0; text-transform:uppercase; letter-spacing:.05em; font-weight:600; }
.tpb-card-body { padding:16px; }
.tpb-card-title { font-weight:700; font-size:15px; color: var(--tpb-text); text-decoration:none; display:block; margin-bottom:5px; }
.tpb-card-sub { color: var(--tpb-muted); font-size:13px; margin-bottom:8px; }
.tpb-card-meta { display:flex; gap:14px; font-size:13px; color: var(--tpb-muted); margin-bottom:10px; }
.tpb-card-meta span { display:inline-flex; align-items:center; gap:5px; }
.tpb-icon-inline { flex-shrink:0; opacity:.7; }
.tpb-card-price { color: var(--tpb-gold); font-weight:800; font-size:16px; margin-bottom:10px; }
.tpb-card-actions { display:flex; gap:8px; }
.tpb-card-actions .tpb-btn { padding:9px 15px; font-size:13px; }

/* Distinctive area card: full-bleed photo with name overlay */
.tpb-area-card-media { position:relative; }
.tpb-area-card-overlay { position:absolute; inset:0; display:flex; align-items:flex-end; padding:16px; color:#fff; font-weight:700; font-size:17px; background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.68) 100%); }

/* Gallery (fallback strip, mostly superseded by the carousel below) */
.tpb-gallery-strip { display:flex; gap:10px; margin-bottom:18px; }
.tpb-gallery-main { flex:1; border-radius: var(--tpb-radius); overflow:hidden; aspect-ratio: 16/8; background: var(--tpb-bg-soft); }
.tpb-gallery-main img { width:100%; height:100%; object-fit:cover; }
.tpb-gallery-thumbs { display:flex; flex-direction:column; gap:6px; width:90px; }
.tpb-gallery-thumbs img { width:100%; height: 40px; object-fit:cover; border-radius:6px; filter: grayscale(20%); }

.tpb-compound-titlebar { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:14px; padding:18px 0; border-bottom:1px solid var(--tpb-border); }

.tpb-payment-box { background: linear-gradient(135deg, var(--tpb-secondary), var(--tpb-primary)); color:#fff; border-radius: var(--tpb-radius); padding:24px; margin: 24px 0; }
.tpb-payment-box h3 { margin:0 0 14px; font-size:16px; color:#fff; }
.tpb-payment-row { display:flex; gap:30px; flex-wrap:wrap; }
.tpb-payment-row span { display:block; color:rgba(255,255,255,.65); font-size:12px; }
.tpb-payment-row strong { font-size:18px; color: var(--tpb-gold-soft); }

.tpb-about-box { margin-top:34px; padding-top:22px; border-top:1px solid var(--tpb-border); }
.tpb-about-box h2 { font-size:19px; margin-bottom:12px; font-weight:700; }
.tpb-about-content { color: var(--tpb-text); line-height:1.85; }
.tpb-about-stats { display:flex; gap:34px; margin-top:18px; }
.tpb-about-stats strong { display:block; font-size:24px; color: var(--tpb-primary); }
.tpb-about-stats span { color: var(--tpb-muted); font-size:13px; }

.tpb-map-box { margin-top:26px; }
.tpb-map-box iframe { width:100%; height:340px; border:0; border-radius: var(--tpb-radius); }

/* Unit page */
.tpb-unit-title { font-size:26px; font-weight:700; margin: 12px 0 4px; }
.tpb-unit-breadcrumb { color: var(--tpb-muted); font-size:14px; margin-bottom:10px; }
.tpb-unit-breadcrumb a { color: var(--tpb-primary); text-decoration:none; font-weight:600; }
.tpb-unit-price { font-size:24px; font-weight:800; color: var(--tpb-gold); margin-bottom:20px; }
.tpb-unit-layout { display:grid; grid-template-columns: 2fr 1fr; gap:32px; align-items:start; }
@media (max-width: 800px) { .tpb-unit-layout { grid-template-columns: 1fr; } }
.tpb-details-table { width:100%; border-collapse:collapse; }
.tpb-details-table th, .tpb-details-table td { text-align:start; padding:12px 8px; border-bottom:1px solid var(--tpb-border); font-size:14px; }
.tpb-details-table th { color: var(--tpb-muted); font-weight:600; width:40%; }
.tpb-cta-box { background:#fff; border:1px solid var(--tpb-border); border-radius: var(--tpb-radius); padding:22px; position:sticky; top:20px; box-shadow: var(--tpb-shadow); }
.tpb-cta-box h3 { margin:0 0 16px; font-size:16px; }

/* =========================================================
   Carousels (Developers / Areas / Compounds / Units)
   ========================================================= */
.tpb-slider-section { margin: 46px 0; position:relative; }
.tpb-slider-header { display:flex; justify-content:center; align-items:center; margin-bottom:20px; }
.tpb-slider-header h2 { font-size:22px; margin:0; font-weight:700; letter-spacing:-.01em; text-align:center; }
.tpb-slider-outer { position:relative; display:flex; align-items:center; gap:10px; }
.tpb-slider-viewport { overflow:hidden; flex:1; min-width:0; }
.tpb-slider-track { display:flex; gap:20px; transition: transform .45s cubic-bezier(.65,0,.35,1); }
.tpb-slider-track.tpb-centered { justify-content:center; }
.tpb-slider-track .tpb-card { flex: 0 0 290px; }
.tpb-slider-track.tpb-unit-slide .tpb-card { flex: 0 0 310px; }
.tpb-slider-track.tpb-developer-slide .tpb-card { flex: 0 0 200px; }
.tpb-slider-track.tpb-area-slide .tpb-card { flex: 0 0 230px; }

.tpb-slider-arrow { flex-shrink:0; border:none; background:transparent; cursor:pointer; display:flex; align-items:center; justify-content:center; color: var(--tpb-muted); z-index:2; }
.tpb-slider-arrow:hover { color: var(--tpb-primary); }
.tpb-slider-arrow:disabled { opacity:.25; cursor:default; }

.tpb-nav-chevron .tpb-slider-arrow { width:30px; height:64px; }

.tpb-nav-circle .tpb-slider-outer { gap:0; }
.tpb-nav-circle .tpb-slider-arrow { position:absolute; top:38%; width:42px; height:42px; border-radius:50%; background:rgba(10,20,35,.6); color:#fff; box-shadow:0 4px 14px rgba(0,0,0,.22); }
.tpb-nav-circle .tpb-slider-arrow:hover { background: var(--tpb-primary); color:#fff; }
.tpb-nav-circle .tpb-prev { inset-inline-start:8px; }
.tpb-nav-circle .tpb-next { inset-inline-end:8px; }

.tpb-slider-dots { display:flex; justify-content:center; gap:6px; margin-top:20px; }
.tpb-slider-dots .tpb-dot { width:10px; height:6px; border-radius:999px; background: var(--tpb-border); border:none; padding:0; cursor:pointer; transition: width .2s ease, background .2s ease; }
.tpb-slider-dots .tpb-dot.active { width:24px; background: var(--tpb-gold); }

@media (max-width: 600px) {
	.tpb-dev-header, .tpb-compound-titlebar { flex-direction:column; align-items:flex-start; }
}

/* ==================================================================
   "Available / Recommended Units" card
   ================================================================== */
.tpb-unit-card { border:1px solid var(--tpb-border); }
.tpb-unit-card .tpb-card-media { aspect-ratio: 16/10; }
.tpb-card-media-link { display:block; width:100%; height:100%; }
.tpb-card-media-link img { width:100%; height:100%; object-fit:cover; display:block; }

.tpb-ribbon-launch { position:absolute; top:14px; inset-inline-start:14px; z-index:3; background: linear-gradient(135deg, var(--tpb-gold), #a97a25); color:#fff; font-weight:700; font-size:11px; letter-spacing:.04em; text-transform:uppercase; padding:6px 13px; border-radius:8px; box-shadow: 0 4px 10px rgba(0,0,0,.2); }

.tpb-card-icon-row { position:absolute; top:12px; inset-inline-end:12px; z-index:3; display:flex; gap:8px; }
.tpb-icon-round { width:34px; height:34px; border-radius:50%; border:none; background:rgba(10,20,35,.55); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
.tpb-icon-round:hover { transform: scale(1.08); background:rgba(10,20,35,.8); }
.tpb-favorite-btn.active { background:#fff; color:#e0355a; }
.tpb-favorite-btn.active svg { fill:#e0355a; }
.tpb-compare-btn.active { background: var(--tpb-gold); color:#fff; }

.tpb-card-media-delivery { position:absolute; bottom:12px; inset-inline-start:14px; z-index:3; color:#fff; font-size:12px; text-shadow:0 1px 4px rgba(0,0,0,.6); display:flex; flex-direction:column; line-height:1.35; }
.tpb-card-media-delivery strong { font-size:15px; }
.tpb-unit-card .tpb-card-media { position:relative; }
.tpb-unit-card .tpb-card-media::before { content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 58%, rgba(0,0,0,.58) 100%); z-index:1; pointer-events:none; }

.tpb-card-devline { display:flex; align-items:center; gap:6px; color: var(--tpb-muted); font-size:12px; margin-bottom:6px; font-weight:600; }
.tpb-card-devlogo { width:16px; height:16px; border-radius:50%; object-fit:cover; }
.tpb-unit-card .tpb-card-title { font-size:16px; margin-bottom:9px; }
.tpb-unit-card .tpb-card-meta { margin-bottom:10px; flex-wrap:wrap; row-gap:5px; }
.tpb-card-monthly { color: var(--tpb-text); font-size:13px; margin-bottom:10px; font-weight:500; }
.tpb-card-footer { display:flex; align-items:center; justify-content:space-between; padding-top:10px; border-top:1px dashed var(--tpb-border); }
.tpb-unit-card .tpb-card-price { margin-bottom:0; font-size:18px; }
.tpb-unit-card .tpb-card-actions { gap:8px; }

.tpb-icon-btn { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; text-decoration:none; color:#fff; transition: transform .15s ease, filter .15s ease; }
.tpb-icon-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.tpb-icon-btn-call { background: linear-gradient(135deg, var(--tpb-primary), var(--tpb-primary-dark)); }
.tpb-icon-btn-whatsapp { background: var(--tpb-accent); }

.tpb-dev-link { display:inline-flex; align-items:center; gap:7px; }
.tpb-dev-link-logo { width:22px; height:22px; border-radius:50%; object-fit:contain; background:#fff; box-shadow: 0 0 0 1px var(--tpb-border); }

/* ==================================================================
   Auto-moving compound gallery carousel
   ================================================================== */
.tpb-gallery-carousel { position:relative; border-radius: var(--tpb-radius); overflow:hidden; aspect-ratio: 16/7; background: var(--tpb-bg-soft); margin-bottom:22px; box-shadow: var(--tpb-shadow-lg); }
.tpb-gallery-track { display:flex; width:100%; height:100%; transition: transform .65s cubic-bezier(.65,0,.35,1); }
.tpb-gallery-slide { flex: 0 0 100%; height:100%; }
.tpb-gallery-slide img { width:100%; height:100%; object-fit:cover; display:block; }
.tpb-gallery-arrow { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%; border:none; background:rgba(10,20,35,.55); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:2; }
.tpb-gallery-arrow:hover { background: var(--tpb-primary); }
.tpb-gallery-prev { inset-inline-start:16px; }
.tpb-gallery-next { inset-inline-end:16px; }
.tpb-gallery-dots { position:absolute; bottom:16px; inset-inline-start:0; inset-inline-end:0; display:flex; justify-content:center; gap:7px; z-index:2; }
.tpb-gallery-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.55); transition: background .2s ease, width .2s ease; }
.tpb-gallery-dot.active { background: var(--tpb-gold); width:22px; border-radius:999px; }
@media (max-width: 700px) { .tpb-gallery-carousel { aspect-ratio: 4/3; } }

/* ==================================================================
   Floating Compare bar + Compare modal
   ================================================================== */
.tpb-compare-bar { position:fixed; left:0; right:0; bottom:0; z-index:1000; background:#fff; border-top:1px solid var(--tpb-border); box-shadow:0 -10px 30px rgba(0,0,0,.12); }
.tpb-compare-bar-inner { max-width:1220px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.tpb-compare-bar-items { display:flex; gap:10px; overflow-x:auto; }
.tpb-compare-chip { position:relative; flex:0 0 auto; width:54px; height:54px; border-radius:10px; overflow:hidden; box-shadow: 0 0 0 1px var(--tpb-border); }
.tpb-compare-chip img { width:100%; height:100%; object-fit:cover; display:block; }
.tpb-compare-chip button { position:absolute; top:-5px; inset-inline-end:-5px; width:19px; height:19px; border-radius:50%; background: var(--tpb-secondary); color:#fff; border:2px solid #fff; font-size:11px; line-height:1; cursor:pointer; }
.tpb-compare-bar-actions { display:flex; align-items:center; gap:16px; }
.tpb-compare-clear { background:none; border:none; color: var(--tpb-muted); font-size:13px; cursor:pointer; text-decoration:underline; }
.tpb-compare-open { padding:11px 20px; }

.tpb-compare-modal { position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:16px; }
.tpb-compare-modal-backdrop { position:absolute; inset:0; background:rgba(8,15,25,.6); backdrop-filter: blur(2px); }
.tpb-compare-modal-box { position:relative; background:#fff; border-radius:18px; max-width:980px; width:100%; max-height:86vh; overflow:auto; box-shadow: var(--tpb-shadow-lg); }
.tpb-compare-modal-head { display:flex; align-items:center; justify-content:space-between; padding:18px 22px; border-bottom:1px solid var(--tpb-border); position:sticky; top:0; background:#fff; }
.tpb-compare-modal-head h3 { margin:0; font-size:19px; font-weight:700; }
.tpb-compare-modal-close { background:none; border:none; font-size:24px; line-height:1; cursor:pointer; color: var(--tpb-muted); }
.tpb-compare-modal-body { padding:22px; overflow-x:auto; }
.tpb-compare-table { display:flex; gap:18px; min-width:min-content; justify-content:center; }
.tpb-compare-col { flex:0 0 230px; border:1px solid var(--tpb-border); border-radius: var(--tpb-radius-sm); overflow:hidden; }
.tpb-compare-col img { width:100%; height:145px; object-fit:cover; display:block; }
.tpb-compare-col-body { padding:15px; }
.tpb-compare-col-title { font-weight:700; font-size:14px; margin-bottom:12px; display:block; color: var(--tpb-text); text-decoration:none; }
.tpb-compare-row { display:flex; justify-content:space-between; padding:9px 0; border-top:1px solid var(--tpb-border); font-size:13px; }
.tpb-compare-row span:first-child { color: var(--tpb-muted); }
.tpb-compare-row span:last-child { font-weight:700; }
.tpb-compare-empty { color: var(--tpb-muted); text-align:center; padding:34px 10px; }

@media (max-width: 700px) {
	.tpb-slider-track .tpb-card,
	.tpb-slider-track.tpb-unit-slide .tpb-card { flex-basis:80vw; }
	.tpb-nav-chevron .tpb-slider-arrow { width:22px; }
}
