/**
 * THE TOWN PAGE (21 Oct 2026) — about, when to visit, plan your days.
 * Built on find-a-trip.css (--sft-* tokens, .sft-card) and area-listings.css.
 * Brand palette only; two-class selectors where the Traveler theme fights.
 */

.stp { display: grid; gap: 56px; }
.stp h2.stp-h2 { margin: 0 0 8px !important; font-size: 28px !important; line-height: 1.25 !important; font-weight: 700 !important; letter-spacing: -.01em !important; text-transform: none !important; color: var(--sft-text-1) !important; text-align: left !important; }
.stp .stp-sub { margin: 0 0 20px; font-size: 15px; color: var(--sft-text-2); max-width: 70ch; }
.stp .stp-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sft-primary); }

/* About: the description reads left, at a comfortable width (it used to be centred). */
.stp .stp-text { max-width: 78ch; font-size: 16px; line-height: 1.75; color: var(--sft-text-2); text-align: left; }
.stp .stp-text * { text-align: left !important; }
.stp .stp-text .elementor-widget-container, .stp .stp-text .elementor-section .elementor-container { max-width: none; }
.stp .stp-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.stp .stp-fact {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 16px;
  background: #fff; border: 1px solid var(--sft-border); border-radius: 14px; font-size: 14px; color: var(--sft-text-1);
}
.stp .stp-fact b { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sft-text-3); }

