/* ================================================================
   Saranda 420 Travel — Tourist Brochure Design
   Croatian palette: red + Adriatic blue + warm cream
   ================================================================ */

:root {
  --bg:           #fdfaf8;
  --bg-alt:       #f5efea;
  --white:        #ffffff;
  --ink:          #1a0a0e;
  --ink-mid:      #4a2830;
  --ink-light:    #7a5860;
  --border:       #d9c4c0;

  /* Croatian red — primary accent, warnings */
  --alb:           #cc1520;
  --alb-dark:      #a01018;
  --alb-bg:        #fdf0f0;
  --alb-border:    #f0b8bc;

  /* Adriatic blue — links, info */
  --sea:          #1b5e8f;
  --sea-dark:     #124570;
  --sea-bg:       #e4f0f8;
  --sea-border:   #a8cce4;

  /* Green — CBD legal status */
  --ok:           #2a7044;
  --ok-bg:        #e8f5ee;
  --ok-border:    #9edbba;

  /* Amber — caution */
  --amber:        #c07010;
  --amber-bg:     #fdf6e5;
  --amber-border: #f0d090;

  --max: 54rem;
  --f:   'Lato', Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f);
  font-size: 1rem;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a   { color: var(--sea); }
a:hover { text-decoration: underline; color: var(--sea-dark); }
p + p { margin-top: .75rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ── NAV ─────────────────────────────── */
.site-nav {
  background: var(--ink);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: .72rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand { color: #fff; font-weight: 900; font-size: .9rem; text-decoration: none; }
.nav-brand em { color: #f0a0a0; font-style: normal; }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a {
  color: #b89890; font-size: .81rem; font-weight: 700; text-decoration: none;
  letter-spacing: .03em; text-transform: uppercase; transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; text-decoration: none; }

/* ── HERO ─────────────────────────────── */
.hero-photo {
  background-image:
    linear-gradient(rgba(10,3,5,.52), rgba(10,3,5,.62)),
    url('https://images.pexels.com/photos/30238170/pexels-photo-30238170.jpeg?auto=compress&cs=tinysrgb&w=1400&fit=crop');
  background-size: cover; background-position: center 45%;
  min-height: 88vh; display: flex; align-items: center;
  padding: 4rem 0 3rem;
}
.hero-inner { color: #fff; }
.hero-flag  { font-size: 2.5rem; margin-bottom: 1rem; }
.hero-inner h1 {
  font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; line-height: 1.15;
  margin-bottom: .6rem; letter-spacing: -.01em;
}
.hero-inner h1 em { color: #f0a0a0; font-style: normal; }
.hero-tagline { font-size: 1.05rem; color: rgba(255,255,255,.82); margin-bottom: 1.75rem; max-width: 32rem; }

.hero-card {
  background: rgba(255,255,255,.96); border-left: 5px solid var(--alb);
  border-radius: 4px; padding: 1rem 1.25rem; max-width: 32rem; margin-bottom: 1.75rem;
}
.hero-card-label { font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--alb); margin-bottom: .3rem; }
.hero-card p { font-size: .92rem; line-height: 1.6; color: var(--ink); margin: 0; }

.hero-cta {
  display: inline-block; background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,.5); padding: .6rem 1.4rem;
  border-radius: 3px; font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.hero-cta:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); text-decoration: none; color: #fff; }
.hero-updated { display: block; margin-top: 1rem; font-size: .72rem; color: rgba(255,255,255,.42); }

/* ── SECTIONS ─────────────────────────── */
.section     { padding: 3rem 0; background: var(--bg); }
.section-alt { padding: 3rem 0; background: var(--bg-alt); }
.section-rule { border: none; border-top: 1px solid var(--border); margin: 0; }

h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.75rem); font-weight: 900; line-height: 1.2;
  color: var(--ink); margin-bottom: 1rem;
}
h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.section-sub { font-size: .93rem; color: var(--ink-mid); margin-bottom: 1.5rem; max-width: 36rem; line-height: 1.65; }

/* ── STATUS TABLE ─────────────────────── */
.status-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); font-size: .9rem; background: var(--white); margin-bottom: 1rem; }
.status-table th { background: var(--ink); color: #fff; text-align: left; padding: .6rem .9rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.status-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.status-table tr:last-child td { border-bottom: none; }
.status-table tr:nth-child(even) td { background: #faf5f3; }
.s-no     { color: var(--alb);    font-weight: 700; }
.s-caution{ color: var(--amber); font-weight: 700; }
.s-ok     { color: var(--ok);    font-weight: 700; }
.table-note { font-size: .73rem; color: var(--ink-light); }

/* ── BOXES ────────────────────────────── */
.warn-box {
  border-left: 4px solid var(--alb); background: var(--cr-bg); border-radius: 3px;
  padding: .9rem 1.1rem; font-size: .9rem; color: var(--ink); line-height: 1.65; margin: 1.25rem 0;
}
.info-box {
  border-left: 4px solid var(--sea); background: var(--sea-bg); border-radius: 3px;
  padding: .9rem 1.1rem; font-size: .9rem; color: var(--ink); line-height: 1.65; margin: 1.25rem 0;
}
.ok-box {
  border-left: 4px solid var(--ok); background: var(--ok-bg); border-radius: 3px;
  padding: .9rem 1.1rem; font-size: .9rem; color: var(--ink); line-height: 1.65; margin: 1.25rem 0;
}

/* ── REALITY ──────────────────────────── */
.reality-body { max-width: 38rem; font-size: .95rem; color: var(--ink-mid); line-height: 1.75; }

/* ── CBD GRID ─────────────────────────── */
.cbd-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; margin-bottom: 1.25rem; }
@media (min-width: 520px) { .cbd-grid { grid-template-columns: 1fr 1fr 1fr; } }
.cbd-card { background: var(--white); border: 1px solid var(--border); padding: .9rem 1rem; border-radius: 3px; font-size: .86rem; color: var(--ink-mid); line-height: 1.6; }
.cbd-card strong { color: var(--ink); display: block; margin-bottom: .3rem; }

/* ── TEXT ALTERNATIVES ────────────────── */
.alt-text-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: .5rem; }
.alt-text-item { display: flex; gap: 1rem; align-items: flex-start; }
.alt-text-icon { font-size: 1.4rem; flex-shrink: 0; width: 2rem; text-align: center; margin-top: .1rem; }
.alt-text-item > div { flex: 1; }
.alt-text-item strong { display: block; font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: .25rem; }
.alt-text-item p { font-size: .88rem; color: var(--ink-mid); line-height: 1.7; margin: 0; }

