/*
Theme Name: GalyaCambodia
Theme URI: https://galyacambodia.com
Description: Personal Cambodia guide by Galya — tour guide in Siem Reap.
Version: 2.0.0
Author: GalyaCambodia
Text Domain: galya
*/
/* All styles are in Tailwind CDN + inline on front-page.
   Additional WP-specific styles below. */

/* ── FONTS ── */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@600,700&f[]=general-sans@400,500,600,700&display=swap');

:root {
  --ink:    #0E2A2B;
  --teal:   #0F766E;
  --teal-d: #0B5C55;
  --coral:  #FF6B4A;
  --coral-d:#E8543A;
  --cream:  #FAF6F0;
  --sand:   #F2EBE0;
  --gold:   #E0A23D;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'General Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
.clash-title { font-family: 'Clash Display', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── SUPPORT RAIL (only one, desktop left) ── */
#galya-support-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--coral);
  color: #fff;
  padding: 14px 7px;
  border-radius: 0 14px 14px 0;
  box-shadow: 0 8px 32px rgba(14,42,43,.2);
  text-decoration: none;
  transition: background .18s;
}
#galya-support-rail:hover { background: var(--coral-d); }
#galya-support-rail .rail-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
@media (min-width: 768px) { #galya-support-rail { display: flex; } }

/* mobile float heart */
#galya-float-heart {
  position: fixed;
  bottom: 84px;
  left: 16px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(14,42,43,.2);
  text-decoration: none;
}
@media (min-width: 768px) { #galya-float-heart { display: none; } }

/* ── DRAWER ── */
#galya-drawer-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(14,42,43,.6);
  backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
#galya-drawer-overlay.open { opacity: 1; pointer-events: auto; }

#galya-drawer {
  position: fixed; top: 0; right: 0; z-index: 201;
  height: 100%; width: 300px; max-width: 88vw;
  background: var(--cream);
  box-shadow: -4px 0 40px rgba(14,42,43,.15);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
}
#galya-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; height: 64px;
  border-bottom: 1px solid var(--sand);
  flex-shrink: 0;
}
.drawer-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  font-size: .95rem; font-weight: 500;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.drawer-nav a:hover { background: rgba(15,118,110,.1); color: var(--teal); }
.drawer-nav .drawer-support {
  background: rgba(255,107,74,.1); color: var(--coral); font-weight: 700;
  margin-top: 4px;
}
.drawer-nav .drawer-support:hover { background: var(--coral); color: #fff; }

/* ── VIDEO MODAL ── */
#galya-video-modal {
  position: fixed; inset: 0;
  background: rgba(14,42,43,.92);
  z-index: 300;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
#galya-video-modal.open { display: flex; }
.galya-modal-inner {
  width: 100%; max-width: 900px;
  border-radius: 16px; overflow: hidden;
  position: relative; aspect-ratio: 16/9; background: #000;
}
.galya-modal-close {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.2); border: none; border-radius: 50%;
  cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background .15s;
}
.galya-modal-close:hover { background: var(--coral); }
#galya-video-iframe { width: 100%; height: 100%; border: none; }

/* ── TOAST ── */
#galya-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff;
  padding: 10px 18px; border-radius: 12px;
  font-size: .88rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s; z-index: 400;
  white-space: nowrap;
}

/* ── SCROLL TOP ── */
#galya-scroll-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--coral); color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(14,42,43,.2);
  opacity: 0; transform: translateY(16px);
  transition: all .3s; pointer-events: none; z-index: 50;
}
#galya-scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#galya-scroll-top:hover { background: var(--coral-d); }

