/* elgounaGuide. The design system follows wanderlog.com's (measured 2026-10-09):
   Source Sans Pro 16/24, text #212529, primary #3f52e3, orange #f75940, light #f3f4f5,
   borders #dee2e6, 8px radius, 24px pills, h2 24px/700 -0.03em, item titles 18px/700.
   Light theme only. */
:root {
  --text: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --light: #f3f4f5;
  --primary: #3f52e3;
  --primary-soft: #ebedfc;
  --orange: #f75940;
  --orange-dark: #de503a;
  --orange-soft: #feefed;
  --success: #17b978;
  --danger: #e23e57;
  --warning: #ec9b3b;
  --dark: #343a40;
  --radius: 8px;
  --pill: 24px;
  --float: 0 4px 24px rgba(0, 0, 0, .2);
  --header: 64px;
  --font: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* pin colours by kind, as on the map */
  --k-hotel: #5a378c;
  --k-eat: #e23e57;
  --k-beach: #17a2b8;
  --k-activity: #3f52e3;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }    /* hidden always wins over a display rule */
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/24px var(--font); overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; color: var(--text); }
h1 { font-size: 36px; line-height: 40px; margin: 0 0 12px; }
h2 { font-size: 24px; line-height: 28px; margin: 32px 0 16px; }
h3 { font-size: 18px; line-height: 27px; margin: 0; letter-spacing: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 20px; }
.lede { font-size: 16px; color: var(--text); margin: 0 0 16px; }

/* header: white, logo left, links, search */
.top { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); height: var(--header); }
.top-in { height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.logo { font-weight: 700; font-size: 24px; letter-spacing: -.03em; color: var(--text); white-space: nowrap; }
.logo span { color: var(--orange); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text); padding: 7px 12px; border-radius: var(--pill); font-weight: 700; font-size: 16px; white-space: nowrap; }
.nav a:hover { background: var(--light); text-decoration: none; }
.search-btn { border: 0; background: var(--orange); color: #fff; border-radius: var(--pill); padding: 7px 16px;
  font: 700 16px/24px var(--font); cursor: pointer; white-space: nowrap; }
