/* Stay In Tramore website: styles for the town pages. One file per area (kingnail/guidebook#11) so jobs that work side by side never edit the same lines of site.css. Loaded after site.css on every page; keep every rule scoped to this area. */

/* Things to do and Bites and sips: each place a card in rows, as the old site lays them out (kingnail/guidebook#19;
   Dara: "the items should appear in rows, like in the Squarespace website"): one a row on phones, three from 768 px,
   four from 1280 px; the photo on top, square; then the name, where, the lines and the links. */
.guide .seemap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; }
.guide .seemap:hover { background: var(--wave); }
.guide .entries { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(20px, 2.6vw, 30px); padding-bottom: clamp(56px, 8vw, 96px); align-items: stretch; }
@media (min-width: 768px) { .guide .entries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .guide .entries { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.guide { --card: #f4eafb; --card-shade: 74, 40, 140; }
/* Cards (Dara, 24 Nov: "more pinky-purple, which is more inviting"; the links "just look like plain HTML"): a warm lilac
   card with a soft shadow, a pin by the address, and the actions as white pill buttons with icons, held at the foot of
   every card so they line up across a row. */
.guide .entry { display: flex; flex-direction: column; scroll-margin-top: 20px; background: var(--card); border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(var(--card-shade), .06), 0 10px 26px -14px rgba(var(--card-shade), .22); transition: transform .18s ease, box-shadow .18s ease; }
.guide .entry:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(var(--card-shade), .08), 0 16px 34px -14px rgba(var(--card-shade), .3); }
@media (prefers-reduced-motion: reduce) { .guide .entry { transition: none; } .guide .entry:hover { transform: none; } }
.guide .entry img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--band); }
.guide .entry > div { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 20px 20px; }
.guide .entry h2 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); line-height: 1.15; letter-spacing: -.01em; }
.guide .entry .where { display: flex; align-items: flex-start; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--accent-text); }
.guide .entry .where::before { content: ""; flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.guide .entry .say { font-size: .96rem; line-height: 1.6; color: var(--ink-2); min-height: 0; }
.guide .entry .tag { align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: rgba(107, 87, 224, .1); color: var(--accent-text); font-size: .8rem; font-weight: 500; line-height: 1.3; }
.guide .entry .credit { font-size: .75rem; color: var(--ink-2); }
.guide .entry .credit a { color: inherit; }
.guide .entry .links { display: flex; flex-direction: column; margin-top: auto; border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 1px rgba(107, 87, 224, .14), 0 1px 3px rgba(var(--card-shade), .07); }
.guide .entry > div > .links { margin-top: auto; }
.guide .entry > div > .say { margin-bottom: 8px; }
.guide .entry .links a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; color: var(--accent-text); font: 500 .92rem var(--font-body); text-decoration: none; transition: background .15s ease, color .15s ease; }
.guide .entry .links a + a { border-top: 1px solid rgba(107, 87, 224, .12); }
.guide .entry .links a:hover { background: #f8f2fe; color: var(--accent-fill); }
.guide .entry .links a:focus-visible { outline-offset: -3px; }
.guide .entry .links a::after { content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-left: auto; background: currentColor; opacity: .55; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.guide .entry .links a::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.guide .entry .links a[rel~="noopener"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E"); }
.guide .entry .links a[href^="/map"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6.5V20l6-2.5 6 2.5 6-2.5V4l-6 2.5L9 4z'/%3E%3Cpath d='M9 4v13.5M15 6.5V20'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6.5V20l6-2.5 6 2.5 6-2.5V4l-6 2.5L9 4z'/%3E%3Cpath d='M9 4v13.5M15 6.5V20'/%3E%3C/svg%3E"); }

/* an article: the places it names, its map links and its contact lines */
.article .inthis { background: var(--band); border-radius: 18px; padding: 18px 20px; display: grid; gap: 10px; }
.article .inthis h2 { font: 500 1.2rem var(--font-display); margin: 0; }
.article .inthis ul { list-style: none; padding: 0; gap: 6px; }
.article .inthis li { font-size: 1rem; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.article .inthis .onmap { font-size: .9rem; color: var(--accent-text); }
.article img.lead-pic { height: auto; border-radius: 14px; }
.article img.pic { max-height: 600px; width: auto; max-width: 100%; justify-self: center; }
.article h3 { font-size: 1.3rem; }
.article .maplink a { color: var(--accent-text); font-weight: 500; }
.article .contactlist { list-style: none; padding: 0; border-top: 1.5px solid var(--line); padding-top: 14px; }
.article .contactlist li { font-size: 1.05rem; }
.article .contactlist span { display: inline-block; min-width: 8.5em; font-weight: 600; }

/* the article list: every card the same height and one picture shape; the large card's picture kept under 600 px */
.newslist .feature img { aspect-ratio: 3 / 2; max-height: 520px; object-fit: cover; }
.newslist .news.three { align-items: stretch; }
.newslist .news.three > a { grid-template-rows: auto auto auto 1fr; height: 100%; }
.newslist .news.three img { aspect-ratio: 3 / 2; height: auto; object-fit: cover; }

/* the category chips and the sort choice just above the cards (kingnail/guidebook#20) */
.guide .guidectl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 6px 0 22px; }
.guide .guidectl .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.guide .guidectl .chips button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--accent-fill); background: var(--paper); color: var(--accent-text); font: 500 .95rem var(--font-body); cursor: pointer; }
.guide .guidectl .chips button[aria-pressed="true"] { background: var(--accent-fill); color: #fff; }
.guide .guidectl .sortby { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.guide .guidectl select { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 .95rem var(--font-body); }
.guide .guidectl .shown { flex-basis: 100%; margin: 0; }


/* three narrow cards a row (768 to 959 px): tighter link rows and no chevron, so "Show on the map" stays on one line */
@media (min-width: 768px) and (max-width: 959px) {
  .guide .entry .links a { gap: 8px; padding: 0 10px; font-size: .88rem; white-space: nowrap; }
  .guide .entry .links a::after { display: none; }
}

/* a place with no photo yet: a square of the site's purples with a drawing of what kind of place it is, so the row of
   cards keeps its shape (kingnail/guidebook#20) */
.guide .entry .nopic { aspect-ratio: 1 / 1; display: grid; place-items: center; background: linear-gradient(140deg, #efe4fb 0%, #ddd5fb 100%); }
.guide .entry .nopic span { width: 34%; aspect-ratio: 1 / 1; background: var(--accent-fill); opacity: .5; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.guide .entry .nopic { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.4-7-11a7 7 0 0 1 14 0c0 4.6-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="walks"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 20l6.5-11 4 6.5 3-4.5L22 20z'/%3E%3Ccircle cx='17' cy='5' r='2'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="beaches"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='17' cy='6' r='2.5'/%3E%3Cpath d='M2 15c2.5 0 2.5-1.8 5-1.8s2.5 1.8 5 1.8 2.5-1.8 5-1.8 2.5 1.8 5 1.8M2 19.5c2.5 0 2.5-1.8 5-1.8s2.5 1.8 5 1.8 2.5-1.8 5-1.8 2.5 1.8 5 1.8'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="water"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 15c2.5 0 2.5-1.8 5-1.8s2.5 1.8 5 1.8 2.5-1.8 5-1.8 2.5 1.8 5 1.8M2 19.5c2.5 0 2.5-1.8 5-1.8s2.5 1.8 5 1.8 2.5-1.8 5-1.8 2.5 1.8 5 1.8M7 11l5-8 5 8z'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="history"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V9h3V5h2v4h2V5h2v4h2V5h2v4h3v12z'/%3E%3Cpath d='M10 21v-4a2 2 0 0 1 4 0v4'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="shops"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 13H6.2z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="pubs"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10l-1.3 18H8.3z'/%3E%3Cpath d='M7.4 8h9.2'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="restaurants"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3v7a2 2 0 0 0 2 2v9M11 3v7a2 2 0 0 1-2 2M17 21V3c-2.2 1.8-3 5-3 8h3'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="takeaway"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3v7a2 2 0 0 0 2 2v9M11 3v7a2 2 0 0 1-2 2M17 21V3c-2.2 1.8-3 5-3 8h3'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="coffee"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9h12v6a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5z'/%3E%3Cpath d='M16 11h1.5a2.5 2.5 0 0 1 0 5H16M8 3c-1 1.3 1 2.2 0 3.5M12 3c-1 1.3 1 2.2 0 3.5'/%3E%3C/svg%3E"); }
.guide .entry .nopic[data-cat="saunas"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3c-1.5 1.7 1.5 3.3 0 5M12 3c-1.5 1.7 1.5 3.3 0 5M16 3c-1.5 1.7 1.5 3.3 0 5M3 12h18v8H3z'/%3E%3C/svg%3E"); }