/* ── NOVOSTI (blog) ── */
.galya-post-grid {
  display: grid;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
@media (min-width: 640px) { .galya-post-grid { padding-left: 28px; padding-right: 28px; } }
@media (min-width: 768px) { .galya-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .galya-post-grid { grid-template-columns: repeat(3, 1fr); padding-left: 40px; padding-right: 40px; } }

.galya-post-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 16px rgba(14,42,43,.06);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.galya-post-card:hover { box-shadow: 0 10px 40px rgba(14,42,43,.13); transform: translateY(-2px); }

.galya-post-thumb {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
}
.galya-post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.galya-post-card:hover .galya-post-thumb img { transform: scale(1.04); }

.galya-post-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.galya-post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: rgba(14,42,43,.5); margin-bottom: 10px;
}
.galya-post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.galya-post-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  line-height: 1.35; color: var(--ink);
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.galya-post-excerpt {
  font-size: .88rem; color: rgba(14,42,43,.65); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1; margin-bottom: 14px;
}
.galya-post-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--teal);
  transition: gap .15s;
}
.galya-post-link:hover { gap: 10px; }

/* single post */
.galya-single { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.galya-single-hero { border-radius: 18px; overflow: hidden; margin-bottom: 28px; }
.galya-single-hero img { width: 100%; max-height: 480px; object-fit: cover; }
.galya-single-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: rgba(14,42,43,.5); margin-bottom: 14px; flex-wrap: wrap; }
.galya-single h1 { font-family: 'Clash Display', sans-serif; font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; line-height: 1.2; margin-bottom: 24px; }
.galya-single .entry-content { font-size: 1rem; line-height: 1.8; color: rgba(14,42,43,.8); }
.galya-single .entry-content p { margin-bottom: 18px; }
.galya-single .entry-content h2 { font-family: 'Clash Display', sans-serif; font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; }
.galya-single .entry-content img { border-radius: 14px; margin: 20px 0; }
.galya-single .entry-content a { color: var(--teal); text-decoration: underline; }

/* breadcrumb */
.galya-breadcrumb { font-size: .82rem; color: rgba(14,42,43,.5); margin-bottom: 20px; }
.galya-breadcrumb a { color: var(--teal); }
.galya-breadcrumb a:hover { text-decoration: underline; }

/* archive header */
.galya-archive-header {
  background: var(--ink); color: #fff;
  padding: 56px 20px 40px;
  text-align: center;
}
.galya-archive-header h1 { font-family: 'Clash Display', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; }
.galya-archive-header p { margin-top: 10px; opacity: .7; font-size: .97rem; }