.search-btn:hover { background: var(--orange-dark); }
@media (max-width: 720px) { .search-btn span { display: none; } .top-in { gap: 10px; padding: 0 16px; } }
/* my trip: the header link, the place page's button, the list items' pin */
.trip-link { color: var(--text); font-weight: 700; padding: 7px 10px; border-radius: var(--pill); white-space: nowrap; }
.trip-link:hover { background: var(--light); text-decoration: none; }
.trip-link b { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: var(--orange);
  color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
@media (max-width: 720px) { .trip-link span { display: none; } }
button.btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.trip-btn[aria-pressed="true"] { background: var(--orange-soft); color: var(--orange); }
.trip-pin { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 16px; line-height: 1; cursor: pointer; filter: grayscale(1); opacity: .7; }
.trip-pin:hover { opacity: 1; filter: none; }
.trip-pin[aria-pressed="true"] { filter: none; opacity: 1; border-color: var(--orange); background: var(--orange-soft); }
.trip-remove { margin-left: auto; flex: none; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.trip-remove:hover { color: var(--danger); }
.trip-msg { color: var(--muted); margin: 0 0 16px; word-break: break-all; }

/* search overlay */
.search-panel { position: fixed; inset: 0; z-index: 50; background: rgba(33, 37, 41, .45); padding: 12vh 16px 16px; }
.search-panel[hidden] { display: none; }
.search-box { max-width: 640px; margin: 0 auto; display: flex; gap: 8px; }
.search-box input { flex: 1; font: 18px/24px var(--font); padding: 14px 18px; border-radius: var(--radius); border: 0; background: #fff;
  color: var(--text); box-shadow: var(--float); outline: none; }
.search-close { border: 0; background: #fff; color: var(--muted); border-radius: var(--radius); width: 52px; font-size: 18px; cursor: pointer; box-shadow: var(--float); }
.search-results { list-style: none; max-width: 640px; margin: 8px auto 0; padding: 0; background: #fff; border-radius: var(--radius);
  box-shadow: var(--float); overflow: hidden; max-height: 60vh; overflow-y: auto; }
.search-results:empty { display: none; }
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; color: var(--text); border-bottom: 1px solid var(--line); }
.search-results a:hover, .search-results a.on { background: var(--light); text-decoration: none; }
.search-results .ico { width: 36px; height: 36px; font-size: 18px; }

/* layout: content pane left (60%), map right */
main { min-height: 60vh; }
.wrap, .narrow { max-width: 1140px; margin: 0 auto; padding: 24px 24px 48px; }
.narrow { max-width: 788px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); }
.split-list { min-width: 0; padding: 0 0 48px; }
.pane { padding: 0 16px; }
.split-map { order: -1; height: 260px; position: relative; }
@media (min-width: 992px) {
  .split { grid-template-columns: minmax(0, 60%) minmax(0, 40%); }
  .pane { padding: 0 64px; }
  .split-map { order: 0; position: sticky; top: var(--header); height: calc(100vh - var(--header)); }
  .split.solo { grid-template-columns: minmax(0, 1fr); max-width: 940px; margin: 0 auto; }   /* a page without a map */
}
.split-map .map { position: absolute; inset: 0; }
.pane > h1:first-child, .pane > .crumbs:first-child { margin-top: 24px; }

/* hero: a photo with the title over it, full width of the pane */
.hero { position: relative; min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 48px 24px; color: #fff; background: var(--dark) center / cover no-repeat; margin-bottom: 24px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); }
.hero > * { position: relative; max-width: 620px; }
.hero h1 { color: #f3f4f5; font-size: 48px; line-height: 52px; letter-spacing: .02em; text-transform: uppercase; margin: 0 0 12px; }
.hero h1.long { font-size: 34px; line-height: 40px; text-transform: none; letter-spacing: -.01em; }
.hero p { color: #fff; margin: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.hero .crumbs, .hero .crumbs a { color: rgba(255, 255, 255, .9); }
.hero .hero-meta { margin-top: 8px; font-weight: 700; }
.hero-search { margin-top: 20px; width: 100%; max-width: 420px; text-align: left; font: 16px/24px var(--font); padding: 12px 18px;
  border-radius: var(--radius); border: 0; background: #fff; color: var(--muted); box-shadow: var(--float); cursor: text; }
.hero .credit { position: absolute; right: 10px; bottom: 6px; font-size: 12px; color: rgba(255, 255, 255, .8); max-width: none; }
@media (max-width: 720px) { .hero { min-height: 240px; } .hero h1 { font-size: 34px; line-height: 38px; } .hero h1.long { font-size: 26px; line-height: 32px; } }

/* chips: orange pills, as Wanderlog's "What to do / Where to eat" */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 16px 7px 12px; border-radius: var(--pill);
  background: var(--orange-soft); color: var(--orange); font-size: 16px; line-height: 24px; white-space: nowrap; }
.chip:hover { background: #fde0db; text-decoration: none; }
.filters .chip { border: 1px solid transparent; font-family: inherit; cursor: pointer; }
.filters .chip .muted { font-size: 14px; }
.filters .chip[aria-pressed="true"] { background: var(--orange); color: #fff; }
.filters .chip[aria-pressed="true"] .muted { color: rgba(255, 255, 255, .85); }
.filter-note { margin: -4px 0 16px; color: var(--muted); }
.filter-note button { border: 0; background: none; padding: 0; font: inherit; color: var(--primary); cursor: pointer; }

/* category tiles: light grey, emoji + label, as Wanderlog's categories */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius); background: var(--light); color: var(--text); }
.tile:hover { background: #e9ecef; text-decoration: none; }
.tile .ico { width: 28px; height: 28px; background: none; font-size: 20px; }
.tile .muted { margin-left: auto; }

/* section heading with a "see all" link */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sec-head h2 { margin-bottom: 8px; }
.sec-head a { font-weight: 700; color: var(--text); white-space: nowrap; }

/* numbered list items: pin number + title, meta, text; photo on the right */
.items { display: grid; gap: 0; }
.item { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.item[hidden] { display: none; }
.item:last-child { border-bottom: 0; }
.item-text { flex: 1; min-width: 0; }
.item-title { display: flex; align-items: center; gap: 8px; }
.item-title a { color: var(--text); }
.item-meta { color: var(--muted); font-size: 14px; line-height: 20px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.item-text p { margin: 8px 0 0; }
.item-img { flex: none; width: 147px; height: 147px; border-radius: var(--radius); overflow: hidden; background: var(--light); align-self: flex-start; margin-top: 4px; }
.item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 560px) { .item-img { width: 96px; height: 96px; } .item { gap: 12px; } }

/* the map-pin number: a teardrop like Wanderlog's markers, coloured by kind */
.pin { flex: none; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--primary);
  display: inline-grid; place-items: center; }
.pin b { transform: rotate(45deg); color: #fff; font-size: 13px; line-height: 1; }
.pin.k-hotel { background: var(--k-hotel); } .pin.k-eat { background: var(--k-eat); }
.pin.k-beach { background: var(--k-beach); } .pin.k-activity { background: var(--k-activity); }

/* compact cards: nearby places, small lists */
.cards { display: grid; gap: 8px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: flex; gap: 12px; align-items: center; min-width: 0; color: var(--text); padding: 4px; border-radius: var(--radius); }
.card:hover { background: var(--light); text-decoration: none; }
.card-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.card-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { color: var(--muted); font-size: 14px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.card-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; line-height: 20px; }
.card-row:empty { display: none; }
.dist { color: var(--muted); }
.thumb { flex: none; width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--light); }
.ico { flex: none; width: 72px; height: 72px; border-radius: var(--radius); display: grid; place-items: center; font-size: 28px; background: var(--light); }
.badge { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: var(--pill); font-size: 12px; line-height: 20px;
  font-weight: 700; vertical-align: middle; background: #fdf1e2; color: #a86412; }

/* open / closed */
.status { font-weight: 700; font-size: 14px; }
.status.open { color: var(--success); }
.status.closed { color: var(--muted); }
.status:empty { display: none; }

/* place page */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
.about p { margin: 0 0 12px; }
.highlights { margin: 0 0 16px; padding-left: 20px; }
.highlights li { margin: 4px 0; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 8px 0 16px; }
.fact { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.fact:last-child { border-bottom: 0; }
.fact > span:first-child { color: var(--muted); font-size: 14px; min-width: 110px; }
.fact b { font-weight: 400; }
.facts:empty { display: none; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.btn { padding: 7px 16px; border-radius: var(--pill); background: var(--light); color: var(--text); font-weight: 700; }
.btn:hover { background: #e9ecef; text-decoration: none; }
.btns .btn:first-child { background: var(--orange); color: #fff; }
.btns .btn:first-child:hover { background: var(--orange-dark); }

/* lead form (a button set to "a form") */
.lead { background: var(--light); border-radius: 12px; padding: 16px 18px; margin: 16px 0 24px; }
.lead h2 { margin-top: 0; }
.lead label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.lead input, .lead textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 8px 10px;
  border: 1px solid #ced4da; border-radius: 8px; font: inherit; font-weight: 400; background: #fff; }
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .lead-row { grid-template-columns: 1fr; } }
.lead .btn { border: 0; cursor: pointer; background: var(--orange); color: #fff; font: inherit; font-weight: 700; }
.lead .btn:disabled { opacity: .6; }
.lead-msg { margin: 10px 0 0; font-weight: 600; }
.lead.sent label, .lead.sent .btn { display: none; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--text); }

/* events */
.events { display: grid; gap: 0; }
.event { padding: 12px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event-when { font-size: 14px; font-weight: 700; color: var(--orange); }
.event-name { font-weight: 700; font-size: 18px; line-height: 27px; }
.event-where { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.event-where a { color: var(--primary); }
.tag { background: var(--light); border-radius: 4px; padding: 0 6px; font-size: 12px; color: var(--muted); }
.event[hidden] { display: none; }
.event-name a { color: var(--text); }
.event-about { color: var(--text); font-size: 15px; margin: 2px 0 4px; }
.event-meta { color: var(--muted); font-size: 14px; }

/* photo strip on a hotel page */
.gallery { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 16px; scroll-snap-type: x mandatory; }
.gallery a { flex: 0 0 auto; scroll-snap-align: start; }
.gallery img { display: block; width: 200px; height: 131px; object-fit: cover; border-radius: var(--radius); }
ul.plain.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-bottom: 16px; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 560px; }
.tbl th, .tbl td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl thead th { font-size: 13px; color: var(--muted); font-weight: 700; background: var(--light); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.now { background: var(--orange-soft); }
.bar { display: inline-block; width: 56px; height: 8px; border-radius: 4px; margin-right: 8px; vertical-align: 1px;
  background: linear-gradient(90deg, var(--primary) calc(var(--v) * 1%), var(--line) 0); }
.note { color: var(--muted); font-size: 14px; line-height: 20px; margin: 10px 0 0; }

/* guide tiles: photo cards, as Wanderlog's guides and itineraries */
.gtiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); margin-bottom: 8px; }
.gtile { display: flex; flex-direction: column; gap: 2px; color: var(--text); }
.gtile:hover { text-decoration: none; }
.gtile:hover b { text-decoration: underline; }
.gtile img, .gtile-blank { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--light); display: block; margin-bottom: 8px; }
.gtile b { font-size: 18px; line-height: 24px; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* map */
.map { width: 100%; height: 100%; background: var(--light); }
.map.tall { height: 420px; border-radius: var(--radius); overflow: hidden; }
.maplibregl-popup-content { border-radius: var(--radius) !important; padding: 10px 14px !important; font: 15px/20px var(--font); color: var(--text); box-shadow: var(--float) !important; }
.maplibregl-popup-content a { font-weight: 700; color: var(--text); }
.maplibregl-popup-content span { display: block; color: var(--muted); font-size: 13px; }

/* place pages: the place as a large named pin, a legend over the map */
.mainpin { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.mainpin-dot { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); background: var(--primary); margin-bottom: 4px; }
.mainpin.k-hotel .mainpin-dot { background: var(--k-hotel); } .mainpin.k-eat .mainpin-dot { background: var(--k-eat); }
.mainpin.k-beach .mainpin-dot { background: var(--k-beach); } .mainpin.k-activity .mainpin-dot { background: var(--k-activity); }
.mainpin-name { order: -1; margin-bottom: 6px; background: #fff; color: var(--text); font: 700 14px/20px var(--font); padding: 2px 10px;
  border-radius: var(--pill); box-shadow: var(--float); white-space: nowrap; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.map-caption { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--float); padding: 8px 12px; font-size: 14px; line-height: 20px; }
.map-caption b { font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legend .k-hotel::before { background: var(--k-hotel); } .legend .k-eat::before { background: var(--k-eat); }
.legend .k-beach::before { background: var(--k-beach); } .legend .k-activity::before { background: var(--k-activity); }
.legend .kc::before, .mainpin.kc .mainpin-dot { background: var(--kc); }    /* kinds made in the editor */
.legend .ring::before { border: 2px dashed var(--orange); background: rgba(247, 89, 64, .08); width: 12px; height: 12px; }
@media (max-width: 991px) { .map-caption { top: 8px; left: 8px; right: 8px; padding: 6px 10px; } .map-caption .legend { display: none; } }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--light); }
.foot-in { max-width: 1140px; margin: 0 auto; padding: 24px 24px 40px; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: underline; }

/* lists in a guide's text blocks */
ul.bul { margin: 0 0 12px; padding-left: 22px; }
ul.bul li { margin: 0 0 6px; }
.tbl th a { font-weight: 700; }