/* When to visit: 12 month tiles, coloured by mood (brand palette tints). */
.stp .stp-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.stp button.stp-month {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 86px; padding: 10px 10px 12px !important; border-radius: 14px !important;
  border: 1px solid var(--sft-border) !important; background: var(--stp-tint, #fff) !important;
  color: var(--sft-text-1) !important; cursor: pointer; text-align: left; text-transform: none !important;
  letter-spacing: 0 !important; font-family: inherit; box-shadow: none !important; line-height: 1.25 !important;
}
.stp button.stp-month:hover { border-color: var(--stp-ink, var(--sft-primary)) !important; }
.stp button.stp-month.is-on { border: 2px solid var(--stp-ink, var(--sft-primary)) !important; padding: 9px 9px 11px !important; }
.stp .stp-month__m { font-size: 14px; font-weight: 700; }
.stp .stp-month__mood { font-size: 11.5px; font-weight: 600; color: var(--stp-ink, var(--sft-text-2)); }
.stp button.stp-month.is-now::after {
  content: 'now'; position: absolute; top: 8px; right: 8px; font-size: 10px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--sft-primary); border-radius: 999px; padding: 1px 6px;
}
.stp .stp-month__crowd { position: absolute; bottom: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; }
.stp .stp-crowd--busy { background: #FFB700; }
.stp .stp-crowd--lively { background: #7700FF; opacity: .5; }
.stp .stp-crowd--quiet { background: #30B300; }

/* No light yellow or beige behind words (Chiran, 3 Nov 2026): the sun and heritage months were #FFF7DB / #F4EFE4.
   Two light purples, a touch apart from festival's, so the months still read differently. */
.stp-mood--sun, .stp-mood--golden, .stp-mood--harvest { --stp-tint: #F8F3FF; --stp-ink: #5A00C8; }
.stp-mood--green, .stp-mood--wellness { --stp-tint: #EAF7E4; --stp-ink: #237A00; }
.stp-mood--mist, .stp-mood--quiet { --stp-tint: #F1F1F6; --stp-ink: #3D3D5C; }
.stp-mood--festival, .stp-mood--pilgrim { --stp-tint: #F3ECFF; --stp-ink: #7700FF; }
.stp-mood--ocean, .stp-mood--surf { --stp-tint: #E7F0FD; --stp-ink: #0050D8; }
.stp-mood--wild, .stp-mood--heritage { --stp-tint: #F1EAFB; --stp-ink: #4B2A7A; }

.stp .stp-month-detail {
  margin-top: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--sft-border);
  border-left: 4px solid var(--sft-primary); border-radius: 14px; font-size: 15px; line-height: 1.6; color: var(--sft-text-2);
}
.stp .stp-month-detail[hidden] { display: none; }
.stp .stp-month-detail p { margin: 0 0 6px; }
.stp .stp-month-detail p:last-child { margin-bottom: 0; }
.stp .stp-md-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--sft-text-1); }
.stp .stp-md-crowd { font-size: 13px; color: var(--sft-text-3); }
.stp .stp-md-sun { color: #237A00; font-weight: 600; }

/* Plan your days: tabs, filters, 4 cards to a row, centred. */
.stp .stp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 16px; }
.stp button.stp-tab {
  padding: 10px 18px !important; border-radius: 999px !important; border: 1px solid var(--sft-border) !important;
  background: #fff !important; color: var(--sft-text-2) !important; font-size: 14px !important; font-weight: 600 !important;
  line-height: 1.2 !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important;
}
.stp button.stp-tab span { opacity: .65; font-weight: 500; margin-left: 4px; }
.stp button.stp-tab.is-on { background: var(--sft-primary) !important; border-color: var(--sft-primary) !important; color: #fff !important; }
.stp .stp-pane[hidden] { display: none; }
.stp .stp-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 20px; }
.stp .stp-filter { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sft-text-3); }
.stp .stp-filter select {
  min-width: 150px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--sft-border);
  background: #fff; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--sft-text-1);
}
.stp .sft-grid.stp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: center; gap: 20px; }
.stp .stp-grid.is-loading { opacity: .5; }
.stp .stp-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; font-size: 13px; color: var(--sft-text-2); }
.stp .stp-rate { color: #9C7A00; font-weight: 700; }
.stp .stp-rate small { color: var(--sft-text-3); font-weight: 500; }
.stp .stp-from b { color: var(--sft-text-1); }
.stp .stp-days { font-weight: 600; color: var(--sft-text-1); }
.stp .sft-card-img { position: relative; }
.stp .stp-feat {
  position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px;
  background: #FFB700; color: #090920; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.stp .stp-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.stp .stp-count { margin: 0; font-size: 13px; color: var(--sft-text-3); }
.stp button.stp-more-btn {
  padding: 12px 28px !important; border-radius: 999px !important; border: 1px solid var(--sft-primary) !important;
  background: #fff !important; color: var(--sft-primary) !important; font-size: 14px !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important;
}
.stp button.stp-more-btn:hover { background: #F3ECFF !important; }
.stp button.stp-more-btn[hidden] { display: none; }
.stp .stp-none { grid-column: 1 / -1; margin: 0; padding: 24px; text-align: center; color: var(--sft-text-3); }

@media (max-width: 1100px) {
  .stp .sft-grid.stp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stp .stp-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.stp .stp-filter--dd { position: relative; }
/* the plain drop-down stays for the value only (finish list row 8, 3 Nov 2026) */
.stp .stp-filter .stp-native { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; clip: rect(0 0 0 0); }
.stp .stp-dd { position: relative; }
.stp button.stp-dd__b {
  display: flex !important; align-items: center; justify-content: space-between; gap: 10px; min-width: 150px; width: 100%; height: 40px;
  padding: 0 12px !important; margin: 0; border-radius: 10px !important; border: 1px solid var(--sft-border) !important; background: #fff !important;
  font-family: inherit; font-size: 14px !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important;
  color: var(--sft-text-1) !important; box-shadow: none !important; cursor: pointer; text-align: left; line-height: 1.2;
}
.stp button.stp-dd__b:hover { border-color: #C9B3F5 !important; }
.stp button.stp-dd__b[aria-expanded="true"], .stp button.stp-dd__b:focus-visible { border-color: #7700FF !important; outline: 2px solid #7700FF; outline-offset: 1px; }
.stp .stp-dd__b .stp-dd__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stp .stp-dd__b .svgico { width: 18px; height: 18px; color: #6B7280; flex: none; }
.stp .stp-dd__pop { position: absolute; left: 0; min-width: 100%; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid #E6E3EE; border-radius: 12px; box-shadow: 0 12px 32px rgba(9, 9, 32, .12); max-height: 260px; overflow-y: auto; }
.stp .stp-dd__pop[hidden] { display: none; }
.stp .stp-dd__o { margin: 0; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #090920; cursor: pointer; white-space: nowrap; }
.stp .stp-dd__o:hover { background: #F5EEFF; }
.stp .stp-dd__o.is-on { color: #7700FF; font-weight: 600; background: #F5EEFF; }

@media (max-width: 782px) {
  .stp { gap: 40px; }
  .stp .sft-grid.stp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stp .stp-months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stp h2.stp-h2 { font-size: 22px !important; }
  .stp .stp-filter, .stp button.stp-dd__b { min-width: 0; width: 100%; }
  .stp .stp-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .stp .sft-grid.stp-grid { grid-template-columns: minmax(0, 1fr); }
  .stp .stp-months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Hero: the same height as the search pages (~295px) — it was 612px because
   the location template pads its title twice (100px + 80px). */
body.single-location .banner .banner-content { padding: 0 !important; }
body.single-location .banner h1 { padding: 20px 0 !important; margin: 0 !important; }
/* The town description comes from Elementor, which adds its own side padding
   and a tall top gap — line it up with the headings instead. */
.sarea--town { padding-top: 32px !important; }
.stp .stp-text .elementor-section, .stp .stp-text .elementor-container, .stp .stp-text .elementor-column,
.stp .stp-text .elementor-widget-wrap, .stp .stp-text .elementor-element, .stp .stp-text .elementor-widget-container,
.stp .stp-text .e-con, .stp .stp-text .e-con-inner { padding: 0 !important; margin: 0 !important; width: auto !important; max-width: none !important; }
body.single-location .st-blog { padding-top: 0 !important; }
body.single-location .sarea.sarea--town { padding-top: 28px !important; }
/* Four to a row, and a short row sits in the middle (Chiran, 21 Oct 2026). */
.stp .sft-grid.stp-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.stp .sft-grid.stp-grid > .sft-card { flex: 0 0 calc((100% - 60px) / 4); max-width: calc((100% - 60px) / 4); }
.stp .sft-grid.stp-grid > .stp-none { flex: 1 0 100%; }
@media (max-width: 1100px) { .stp .sft-grid.stp-grid > .sft-card { flex-basis: calc((100% - 40px) / 3); max-width: calc((100% - 40px) / 3); } }
@media (max-width: 782px)  { .stp .sft-grid.stp-grid > .sft-card { flex-basis: calc((100% - 12px) / 2); max-width: calc((100% - 12px) / 2); } }
@media (max-width: 480px)  { .stp .sft-grid.stp-grid > .sft-card { flex-basis: 100%; max-width: 100%; } }
/* Cards fill from the left, four to a row, then the next row (Chiran, 21 Oct 2026 — not centred). */
.stp .sft-grid.stp-grid { justify-content: flex-start; }

/* ---------- Don't miss: 3 highlight cards ---------- */
.stp .stp-hls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.stp a.stp-hl {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sft-border); border-radius: 18px;
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--sft-shadow);
  transition: transform 200ms var(--sft-ease), box-shadow 200ms var(--sft-ease);
}
.stp a.stp-hl:hover { transform: translateY(-2px); box-shadow: var(--sft-shadow-hover); }
.stp .stp-hl-img { display: block; aspect-ratio: 16 / 9; background: var(--sft-primary-ultra); overflow: hidden; }
.stp .stp-hl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stp .stp-hl-img--event {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #E4D2FF 0%, #F8F3FF 100%); color: #7700FF; /* one colour family, no yellow (3 Nov 2026) */
}
.stp .stp-hl-img--event .svgico { width: 40px; height: 40px; }
.stp .stp-hl-months { padding: 4px 12px; border-radius: 999px; background: #7700FF; color: #fff; font-size: 13px; font-weight: 700; }
.stp .stp-hl-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.stp .stp-hl-kind { align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.stp .stp-hl-kind--heritage   { background: #F1EAFB; color: #4B2A7A; }
.stp .stp-hl-kind--nature     { background: #EAF7E4; color: #237A00; }
.stp .stp-hl-kind--culture    { background: #F3ECFF; color: #7700FF; }
.stp .stp-hl-kind--experience { background: #F8F3FF; color: #5A00C8; }
.stp .stp-hl-kind--town       { background: #F1F1F6; color: #3D3D5C; }
.stp .stp-hl-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--sft-text-1); }
.stp .stp-hl-line { font-size: 14px; line-height: 1.5; color: var(--sft-text-2); }
@media (max-width: 900px) { .stp .stp-hls { grid-template-columns: minmax(0, 1fr); } }
/* The small purple line above a heading (Chiran, 21 Oct 2026): smaller, tight
   to its heading (25px line), and 20px between the heading and the text below. */
.stp p.stp-eyebrow {
    font-size: 11px !important;
    line-height: 25px !important;
    margin: 0 !important;
    letter-spacing: .1em !important;
    font-weight: 500 !important;
    color: var(--sft-primary) !important;
}
.stp p.stp-eyebrow + h2.stp-h2 { margin-top: 0 !important; }
.stp h2.stp-h2 { margin-bottom: 20px !important; }

/* Don't miss: only the title leaves the page (new tab, with its icon); the card itself does nothing. */
.stp div.stp-hl { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sft-border); border-radius: 18px; overflow: hidden; box-shadow: var(--sft-shadow); }
.stp a.stp-hl-title, .stp button.stp-hl-title--btn {
  display: inline; font-size: 18px !important; font-weight: 700 !important; line-height: 1.3 !important; color: var(--sft-text-1) !important;
  text-decoration: none !important; background: none !important; border: 0 !important; padding: 0 !important; text-align: left;
  text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important; font-family: inherit !important;
}
.stp a.stp-hl-title:hover, .stp button.stp-hl-title--btn:hover { color: var(--sft-primary) !important; text-decoration: underline !important; }
.stp .stp-hl-ext { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--sft-primary); }
.stp .stp-hl-ext .svgico { width: 15px; height: 15px; }
.stp button.stp-hl-trips {
  align-self: flex-start; margin-top: 6px; padding: 8px 16px !important; border-radius: 999px !important;
  background: var(--sft-primary) !important; color: #fff !important; border: 0 !important; font-size: 13px !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important; font-family: inherit !important;
}
.stp button.stp-hl-trips:hover { background: #6400d6 !important; }

/* Search, the "includes" chip and Clear filters. */
.stp .stp-filter--search input {
  min-width: 220px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--sft-border);
  background: #fff; font-size: 14px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--sft-text-1);
}
.stp button.stp-clear {
  height: 40px; padding: 0 16px !important; border-radius: 999px !important; border: 1px solid var(--sft-primary) !important;
  background: #fff !important; color: var(--sft-primary) !important; font-size: 13px !important; font-weight: 700 !important;
  text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; box-shadow: none !important;
}
.stp button.stp-clear[hidden] { display: none; }
.stp .stp-include-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: -8px 0 16px; padding: 6px 8px 6px 14px; border-radius: 999px;
  background: #F3ECFF; color: #7700FF; font-size: 13px; font-weight: 700;
}
.stp .stp-include-chip[hidden] { display: none; }
.stp button.stp-include-x {
  width: 24px; height: 24px; padding: 0 !important; border-radius: 50% !important; border: 0 !important; background: #fff !important;
  color: #7700FF !important; font-size: 16px !important; line-height: 1 !important; cursor: pointer;
}
@media (max-width: 782px) { .stp .stp-filter--search { grid-column: 1 / -1; } .stp .stp-filter--search input { min-width: 0; width: 100%; } }
/* The theme's button/paragraph rules flattened these two — defend them. */
.stp div.stp-hl button.stp-hl-trips { line-height: 1.2 !important; padding: 9px 18px !important; min-height: 36px; margin-top: 8px !important; }
.stp p.stp-include-chip { padding: 6px 8px 6px 14px !important; margin: -6px 0 18px !important; line-height: 1.3 !important; }
