/* ── Gardalake.com — Custom CSS ─────────────────────────────────────────────── */

/* ── CSS Variables (must match tailwind.config.js) ── */
:root {
  --primary:       #00A3D3;
  --primary-dark:  #0085ad;
  --primary-light: #33B5DD;
  --accent:        #F5C842;
  --terra:         #C8796B;
}

/* ── Garda ornament divider ── */
.garda-divider {
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.6em;
  opacity: 0.5;
  font-size: 1.1rem;
  margin: 1.5rem 0;
}

/* ── Section label with diamond ── */
.section-label::before {
  content: '◆ ';
  color: var(--accent);
}

/* ── Playfair headings ── */
h1, h2, h3,
.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ── Line clamp utility ── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Smooth image loading ── */
img {
  transition: opacity 0.3s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* ── Property card hover ── */
article:hover {
  transform: translateY(-2px);
}

/* ── Garda pattern background ── */
.garda-pattern-bg {
  background-image: url('/static/img/garda-pattern.svg');
  background-size: 100px;
  opacity: 0.08;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Sticky mobile CTA safe area ── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-cta {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── Prose fix for descriptions ── */
.prose p { margin-bottom: 1em; line-height: 1.75; }

/* ── Focus visible ── */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── RTL support ── */
[dir="rtl"] .garda-divider { letter-spacing: 0; }

/* ── Mobile: eliminate 300ms tap delay on interactive elements ── */
button, a, [role="button"] {
  touch-action: manipulation;
}

/* ── Smart Affiliate — Toast ── */
#glk-affiliate-toast { position:fixed; top:24px; right:24px; z-index:99999; max-width:380px;
  transform:translateX(120%); opacity:0; transition:transform .35s cubic-bezier(.2,.7,.2,1.2), opacity .35s; }
#glk-affiliate-toast.show { transform:translateX(0); opacity:1; }
#glk-affiliate-toast .glk-toast-inner { display:flex; align-items:flex-start; gap:12px; padding:14px 18px;
  background:#fff; border-left:4px solid var(--primary); border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,.18); }
#glk-affiliate-toast .glk-toast-icon { width:32px; height:32px; border-radius:50%; background:var(--primary);
  color:#fff; font-weight:700; font-size:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
#glk-affiliate-toast .glk-toast-title { font-size:14px; color:#1a3c4d; font-weight:700; }
#glk-affiliate-toast .glk-toast-sub { font-size:12px; color:#5a6e6f; margin-top:2px; line-height:1.45; }

/* ── Smart Affiliate — Spot pill (same page) ── */
#glk-spot-pill { position:fixed; bottom:18px; left:18px; z-index:99998; display:inline-flex; align-items:center;
  gap:8px; padding:8px 14px; background:var(--primary); color:#fff; border-radius:20px; font-size:12px; font-weight:600;
  box-shadow:0 4px 14px rgba(0,163,211,.35); transform:translateY(60px); opacity:0;
  transition:transform .3s, opacity .3s; }
#glk-spot-pill.show { transform:translateY(0); opacity:1; }
#glk-spot-pill .glk-spot-icon { font-size:14px; }
#glk-spot-pill .glk-spot-close { background:transparent; border:none; color:rgba(255,255,255,.7); font-size:18px;
  cursor:pointer; padding:0 0 0 6px; line-height:1; }
#glk-spot-pill .glk-spot-close:hover { color:#fff; }

/* ── Smart Affiliate — Return banner (other pages) ── */
#glk-return-banner { position:fixed; left:20px; bottom:20px; z-index:99998; max-width:420px;
  transform:translateY(100px); opacity:0; transition:transform .3s, opacity .3s; }
#glk-return-banner.show { transform:translateY(0); opacity:1; }
#glk-return-banner .glk-return-inner { display:flex; align-items:center; gap:12px; padding:14px 16px;
  background:#fff; border-radius:12px; box-shadow:0 8px 28px rgba(0,0,0,.18); border:1px solid #e8edee; }
#glk-return-banner .glk-return-icon { background:var(--primary); color:#fff; width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; }
#glk-return-banner .glk-return-text { flex:1; min-width:0; }
#glk-return-banner .glk-return-label { font-size:11px; color:#6b8a99; text-transform:uppercase;
  letter-spacing:.4px; font-weight:600; margin-bottom:2px; }
#glk-return-banner .glk-return-title { font-size:14px; color:#1a3c4d; font-weight:700;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:240px; }
#glk-return-banner .glk-return-cta { background:var(--primary); color:#fff !important; padding:8px 14px;
  border-radius:8px; font-size:13px; font-weight:600; text-decoration:none !important; flex-shrink:0; }
#glk-return-banner .glk-return-cta:hover { background:var(--primary-dark); }
#glk-return-banner .glk-return-close { background:transparent; border:none; color:#999; font-size:22px;
  cursor:pointer; padding:0 4px; line-height:1; }