/* page-ekskursii gallery */
.tours-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin: 24px 0; }
@media (min-width: 640px) { .tours-gallery { grid-template-columns: repeat(3, 1fr); } }
.tours-gallery img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* page-ekskursii tour cards */
.tour-card {
  background: #fff; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--sand);
  box-shadow: 0 2px 16px rgba(14,42,43,.06);
  transition: box-shadow .2s, transform .2s;
}
.tour-card:hover { box-shadow: 0 10px 40px rgba(14,42,43,.13); transform: translateY(-2px); }
.tour-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tour-card-body { padding: 20px; }
.tour-card-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(15,118,110,.1); color: var(--teal); margin-bottom: 8px; }
.tour-card-title { font-family: 'Clash Display', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.tour-card-desc { font-size: .9rem; color: rgba(14,42,43,.65); line-height: 1.65; margin-bottom: 14px; }
.tour-card-price { font-size: .88rem; font-weight: 700; color: var(--coral); }

/* WP editor styles */
.wp-block-image img { border-radius: 14px; }

/* ── TAILWIND COLOR FALLBACKS (for non-front-page templates) ── */
/* These ensure bg-teal, bg-ink etc work in ekskursii, novosti etc */
.bg-teal-solid    { background: #0F766E; }
.bg-ink-solid     { background: #0E2A2B; }
.bg-coral-solid   { background: #FF6B4A; }
.text-white-f     { color: #fff; }

/* Fix: Angkor banner teal gradient — Tailwind CDN classes may not compile 
   These inline classes force the gradient regardless */
[style*="background:linear-gradient"] { color: #fff !important; }

/* Telegram dark section — force bg when Tailwind doesn't load */
.section-chats-bg { 
  background: #0E2A2B !important; 
}
.tg-chat-link-dark {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  color: #fff;
  transition: background .15s;
}
.tg-chat-link-dark:hover { background: rgba(255,255,255,.12); }

/* HERO — compact v2 */
.ek-hero{background:linear-gradient(120deg,#0B5C55 0%,#0F766E 60%,#128074 100%);color:#fff;position:relative;overflow:hidden}
.ek-hero::after{content:'';position:absolute;left:-80px;top:-80px;width:300px;height:300px;background:rgba(255,255,255,.04);border-radius:50%;pointer-events:none}
.ek-hero-inner{position:relative;z-index:2;display:grid;gap:0;align-items:end;grid-template-columns:1fr}
@media(min-width:900px){.ek-hero-inner{grid-template-columns:1.3fr .7fr}}
.ek-hero-left{padding:56px 0 52px}
.ek-badge{display:inline-flex;align-items:center;gap:7px;background:rgba(0,0,0,.22);color:#fff;padding:7px 16px;border-radius:999px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;margin-bottom:18px}
.ek-h1{font-family:'Clash Display',sans-serif;font-size:clamp(2.2rem,4.5vw,3.4rem);font-weight:700;line-height:1.08;margin:0 0 16px;color:#fff}
.ek-lead{font-size:1.1rem;line-height:1.7;max-width:520px;margin:0 0 22px;color:rgba(255,255,255,.88)}
.ek-trustline{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-bottom:28px;font-size:1rem;font-weight:600;color:rgba(255,255,255,.92)}
.ek-trustline .sep{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.4)}
.ek-btn-primary{display:inline-flex;align-items:center;gap:10px;background:#FF6B4A;color:#fff;padding:17px 32px;border-radius:15px;font-weight:800;font-size:1.12rem;text-decoration:none;box-shadow:0 8px 28px rgba(255,107,74,.45);transition:background .18s,transform .18s}
.ek-btn-primary:hover{background:#E8543A;transform:translateY(-2px)}
.ek-btn-ghost{display:inline-flex;align-items:center;gap:8px;color:#fff;padding:17px 10px;font-weight:700;font-size:1.05rem;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(255,255,255,.4);transition:text-decoration-color .15s}
.ek-btn-ghost:hover{text-decoration-color:#fff}
.ek-hero-right{display:none;align-items:flex-end;justify-content:center}
@media(min-width:900px){.ek-hero-right{display:flex}}
.ek-hero-photo{width:100%;max-width:380px;display:block;transform:scaleX(-1);margin-bottom:-4px}

/* Gallery mosaic */
.ek-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: 220px 180px;
}
@media (max-width: 640px) {
  .ek-gallery { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .ek-gallery-big { grid-column: span 2 !important; }
}
.ek-gallery-big { grid-column: span 2; grid-row: span 1; }
.ek-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }

/* Tour card grid */
.ek-tours-grid {
  display: grid; gap: 20px;
}
@media (min-width: 640px)  { .ek-tours-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .ek-tours-grid { grid-template-columns: repeat(2,1fr); } }

.ek-tour-card {
  background: #fff; border-radius: 20px;
  overflow: hidden;
  border: 1px solid #F2EBE0;
  box-shadow: 0 2px 20px rgba(14,42,43,.07);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.ek-tour-card:hover { box-shadow: 0 12px 40px rgba(14,42,43,.14); transform: translateY(-3px); }

.ek-tour-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ek-tour-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ek-tour-tag {
  display: inline-block; font-size: .72rem; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(15,118,110,.1); color: #0F766E;
  margin-bottom: 10px;
}
.ek-tour-tag.coral { background: rgba(255,107,74,.1); color: #FF6B4A; }
.ek-tour-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3;
}
.ek-tour-desc { font-size: .92rem; color: rgba(14,42,43,.65); line-height: 1.65; margin-bottom: 14px; flex: 1; }
.ek-tour-metas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ek-tour-meta {
  font-size: .72rem; font-weight: 600;
  background: #F2EBE0; color: rgba(14,42,43,.6);
  padding: 3px 10px; border-radius: 999px;
}
.ek-tour-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid #F2EBE0;
}
.ek-price { font-family:'Clash Display',sans-serif; font-size: 1.1rem; font-weight: 700; color: #0F766E; }
.ek-price-note { font-size: .75rem; color: rgba(14,42,43,.45); }
.ek-book-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FF6B4A; color: #fff;
  padding: 9px 18px; border-radius: 12px;
  font-weight: 700; font-size: .85rem;
  text-decoration: none; transition: background .15s;
  white-space: nowrap;
}
.ek-book-btn:hover { background: #E8543A; }

/* Featured tour card */
.ek-featured-card {
  background: linear-gradient(135deg, #0E2A2B, #1a3d3e);
  color: #fff; border-radius: 20px; padding: 32px;
  grid-column: span 2;
  display: grid; gap: 24px;
  box-shadow: 0 12px 48px rgba(14,42,43,.25);
}
@media (min-width: 768px) { .ek-featured-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.ek-featured-card .ek-tour-title { font-size: 1.5rem; color: #fff; }
.ek-featured-card .ek-tour-desc { color: rgba(255,255,255,.8); }
.ek-featured-badge {
  display: inline-block; background: #FF6B4A; color: #fff;
  font-size: .7rem; font-weight: 800; padding: 3px 10px;
  border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em;
}

/* Why Galya section */
.ek-why-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2,1fr);
}
@media (min-width: 768px) { .ek-why-grid { grid-template-columns: repeat(4,1fr); } }
.ek-why-card {
  background: #fff; border-radius: 16px; padding: 22px 18px;
  text-align: center;
  border: 1px solid #F2EBE0;
  box-shadow: 0 2px 12px rgba(14,42,43,.05);
}
.ek-why-icon { font-size: 2rem; margin-bottom: 10px; }
.ek-why-title { font-family:'Clash Display',sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.ek-why-text { font-size: .82rem; color: rgba(14,42,43,.6); line-height: 1.5; }

/* CTA section */
.ek-cta {
  background: linear-gradient(135deg, #0F766E, #0B5C55);
  border-radius: 20px; padding: 44px 32px;
  text-align: center; color: #fff;
}
.ek-cta h2 { font-family:'Clash Display',sans-serif; font-size: clamp(1.5rem,3.5vw,2rem); font-weight: 700; margin-bottom: 12px; }
.ek-cta p { opacity: .88; font-size: .97rem; max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }
.ek-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Review cards */
.ek-reviews-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .ek-reviews-grid { grid-template-columns: repeat(3,1fr); } }
.ek-review {
  background: #fff; border-radius: 16px; padding: 22px;
  border: 1px solid #F2EBE0;
  box-shadow: 0 2px 12px rgba(14,42,43,.05);
}
.ek-stars { color: #E0A23D; font-size: 1rem; margin-bottom: 10px; }
.ek-review-text { font-size: .88rem; color: rgba(14,42,43,.7); line-height: 1.65; margin-bottom: 12px; font-style: italic; }
.ek-review-author { font-size: .78rem; font-weight: 700; color: rgba(14,42,43,.5); }

/* ── CONTENT IMAGE CAPTIONS (inside post body) ── */
.sp-content .wp-caption { max-width: 100% !important; }
.sp-content .wp-caption img { border-radius: 14px; margin-bottom: 4px; }
.sp-content .wp-caption-text {
  font-size: .78rem;
  color: rgba(14,42,43,.45);
  text-align: right;
  font-style: italic;
  margin-top: 0;
  padding-right: 2px;
}

/* ── NOVOSTI pagination fix ── */
.nv-pagination { list-style: none; padding: 0; margin: 0; }

@media(min-width:768px){
    .hotels-top-row{grid-template-columns:1fr 1fr!important}
    .hotels-bottom-row{grid-template-columns:1fr 1fr!important}
  }
