/* Jus4Fun — "everything under the sun" */
:root {
  --sun: #f5a623; --sun-dark: #d98c0a; --sky: #1f6f8b; --sky-dark: #154f63; --ink: #1d2730; --ink-soft: #4a5862;
  --paper: #fffdf8; --sand: #fbf3e4; --line: #e8dfcf; --ok: #2f8f5b; --warn: #b7791f; --err: #c0392b;
  --radius: 14px; --shadow: 0 6px 24px rgba(29, 39, 48, .08);
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif; --font: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; height: auto; }
a { color: var(--sky); }
a:hover { color: var(--sky-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 680px; }
.narrow-wide { max-width: 860px; }
.section { padding: 2.5rem 0; }
.section-alt { background: var(--sand); }
.section-title { margin-bottom: 1.25rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.sr { position: absolute; left: -9999px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--sun-dark); margin-bottom: .6rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 60ch; }
.prose :is(h2, h3) { margin-top: 1.5em; }
.prose img { border-radius: 8px; }
.prose.small { font-size: .95rem; }
.prose .lead { font-size: 1.1rem; font-weight: 500; }

/* preview bar */
.preview-bar { background: var(--ink); color: #fff; font-size: .85rem; text-align: center; padding: .35rem; }
.preview-bar a { color: var(--sun); margin: 0 .25rem; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; }
.brand b { color: var(--sun-dark); }
.brand small { font-size: .7em; font-weight: 600; color: var(--sky); margin-left: .1em; }
.brand-sun { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd766, var(--sun) 60%, var(--sun-dark)); box-shadow: 0 0 0 4px rgba(245, 166, 35, .18); }
.mainnav { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }
.mainnav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: .5rem .75rem; border-radius: 999px; }
.mainnav a:hover { background: var(--sand); }
.mainnav .nav-cta { background: var(--ink); color: #fff; }
.mainnav .nav-cta:hover { background: var(--sky-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; position: relative; cursor: pointer; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); top: 18px; transition: .2s; }
.nav-toggle span:first-child::before { top: -7px; } .nav-toggle span:first-child::after { top: 7px; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
  body.nav-open .mainnav { display: flex; }
}

/* crumbs & flashes */
.crumbs { font-size: .88rem; color: var(--ink-soft); padding: .8rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); }
.flashes { margin-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: 10px; margin: .5rem 0; background: #e6f4ec; border: 1px solid #bfe3cd; color: #1d5c3a; }
.flash-warn { background: #fff5e0; border-color: #f3d9a4; color: #7a4d00; }
.flash-error { background: #fdecea; border-color: #f4bdb6; color: #7b1d13; }
.flash ul { margin: 0; padding-left: 1.2rem; }

/* hero */
.hero { position: relative; padding: 4.5rem 0 3.5rem; background: linear-gradient(160deg, #fff4dc 0%, var(--paper) 55%), var(--paper); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, #ffd766 0%, rgba(245, 166, 35, .35) 45%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.hero-stats { color: var(--ink-soft); font-size: .95rem; }
.hero-search { display: flex; gap: .5rem; max-width: 560px; margin: 1.25rem 0; }
.hero-search input { flex: 1; font-size: 1.05rem; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.hero-search input:focus { outline: none; border-color: var(--sun); }
.page-head { padding: 2.5rem 0 1.5rem; background: linear-gradient(160deg, #fff4dc, var(--paper)); }
.page-head .eyebrow a { color: inherit; text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--font); font-size: 1rem; line-height: 1.2; transition: .15s; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--sky-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-dark { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-small { padding: .45rem .9rem; font-size: .9rem; }
.btn-large { padding: .9rem 1.6rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; color: var(--sky); font: inherit; cursor: pointer; text-decoration: underline; }
.btn-link.danger { color: var(--err); }
.chip { display: inline-block; background: var(--sand); border-radius: 999px; padding: .3rem .8rem; text-decoration: none; margin: 0 .3rem .3rem 0; }

/* hub */
.country-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
@media (max-width: 820px) { .country-grid { grid-template-columns: 1fr; } }
.country-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.country-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .75rem; }
.region-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem; }
.region-chips-dense { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.region-chips a { display: flex; gap: .5rem; align-items: baseline; padding: .5rem .7rem; border-radius: 10px; text-decoration: none; color: var(--ink); background: var(--sand); }
.region-chips a:hover { background: #f6e5c2; }
.region-chips b { font-size: .75rem; color: var(--sun-dark); min-width: 2.2em; }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.partner { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--ink); text-align: center; }
.partner img { max-height: 90px; width: auto; margin-bottom: .75rem; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 2rem; margin-block: 2rem; }
.cta-band h2 { color: #fff; } .cta-band p { color: #cfd8de; margin: 0; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.cta-band .btn-ghost-dark { border-color: #6b7a86; color: #fff; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.choice { display: block; padding: 2rem; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.choice:hover { border-color: var(--sun); }

/* country home */
.popular-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.popular h2 { font-size: 1.05rem; }
.popular ul { list-style: none; margin: 0; padding: 0; }
.popular li { padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.popular a { text-decoration: none; }
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.zone h3 { margin-bottom: .5rem; }

/* region page */
.cat-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.cat-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.cat-group h2 { font-size: 1.05rem; }
.cat-group ul { list-style: none; margin: 0; padding: 0; }
.cat-group a { display: flex; justify-content: space-between; padding: .35rem 0; text-decoration: none; border-bottom: 1px dashed var(--line); }
.count { background: var(--sand); color: var(--ink-soft); border-radius: 999px; font-size: .75rem; padding: .05rem .5rem; }
.ad-banner { text-align: center; margin: 1rem 0; }
.ad-banner img { max-height: 120px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 2rem; text-align: center; }

/* category & listing */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; padding: 1.5rem 0 3rem; }
@media (max-width: 900px) { .layout-sidebar { grid-template-columns: 1fr; } }
.area-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.area-filter a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; color: var(--ink); font-size: .9rem; }
.area-filter a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.listing-list { display: grid; gap: 1rem; }
.listing-card { display: grid; grid-template-columns: 180px 1fr; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.listing-card.featured { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(245, 166, 35, .2); }
.listing-card .thumb { display: block; aspect-ratio: 4 / 3; background: var(--sand); }
.listing-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #fbe8c3, #f6d79a); }
.listing-body { padding: 1rem 1.25rem 1rem 0; }
.listing-body h2 { font-size: 1.25rem; margin-bottom: .2rem; }
.listing-body h2 a { text-decoration: none; color: var(--ink); }
.listing-body .meta { color: var(--ink-soft); font-size: .9rem; margin-bottom: .5rem; }
.listing-body .actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin: 0; }
.badge { background: var(--sun); color: var(--ink); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 999px; margin-left: .5rem; font-weight: 700; }
@media (max-width: 600px) { .listing-card { grid-template-columns: 1fr; } .listing-body { padding: 0 1rem 1rem; } }
.sidebar h3 { font-size: 1rem; }
.sidebar h4 { margin: 1rem 0 .3rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; text-decoration: none; padding: .25rem 0; font-size: .95rem; }
.side-list a.on { font-weight: 700; color: var(--ink); }
.listing-detail { padding: 1.5rem 0 0; }
.listing-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem; align-items: start; margin-bottom: 1.5rem; }
.listing-logo { max-width: 140px; max-height: 100px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.gallery-item { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--sand); }
.gallery-item.main { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; align-self: start; position: sticky; top: 84px; }
.contact-box p { margin-bottom: .75rem; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

/* cards (specials) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.special-dates { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sun-dark); font-weight: 700; margin-bottom: .4rem; }
.card .meta { color: var(--ink-soft); font-size: .9rem; margin: .5rem 0 0; }

/* forms */
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; background: #fff; }
.form legend { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; padding: 0 .5rem; }
.form legend small { font-weight: 400; font-family: var(--font); font-size: .85rem; color: var(--ink-soft); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea { width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(31, 111, 139, .15); }
.field small { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: .3rem; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1rem; }
.field.check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.req { color: var(--err); }
.hp { position: absolute; left: -9999px; }
.captcha-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.captcha-row img { border-radius: 8px; border: 1px solid var(--line); cursor: pointer; }
.captcha-row input { max-width: 180px; text-transform: uppercase; letter-spacing: .2em; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 460px; }
.cat-pick details { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .5rem; background: #fff; }
.cat-pick summary { padding: .6rem 1rem; cursor: pointer; font-weight: 600; }
.cat-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .2rem .75rem; padding: .25rem 1rem .9rem; }
.cat-options label { display: flex; gap: .45rem; align-items: baseline; font-size: .95rem; }
.cat-options label.muted { opacity: .6; }
.total { font-size: 1.15rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.photo-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.photo-tile { text-align: center; font-size: .85rem; }

/* tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.table th, .table td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.table .actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }
.status { display: inline-block; font-size: .78rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: var(--sand); }
.status-active { background: #dff3e7; color: #1d5c3a; }
.status-pending { background: #fff1d6; color: #7a4d00; }
.status-suspended, .status-archived, .status-cancelled { background: #eee; color: #555; }
.plain-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.plain-list li { padding: .4rem 0; border-bottom: 1px dashed var(--line); }

/* footer */
.footer { background: var(--ink); color: #c8d1d8; margin-top: 3rem; padding: 3rem 0 1.5rem; }
.footer a { color: #fff; text-decoration: none; display: block; padding: .15rem 0; }
.footer a:hover { color: var(--sun); }
.footer h4 { color: #8d9aa5; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.brand-foot { color: #fff; margin-bottom: .5rem; }
.footer-base { border-top: 1px solid #34424d; margin-top: 2rem; padding-top: 1.25rem; font-size: .85rem; color: #8d9aa5; }

.choice-radio { cursor: pointer; position: relative; padding-left: 3rem; }
.choice-radio input { position: absolute; left: 1.1rem; top: 1.4rem; width: 1.2rem; height: 1.2rem; }
.choice-radio:has(input:checked) { border-color: var(--sun); background: #fffaf0; }
.choice-radio .price { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.choice-radio h3 { margin-bottom: .3rem; }
.choice-radio input:disabled ~ * { opacity: .5; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: 1fr; } }