/* ── COMMENTS ─────────────────────────── */
.comments-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.comment-card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 1rem 1.1rem; }
.comment-card.pinned { border-left: 4px solid var(--alb); background: var(--cr-bg); }
.c-header { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; margin-bottom: .6rem; }
.c-name  { font-weight: 700; font-size: .88rem; }
.c-tag   { font-size: .7rem; color: var(--ink-light); background: var(--bg-alt); border: 1px solid var(--border); padding: 1px .38rem; border-radius: 2px; }
.c-date  { font-size: .7rem; color: var(--ink-light); margin-left: auto; }
.c-text  { font-size: .875rem; color: var(--ink-mid); line-height: 1.7; }
.c-pin-badge { font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--alb); background: #fde8e8; padding: 1px .38rem; border-radius: 2px; }

/* ── COMMENT FORM ─────────────────────── */
.comment-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; }
.comment-form-wrap h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.form-note { font-size: .78rem; color: var(--ink-light); margin-bottom: 1.25rem; line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.form-group label { font-size: .76rem; font-weight: 700; color: var(--ink); }
.req { color: var(--alb); }
.form-group input, .form-group textarea {
  font-family: var(--f); font-size: .9rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: 3px; padding: .5rem .75rem;
  outline: none; resize: vertical; transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 2px rgba(27,94,143,.1); }
.char-count { font-size: .67rem; color: var(--ink-light); text-align: right; margin-top: 2px; }
.btn-submit {
  width: 100%; background: var(--alb); color: #fff; border: none; border-radius: 3px;
  padding: .75rem 1.5rem; font-family: var(--f); font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.btn-submit:hover { background: var(--cr-dark); }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.success-check { font-size: 2rem; margin-bottom: .75rem; }
.form-success h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.form-success p { color: var(--ink-light); font-size: .88rem; }
.formspree-tip { margin-top: 1rem; font-size: .75rem; color: var(--ink-light); border-top: 1px solid var(--border); padding-top: .75rem; line-height: 1.5; }

/* ── DISCLAIMER ───────────────────────── */
.disclaimer-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; font-size: .86rem; color: var(--ink-mid); line-height: 1.75; }
.disclaimer-box h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.disclaimer-box p + p { margin-top: .6rem; }

/* ── FOOTER ───────────────────────────── */
.site-footer { background: var(--ink); color: #8a7a7a; padding: 2.5rem 0; font-size: .82rem; }
.footer-inner { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand { color: #fff; font-weight: 900; margin-bottom: .2rem; }
.footer-brand em { color: #f0a0a0; font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links a { color: #8a7a7a; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-legal { color: #5a3a3a; font-size: .72rem; line-height: 1.6; }
@media (min-width: 560px) { .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; } }

/* ── TRAVEL-SAFETY PAGE ───────────────── */
.breadcrumb { font-size: .78rem; color: var(--ink-light); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--sea); }
.breadcrumb span { margin: 0 .35rem; }

.photo-strip {
  height: 160px; background-size: cover; background-position: center;
  border-radius: 4px; overflow: hidden; position: relative;
  margin-bottom: 1.5rem; display: flex; align-items: flex-end;
}
.photo-strip::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,3,5,.76) 0%, rgba(10,3,5,.2) 65%);
}
.photo-strip-label { position: relative; z-index: 1; padding: .9rem 1.1rem; color: #fff; }
.photo-strip-label h2 { font-size: 1.2rem; color: #fff; margin-bottom: .15rem; }
.photo-strip-label p { font-size: .75rem; color: rgba(255,255,255,.7); margin: 0; }

.safety-content { max-width: 40rem; }
.safety-content h3 { margin-top: 1.5rem; }
.safety-content p { font-size: .93rem; color: var(--ink-mid); line-height: 1.75; }
.safety-content ul { font-size: .9rem; color: var(--ink-mid); line-height: 1.8; padding-left: 1.4rem; margin: .6rem 0 1rem; }

.misc-item { padding: .75rem 0; border-bottom: 1px solid var(--border); }
.misc-item:last-child { border-bottom: none; }
.misc-myth { font-weight: 700; color: var(--alb); font-size: .88rem; margin-bottom: .25rem; }
.misc-fact { font-size: .87rem; color: var(--ink-mid); line-height: 1.65; }

.mini-alt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (min-width: 480px) { .mini-alt-grid { grid-template-columns: repeat(3, 1fr); } }
.mini-alt { background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: .6rem .75rem; font-size: .82rem; color: var(--ink-mid); line-height: 1.5; }
.mini-alt strong { display: block; color: var(--ink); font-size: .8rem; margin-bottom: 2px; }

.cta-banner { background: var(--sea-bg); border: 1px solid var(--sea-border); border-radius: 4px; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.cta-banner-text { font-size: .92rem; font-weight: 700; color: var(--ink); }
.cta-banner-sub { font-size: .8rem; color: var(--ink-mid); margin-top: 2px; }
.btn-sea { display: inline-block; background: var(--sea); color: #fff; padding: .55rem 1.1rem; border-radius: 3px; font-weight: 700; font-size: .85rem; text-decoration: none; white-space: nowrap; transition: background .15s; }
.btn-sea:hover { background: var(--sea-dark); text-decoration: none; color: #fff; }

/* ── ADMIN ────────────────────────────── */
.admin-body { background: #f0ede8; min-height: 100vh; font-family: var(--f); }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.admin-login-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 2.5rem 2rem; max-width: 22rem; width: 100%; text-align: center; }
.admin-login-card h1 { font-size: 1.1rem; margin-bottom: .3rem; }
.admin-login-sub { font-size: .8rem; color: var(--ink-light); margin-bottom: 1.5rem; }
.admin-bar { background: var(--ink); padding: .7rem 1.25rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.admin-bar-title { color: #fff; font-size: .88rem; font-weight: 900; }
.btn-logout { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .75rem; font-weight: 700; padding: .33rem .7rem; border-radius: 3px; cursor: pointer; }
.btn-logout:hover { background: rgba(255,255,255,.2); }
.admin-panel { max-width: 52rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.admin-tabs { display: flex; gap: 2px; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.admin-tab { padding: .55rem 1.1rem; background: none; border: none; font-family: var(--f); font-size: .82rem; font-weight: 700; color: var(--ink-light); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s; }
.admin-tab:hover { color: var(--ink); }
.admin-tab.active { color: var(--alb); border-bottom-color: var(--alb); }
.admin-tab-panel { display: none; }
.admin-tab-panel.active { display: block; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem; }
.card + .card { margin-top: 1rem; }
.card-title { font-size: .88rem; font-weight: 900; color: var(--ink); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border); }
.flag-row { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.flag-btn { font-size: .85rem; padding: .15rem .4rem; border: 1px solid var(--border); border-radius: 3px; cursor: pointer; background: var(--white); transition: background .1s; user-select: none; }
.flag-btn:hover { background: var(--bg-alt); }
.btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem 1.1rem; border-radius: 3px; border: none; font-family: var(--f); font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .15s; text-decoration: none; }
.btn-red { background: var(--alb); color: #fff; }
.btn-red:hover { background: var(--cr-dark); color: #fff; }
.btn-outline { background: var(--white); color: var(--sea); border: 1px solid var(--sea); }
.btn-outline:hover { background: var(--sea-bg); }
.btn-green { background: var(--ok); color: #fff; }
.btn-green:hover { background: #1f5432; }
.btn-sm { padding: .3rem .7rem; font-size: .75rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.preview-label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-light); margin-bottom: .5rem; }
.html-output { background: #1a0a0e; color: #90e890; border-radius: 4px; padding: 1rem; font-family: monospace; font-size: .75rem; line-height: 1.55; white-space: pre-wrap; word-break: break-all; margin-top: .5rem; max-height: 260px; overflow-y: auto; }
.copy-btn { margin-top: .4rem; padding: .35rem .75rem; background: var(--sea); color: #fff; border: none; border-radius: 3px; font-family: var(--f); font-size: .75rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.copy-btn:hover { background: var(--sea-dark); }
.copy-btn.ok { background: var(--ok); }
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: .7rem; align-items: flex-start; padding: .65rem 0; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--ink-mid); line-height: 1.6; }
.steps li:last-child { border: none; }
.steps li::before { content: counter(s); background: var(--alb); color: #fff; border-radius: 50%; width: 1.4rem; height: 1.4rem; min-width: 1.4rem; display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 900; margin-top: .1rem; }
.admin-info-box { background: var(--sea-bg); border: 1px solid var(--sea-border); border-radius: 3px; padding: .75rem 1rem; font-size: .83rem; color: var(--ink-mid); line-height: 1.6; margin-bottom: 1.25rem; }
.check-row { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.check-row input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--alb); }
.check-row label { font-size: .82rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.edit-input-area { font-family: 'Courier New', monospace; font-size: .75rem; background: #f7f4f0; border: 1px solid var(--border); border-radius: 3px; padding: .75rem; min-height: 180px; resize: vertical; width: 100%; outline: none; line-height: 1.55; }
.edit-input-area:focus { border-color: var(--sea); }
.form-group-admin { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .75rem; }
.form-group-admin label { font-size: .73rem; font-weight: 700; color: var(--ink); }
.form-group-admin input, .form-group-admin textarea, .form-group-admin select {
  font-family: var(--f); font-size: .88rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: 3px; padding: .45rem .7rem;
  width: 100%; outline: none; resize: vertical; transition: border-color .15s;
}
.form-group-admin input:focus, .form-group-admin textarea:focus { border-color: var(--sea); }
.form-row-admin { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .form-row-admin { grid-template-columns: 1fr; } }

/* ── SARANDA: visible FAQ section ─── */
.faq-visible { display: flex; flex-direction: column; gap: 1.25rem; }
.faq-item-vis {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--alb);
  border-radius: 3px;
  padding: 1rem 1.25rem;
}
.faq-q { font-size: .92rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.faq-a { font-size: .87rem; color: var(--ink-mid); line-height: 1.7; }

/* ── two-column FAQ on desktop ─────── */
@media (min-width: 640px) {
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.faq-grid { display: flex; flex-direction: column; gap: 1rem; }

/* ── Corfu callout ─────────────────── */
.corfu-box {
  background: #f5f0ea;
  border: 1px solid #d0c0b0;
  border-left: 4px solid #c07000;
  border-radius: 3px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: .9rem;
  color: var(--ink-mid);
  line-height: 1.65;
}
.corfu-box strong { color: var(--ink); }

/* ── INDEX page photo elements ─────── */
.index-photo-strip {
  height: 220px;
  background-size: cover;
  background-position: center;
  display: block;
}

/* Three-photo grid */
.photo-trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .5rem;
  margin-bottom: .25rem;
}

@media (max-width: 480px) {
  .photo-trio { grid-template-columns: 1fr; }
  .index-photo-strip { height: 180px; }
}

.photo-trio-card {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.photo-trio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,3,4,.72) 0%, rgba(10,3,4,.1) 60%);
}

.photo-trio-label {
  position: relative;
  z-index: 1;
  padding: .6rem .75rem;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
