/* ── ThaiStay99 — Custom CSS ─────────────────────────────────────────────── */

/* ── CSS Variables ── */
:root {
  --primary:       #1B5C46;
  --primary-dark:  #134534;
  --primary-light: #2a7a5e;
  --accent:        #C49A28;
  --terra:         #C8796B;
}

/* ── Thai ornament divider ── */
.thai-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);
}

/* ── Thai pattern background ── */
.thai-pattern-bg {
  background-image: url('/static/img/thai-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"] .thai-divider { letter-spacing: 0; }

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