:root {
  --wine: #7b2d3e;
  --wine-dark: #5a1f2d;
  --forest: #2d5a3d;
  --forest-light: #3d7a52;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --text: #2c2419;
  --text-muted: #6b5d4f;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(44, 36, 25, 0.1);
  --shadow-lg: 0 8px 40px rgba(44, 36, 25, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Rubik", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  direction: rtl;
}

a {
  color: var(--wine);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--wine-dark) 0%, var(--wine) 50%, var(--forest) 100%);
  color: var(--white);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo:hover {
  color: var(--gold-light);
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(255, 255, 255, 0.15);
  color: var(--gold-light);
}

.new-page {
  padding-bottom: 3rem;
}

.new-updates-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.new-update-card h2 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
}

.new-update-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.new-update-badge {
  background: var(--forest);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.new-update-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.new-update-links {
  margin: 0.75rem 0 0;
  padding-right: 1.25rem;
}

.new-update-links li {
  margin-bottom: 0.35rem;
}

.driver-card {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.driver-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.driver-region {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Hero */
.hero {
  background: linear-gradient(180deg, rgba(90, 31, 45, 0.85) 0%, rgba(45, 90, 61, 0.75) 100%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/d/d2/Mestia%2C_evening.jpg/960px-Mestia%2C_evening.jpg")
      center / cover;
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: 0.25rem;
}

.hero-dates {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--gold);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--text);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  color: var(--wine-dark);
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Map */
.map-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

.route-mode-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--cream-dark);
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 15%, transparent);
}

.route-mode-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.route-mode-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  background: var(--white);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-muted) 18%, transparent);
}

.route-mode-btn {
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.route-mode-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.route-mode-btn.active {
  background: var(--primary);
  color: var(--white);
}

.route-mode-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.route-mode-divider {
  width: 1px;
  height: 1.5rem;
  background: color-mix(in srgb, var(--text-muted) 22%, transparent);
  flex-shrink: 0;
}

.map-extreme-toggle.active {
  background: color-mix(in srgb, var(--gold) 18%, var(--white));
  color: var(--forest);
}

.map-legend-extreme {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding: 0.65rem 1rem;
  margin-top: 0.5rem;
  background: color-mix(in srgb, var(--cream-dark) 70%, var(--white));
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.map-legend-extreme[hidden] {
  display: none !important;
}

.map-legend-extreme-title {
  font-weight: 600;
  color: var(--text-muted);
}

.map-legend-extreme-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat-color, #666) 12%, var(--white));
  border: 1px solid color-mix(in srgb, var(--cat-color, #666) 35%, transparent);
}

.poi-popup-link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.route-mode-status {
  font-size: 0.78rem;
  color: var(--text-muted);
}

#route-map {
  height: 520px;
  width: 100%;
}

.user-locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  transition: background 0.15s, color 0.15s, opacity 0.15s;
}

.user-locate-btn:hover {
  background: color-mix(in srgb, #2563eb 10%, var(--white));
}

.user-locate-btn.is-active {
  background: #2563eb;
  color: var(--white);
}

.user-locate-btn.is-error {
  background: #fee2e2;
}

.user-locate-btn.is-loading {
  opacity: 0.6;
  cursor: wait;
}

.user-location-wrap {
  background: transparent !important;
  border: none !important;
}

.user-location-dot {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.user-location-pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  animation: user-location-pulse 2s ease-out infinite;
}

@keyframes user-location-pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.poi-popup-distance,
.places-item-distance {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
}

.poi-popup-distance {
  margin-top: 0.15rem;
}

.places-item-distance {
  display: block;
  margin-top: 0.15rem;
}

.poi-list-distance {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2563eb;
}

.map-legend {
  padding: 1rem 1.5rem;
  background: var(--cream-dark);
}

.map-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.legend-day-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border-radius: var(--radius-sm);
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.legend-day-item:hover {
  background: color-mix(in srgb, var(--day-color, #999) 12%, rgba(255, 255, 255, 0.6));
  color: inherit;
}

.legend-day-item--booked {
  background: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.28);
}

.legend-day-item--open {
  background: rgba(255, 167, 38, 0.1);
  border-color: rgba(230, 140, 0, 0.28);
}

.legend-day-line {
  width: 4px;
  min-height: 36px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-day-text {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--text-muted);
  gap: 0.12rem;
  min-width: 0;
}

.legend-day-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
}

.legend-day-text strong {
  color: var(--day-color, var(--text));
  font-size: 0.88rem;
}

.legend-day-date {
  font-size: 0.78rem;
}

/* מספרים ולטינית בתוך טקסט RTL – בידוד דו-כיווני כדי שהמרחק לא "יקפוץ" לסוף השורה */
.ltr-num {
  direction: ltr;
  unicode-bidi: isolate;
}

.legend-day-stat {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.legend-overnight {
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.day-lodging-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid transparent;
}

.day-lodging-badge--booked {
  color: #0d4f14;
  background: #c8e6c9;
  border-color: #66bb6a;
}

.day-lodging-badge--open {
  color: #7a3d00;
  background: #ffe0b2;
  border-color: #ffb74d;
}

.map-legend-notes {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.map-legend-notes span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trip-options {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--cream-dark, #f3efe6);
  border-radius: var(--radius, 12px);
  border: 1px solid color-mix(in srgb, var(--wine, #7b2d3e) 12%, transparent);
}

.trip-options-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.trip-options-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.trip-options-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.85rem;
}

.trip-option-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm, 10px);
  border: 2px solid color-mix(in srgb, var(--wine, #7b2d3e) 18%, #ddd);
  background: var(--white, #fff);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  font: inherit;
  color: inherit;
}

.trip-option-card--primary {
  flex: 1 1 280px;
  min-width: min(100%, 260px);
}

.trip-option-card--alt {
  flex: 0 1 200px;
  max-width: 230px;
  min-width: 160px;
  padding: 0.7rem 0.8rem;
  gap: 0.25rem;
  border-width: 1.5px;
  border-color: color-mix(in srgb, var(--text-muted, #888) 35%, #ddd);
  background: color-mix(in srgb, var(--cream-dark, #f3efe6) 55%, #fff);
}

.trip-option-card--alt .trip-option-name {
  font-size: 0.92rem;
}

.trip-option-card--alt .trip-option-km {
  font-size: 0.8rem;
}

.trip-option-card--alt .trip-option-blurb,
.trip-option-card--alt .trip-option-highlight,
.trip-option-card--alt .trip-option-subkm {
  font-size: 0.78rem;
  line-height: 1.35;
}

.trip-option-card:hover {
  border-color: color-mix(in srgb, var(--wine, #7b2d3e) 45%, #ccc);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.trip-option-card.is-selected {
  border-color: var(--wine, #7b2d3e);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wine, #7b2d3e) 18%, transparent);
}

.trip-option-card--alt.is-selected {
  border-color: color-mix(in srgb, var(--wine, #7b2d3e) 70%, #888);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--wine, #7b2d3e) 12%, transparent);
}

.trip-option-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  color: #1b5e20;
  background: rgba(46, 125, 50, 0.12);
}

.trip-option-badge--alt {
  color: #5c4a2a;
  background: rgba(140, 120, 80, 0.14);
}

.trip-option-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.trip-option-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--wine, #7b2d3e);
}

.trip-option-km {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

.trip-option-blurb {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}

.trip-option-highlight {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.trip-option-subkm {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.day-option-badge {
  display: inline-block;
  margin: 0.35rem 0 0.6rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 500;
}

.segment-label-wrap,
.overnight-marker-wrap,
.place-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.segment-label {
  transform: translate(-50%, -50%);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.measure-route-label {
  font-size: 12px;
  padding: 3px 10px;
}

.overnight-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #7b2d3e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  line-height: 1;
}

.overnight-marker-icon {
  font-size: 18px;
  line-height: 1;
}

.place-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.place-marker-optional {
  width: 12px;
  height: 12px;
  border-style: dashed;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 1px 4px rgba(0, 0, 0, 0.25);
}

.place-marker.inline {
  display: inline-block;
  background: var(--forest);
  width: 10px;
  height: 10px;
  vertical-align: middle;
}

.place-marker.inline.place-marker-optional {
  border-style: dashed;
  background: var(--gold);
}

.place-tooltip {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.segment-tooltip {
  background: rgba(44, 36, 25, 0.88);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
}

.leaflet-container {
  font-family: var(--font);
}

/*
 * Leaflet ממקם tooltips ב-transform בלבד, בלי left. בעמוד RTL נקודת ההתחלה של
 * האלמנט היא הקצה הימני, ולכן כל תווית "נתלית" שמאלה ברוחב שלה. נעיגן שמאלה כמו הסמנים.
 */
.leaflet-tooltip {
  left: 0;
  right: auto;
}


/* Day cards grid */
.days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.day-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.day-card-thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--forest-light);
}

.day-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.day-card-header {
  background: linear-gradient(135deg, var(--wine) 0%, var(--forest) 100%);
  color: var(--white);
  padding: 1rem 1.25rem;
}

.day-card-num {
  font-size: 0.85rem;
  opacity: 0.85;
}

.day-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.25rem 0 0;
}

.day-card-title-link {
  color: inherit;
  text-decoration: none;
}

.day-card-title-link:hover {
  text-decoration: underline;
  opacity: 0.95;
}

.day-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.day-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.day-card-summary {
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}

.day-card-overnight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-size: 0.85rem;
  background: var(--cream);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid transparent;
}

.day-card-overnight:has(.day-lodging-badge--booked) {
  background: rgba(46, 125, 50, 0.08);
  border-color: rgba(46, 125, 50, 0.25);
}

.day-card-overnight:has(.day-lodging-badge--open) {
  background: rgba(255, 167, 38, 0.1);
  border-color: rgba(230, 140, 0, 0.25);
}

.day-card-overnight-place {
  flex: 1 1 auto;
  min-width: 0;
}

.day-meta-row .day-lodging-badge {
  margin-inline-start: 0.35rem;
  vertical-align: middle;
}

.day-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Day detail page */
.day-hero {
  background: linear-gradient(135deg, var(--wine-dark), var(--forest));
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 2.5rem 2rem;
  min-height: 220px;
}

.day-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.day-hero .breadcrumb {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.day-hero .breadcrumb a {
  color: var(--gold-light);
}

.day-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.day-meta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  opacity: 0.9;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2rem 0 3rem;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.2rem;
  color: var(--wine-dark);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cream-dark);
}

.day-summary {
  margin-top: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.activity-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-dark);
}

.activity-item.has-image {
  grid-template-columns: 200px 1fr;
}

@media (max-width: 640px) {
  .activity-item.has-image {
    grid-template-columns: 1fr;
  }
}

.activity-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.activity-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.activity-item h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--forest);
  flex: 1 1 12rem;
}

.activity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}

.badge-time {
  background: rgba(45, 90, 61, 0.12);
  color: var(--forest);
}

.badge-duration {
  background: rgba(123, 45, 62, 0.1);
  color: var(--wine);
}

.activity-item p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.activity-tips {
  margin: 0.5rem 0 0.75rem;
  padding-right: 1.25rem;
  font-size: 0.88rem;
  color: var(--text);
}

.activity-tips li {
  margin-bottom: 0.25rem;
}

.day-tips {
  margin: 0;
  padding-right: 1.25rem;
  line-height: 1.7;
}

.tips-card {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(45, 90, 61, 0.06));
}

.vehicle-guide-card {
  border-right: 4px solid var(--accent-green, #2d5a3d);
}

.vehicle-day-block {
  margin: 0.75rem 0;
}

.vehicle-day-jeep-required {
  background: rgba(123, 45, 62, 0.06);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.vehicle-day-title {
  margin: 0 0 0.5rem;
}

.vehicle-day-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vehicle-day-list li {
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

.vehicle-tag {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.vehicle-tag-jeep.required {
  color: #7b2d3e;
}

.vehicle-footnote {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

.vehicle-guide-table td {
  vertical-align: top;
  font-size: 0.92rem;
}

.vehicle-guide-table small {
  color: var(--text-muted);
  line-height: 1.45;
}

.vehicle-row-required {
  background: rgba(123, 45, 62, 0.04);
}

.empty-section {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.external-link::after {
  content: "↗";
  font-size: 0.75rem;
}

/* Place cards with images */
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.place-card {
  background: var(--cream);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
}

.place-card:hover {
  transform: scale(1.02);
}

.place-card--traveler {
  border: 1px solid rgba(123, 45, 62, 0.25);
}

.place-card--booked {
  border: 1px solid rgba(46, 125, 50, 0.35);
}

.place-booked-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1b5e20;
  background: rgba(46, 125, 50, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin: 0 0.35rem 0.4rem 0;
}

.place-source-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wine, #7b2d3e);
  background: rgba(123, 45, 62, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.place-card-address {
  font-size: 0.8rem !important;
  color: var(--text-muted);
}

.place-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.35rem;
  align-items: center;
}

.place-map-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--wine, #7b2d3e);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.place-map-btn:hover {
  color: var(--wine-dark, #5a1f2c);
}

.place-map-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  text-decoration: none;
}

.place-card-story-link {
  font-size: 0.8rem;
  color: var(--wine, #7b2d3e);
}

.traveler-tips-block {
  margin-top: 1.5rem;
}

.traveler-tips-title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.traveler-tips-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.traveler-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.traveler-tip-item {
  padding: 0.85rem 1rem;
  background: var(--cream, #faf7f2);
  border-radius: var(--radius-sm, 8px);
  border-right: 3px solid var(--wine, #7b2d3e);
  font-size: 0.92rem;
}

.traveler-tip-address,
.traveler-tip-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.place-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.place-card-body {
  padding: 0.75rem 1rem;
}

.place-card-body h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}

.place-card-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.sidebar-card {
  position: sticky;
  top: 5rem;
}

.sidebar-card .info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.9rem;
}

.sidebar-card .info-row:last-child {
  border-bottom: none;
}

.day-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--cream-dark);
}

.day-nav-top {
  padding: 0 0 1rem;
  margin-bottom: 0.5rem;
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.day-nav-top a {
  color: var(--gold-light);
  font-weight: 600;
}

.day-nav-top a:hover {
  color: var(--white);
}

.day-nav a {
  font-weight: 600;
}

.alt-plan {
  background: var(--cream);
  border-right: 4px solid var(--gold);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 0.75rem;
}

.alt-plan h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.alt-plan p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.alt-overnight {
  margin: 0.5rem 0 0 !important;
  font-size: 0.85rem !important;
  color: var(--forest) !important;
  font-weight: 500;
}

.alt-plan-recommended {
  border-right: 3px solid var(--gold);
  padding-right: 0.75rem;
}

.alt-plan-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

.alt-driving {
  font-size: 0.85rem !important;
  color: var(--forest) !important;
  font-weight: 500;
  margin-bottom: 0.35rem !important;
}

.alt-tips {
  margin: 0.75rem 0 0;
  padding-right: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.alt-activities {
  margin-top: 1rem;
}

.alt-activities h5 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.alt-activities .activities-list {
  margin-top: 0;
}

.alt-plan .external-link {
  display: inline-block;
  margin-top: 0.75rem;
}

/* Logistics */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.tourist-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.logistics-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.logistics-card h2 {
  font-size: 1.15rem;
  color: var(--wine-dark);
  margin: 0 0 1rem;
}

.logistics-card ul {
  margin: 0;
  padding-right: 1.25rem;
}

.logistics-card li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.logistics-tasks-card {
  border-right: 4px solid var(--forest);
}

.logistics-tasks-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1rem;
}

.logistics-tasks-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.logistics-task {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.logistics-task:last-child {
  border-bottom: none;
}

.logistics-task-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  flex: 1;
}

.logistics-task-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--forest);
}

.logistics-task-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logistics-task-text strong {
  font-size: 1rem;
}

.logistics-task-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.logistics-task-link {
  font-size: 0.85rem;
  white-space: nowrap;
  align-self: center;
}

.logistics-task-done .logistics-task-text strong,
.logistics-task-done .logistics-task-note {
  opacity: 0.55;
  text-decoration: line-through;
}

.logistics-task-done .logistics-task-link {
  opacity: 0.7;
}

.operator-card {
  border-right: 4px solid var(--forest);
}

.operator-contact,
.operator-tours ul {
  margin: 0 0 1rem;
  padding-right: 1.25rem;
}

.operator-contact li,
.operator-tours li {
  margin-bottom: 0.5rem;
}

.operator-tour-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.operator-camping {
  margin: 1.25rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.operator-camping h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.operator-lodging {
  margin: 0.75rem 0;
  padding-inline-start: 1.25rem;
}

.operator-lodging li {
  margin-bottom: 0.5rem;
}

.operator-home-btn {
  margin-top: 0.5rem;
}

.operator-tours-table small {
  color: var(--text-muted);
}

.culinary-card {
  border-right-color: var(--wine);
}

.culinary-network-note {
  margin: 0 0 1rem;
  line-height: 1.55;
}

.culinary-group {
  margin-top: 1rem;
}

.culinary-group h3 {
  font-size: 1rem;
  color: var(--wine-dark);
  margin: 0 0 0.5rem;
}

.culinary-place-grid {
  margin-top: 0.35rem;
}

.place-card--culinary {
  border: 1px solid rgba(123, 45, 62, 0.12);
}

.place-card--culinary .place-card-body {
  padding: 0.85rem 1rem;
}

.side-place-marker-wrap {
  background: transparent;
  border: none;
}

.side-place-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  border: 2px solid #fff;
}

.culinary-link-list {
  margin: 0;
  padding-right: 1.25rem;
}

.culinary-link-list li {
  margin-bottom: 0.65rem;
}

.culinary-link-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.guide-card {
  border-right-color: var(--forest);
}

.guide-tagline {
  font-size: 1rem;
  color: var(--wine);
  font-weight: 600;
  margin: -0.25rem 0 0.75rem;
}

.guide-section {
  margin-top: 1.25rem;
}

.guide-section h3 {
  font-size: 1rem;
  color: var(--wine-dark);
  margin: 0 0 0.5rem;
}

.guide-section h4 {
  font-size: 0.95rem;
  color: var(--forest);
  margin: 0 0 0.35rem;
}

.guide-list,
.guide-link-list,
.guide-adventure-list {
  margin: 0;
  padding-right: 1.25rem;
}

.guide-list li,
.guide-link-list li,
.guide-adventure-list li {
  margin-bottom: 0.5rem;
}

.guide-trail {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.guide-trail:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.guide-trail-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}

.hiking-trails-card {
  border-right: 4px solid var(--forest);
}

.hiking-intro {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.hiking-trail {
  display: grid;
  grid-template-columns: minmax(0, 200px) 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #eee;
}

.hiking-trail:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.hiking-trail-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.hiking-trail-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.hiking-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

.hiking-meta li {
  margin: 0;
}

.hiking-block {
  margin: 0.75rem 0;
}

.hiking-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.hiking-block ul {
  margin: 0;
  padding-right: 1.1rem;
}

.hiking-gear {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hiking-mapy {
  margin: 1rem 0;
  background: #f7f7f5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e8e6e1;
}

.hiking-mapy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

.hiking-mapy-frame {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  background: #ddd;
}

.hiking-mapy-note {
  margin: 0;
  padding: 0.5rem 0.85rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .hiking-trail {
    grid-template-columns: 1fr;
  }

  .hiking-meta {
    grid-template-columns: 1fr;
  }

  .hiking-mapy-frame {
    height: 260px;
  }
}

.guide-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.guide-gallery,
.activity-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.guide-gallery-item,
.activity-gallery-item {
  margin: 0;
}

.guide-gallery-img,
.activity-gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.guide-gallery-item figcaption,
.activity-gallery-item figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  text-align: center;
}

.activity-links {
  margin: 0.5rem 0 0;
  padding-right: 1.25rem;
}

.activity-links li {
  margin-bottom: 0.35rem;
}

.weather-card {
  border-right-color: #3498db;
}

.weather-links {
  margin: 0;
  padding-right: 1.25rem;
  list-style: none;
}

.weather-links li {
  margin-bottom: 0.85rem;
}

.weather-links li:last-child {
  margin-bottom: 0;
}

.weather-link {
  font-weight: 600;
}

.weather-link-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.stories-weather-wrap {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

.stories-weather-wrap .weather-card {
  margin-bottom: 0;
}

.extreme-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flight-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--cream);
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.flight-card .flight-arrow {
  font-size: 1.5rem;
  color: var(--wine);
}

.flight-time {
  font-size: 1.25rem;
  font-weight: 700;
}

.flight-city {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.flight-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.accommodation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.accommodation-table th,
.accommodation-table td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--cream-dark);
}

.accommodation-table th {
  background: var(--cream);
  font-weight: 600;
  color: var(--wine-dark);
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a {
  font-weight: 500;
}

/* Day mini map */
#day-map {
  height: 280px;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  position: relative;
  z-index: 0;
}

#day-map .poi-control--compact.poi-control--collapsed {
  width: auto;
  max-width: none;
  box-shadow: 0 1px 6px rgba(44, 36, 25, 0.2);
}

#day-map .poi-control--compact.poi-control--expanded {
  width: min(220px, calc(100% - 12px));
  max-width: calc(100% - 12px);
  max-height: min(200px, 70%);
  overflow: auto;
}

#day-map .leaflet-bottom.leaflet-left {
  z-index: 800;
}

#day-map .leaflet-popup {
  max-width: min(240px, calc(100% - 24px));
}

#day-map .leaflet-popup-content {
  margin: 0.55rem 0.65rem;
  max-height: 160px;
  overflow-y: auto;
}

#day-map .leaflet-control-zoom {
  margin-top: 8px;
  margin-left: 8px;
}

.day-map-legend {
  margin-top: 0.65rem;
}

.day-map-legend-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.day-map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.day-map-legend-line {
  display: inline-block;
  width: 22px;
  border-top: 3px dashed;
  flex-shrink: 0;
}

.day-map-legend-area {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #0f8b8d;
  background: color-mix(in srgb, #0f8b8d 22%, transparent);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.95;
}

.day-map-legend-area.inline {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-inline-end: 0.2rem;
}

.map-area-tooltip {
  font-weight: 600;
  font-size: 0.8rem;
}

/* Footer */
.site-footer {
  background: var(--wine-dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.site-footer a {
  color: var(--gold-light);
}

.place-card-body h3,
.activity-item h3,
.leaflet-popup-content strong {
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.place-card-body h3 {
  font-family: "Rubik", "Noto Sans Georgian", sans-serif;
}

/* Traveler stories */
.stories-hero {
  min-height: 180px;
}

.stories-hero-subtitle {
  margin: 0.5rem 0 0;
  opacity: 0.9;
  font-size: 1.05rem;
}

.stories-page {
  padding: 2rem 1.5rem 1rem;
}

.stories-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-right: 4px solid var(--gold);
}

.stories-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-frame {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
}

.story-frame-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem 0;
}

.story-frame-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--wine), var(--forest));
  color: var(--white);
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.95rem;
}

.story-frame-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--wine-dark);
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  align-items: center;
}

.story-source a {
  font-weight: 500;
}

.stories-page-source {
  margin: -0.75rem 0 1.5rem;
  font-size: 0.95rem;
}

.stories-page-source a {
  font-weight: 600;
}

.story-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  margin-top: 1rem;
}

.story-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.story-body p {
  margin: 0 0 0.85rem;
  line-height: 1.75;
}

.story-body p:last-of-type {
  margin-bottom: 0;
}

.story-section {
  margin: 1.25rem 0;
}

.story-section h3 {
  font-size: 1.05rem;
  color: var(--wine-dark);
  margin: 0 0 0.5rem;
}

.story-subsection {
  margin: 0.75rem 0 0;
  padding-right: 0.75rem;
}

.story-subsection h4 {
  font-size: 0.95rem;
  color: var(--forest);
  margin: 0 0 0.35rem;
}

.story-section-list {
  margin: 0;
  padding-right: 1.25rem;
}

.story-section-list li {
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.story-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.story-links a {
  font-weight: 500;
  font-size: 0.9rem;
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.story-gallery-item {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream);
}

.story-gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.story-gallery-item figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stories-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-decoration: none;
  color: inherit;
  border-right: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stories-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.stories-banner-icon {
  font-size: 2rem;
  line-height: 1;
}

.stories-banner strong {
  display: block;
  color: var(--wine-dark);
  margin-bottom: 0.25rem;
}

.stories-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.stories-banner-arrow {
  margin-right: auto;
  font-weight: 700;
  color: var(--wine);
}

.stories-sidebar p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.stories-sidebar-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.day-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
}

.day-card-stories {
  color: var(--forest);
}

.empty-stories {
  text-align: center;
  color: var(--text-muted);
}

/* Extreme activities page */
.extreme-page {
  padding-bottom: 3rem;
}

.extreme-rafting-guide {
  padding-top: 1.5rem;
}

.extreme-season-guide {
  padding-top: 1.5rem;
}

.extreme-season-card {
  border-right-color: var(--gold);
}

.extreme-season-card .section-title {
  margin-top: 0;
}

.extreme-season-intro {
  margin: 0 0 1rem;
  line-height: 1.6;
  font-size: 1.02rem;
}

.extreme-season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.extreme-season-block {
  padding: 1rem 1.1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--border);
}

.extreme-season-block h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--wine-dark);
}

.extreme-season-days {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
}

.extreme-season-days a {
  color: var(--forest);
  font-weight: 600;
}

.extreme-season-block p {
  margin: 0 0 0.55rem;
  line-height: 1.55;
  font-size: 0.95rem;
}

.extreme-season-block p:last-of-type {
  margin-bottom: 0;
}

.extreme-season-tips {
  margin-top: 0.75rem !important;
}

.extreme-rafting-card {
  border-right-color: #2980b9;
}

.extreme-rafting-card .section-title {
  margin-top: 0;
}

.extreme-rafting-companies {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.extreme-rafting-company {
  padding: 1rem 1.1rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--border);
}

.extreme-rafting-company-featured {
  border-right-color: #2980b9;
  background: linear-gradient(to left, rgba(41, 128, 185, 0.06), var(--cream));
}

.extreme-rafting-company h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--wine-dark);
}

.extreme-rafting-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #2980b9;
  background: rgba(41, 128, 185, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.extreme-rafting-company p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
}

.extreme-rafting-link-list {
  margin: 0;
  padding-right: 1.25rem;
}

.extreme-rafting-link-list li {
  margin-bottom: 0.5rem;
}

.extreme-rafting-link-note {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.extreme-rafting-coldgear {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.extreme-rafting-coldgear h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--wine-dark);
}

.extreme-rafting-verify {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(41, 128, 185, 0.08);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

.extreme-map-intro {
  color: var(--text-muted);
  margin: -0.5rem 0 1rem;
  font-size: 0.95rem;
}

.extreme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.extreme-filter-btn {
  border: 2px solid var(--cat-color, #ccc);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.extreme-filter-btn.active {
  background: var(--cat-color, var(--wine));
  color: #fff;
  border-color: var(--cat-color, var(--wine));
}

.extreme-filter-route {
  --cat-color: var(--wine);
  margin-right: auto;
}

.extreme-map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1rem;
  align-items: start;
}

.extreme-map-wrap #extreme-map {
  height: 520px;
  width: 100%;
}

.extreme-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 5rem;
}

.extreme-detail-empty {
  padding: 2rem 1.25rem;
  color: var(--text-muted);
  text-align: center;
}

.extreme-detail-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.extreme-detail-body {
  padding: 1.25rem;
}

.extreme-detail-cat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cat-color);
  margin-bottom: 0.5rem;
}

.extreme-detail h2 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  line-height: 1.35;
}

.extreme-detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
}

.extreme-detail-meta dt {
  color: var(--text-muted);
  font-weight: 500;
}

.extreme-detail-meta dd {
  margin: 0.1rem 0 0;
}

.extreme-detail-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.extreme-detail-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.extreme-category-block {
  margin-bottom: 2rem;
}

.extreme-category-title {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  padding-right: 0.75rem;
  border-right: 4px solid var(--cat-color);
}

.extreme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.extreme-card {
  text-align: right;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.extreme-card:hover,
.extreme-card.selected {
  border-color: var(--cat-color);
  transform: translateY(-2px);
}

.extreme-card strong {
  display: block;
  margin: 0.25rem 0;
  font-size: 0.95rem;
  color: var(--text);
}

.extreme-card-cat {
  font-size: 0.75rem;
  color: var(--cat-color);
  font-weight: 600;
}

.extreme-card-region {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.extreme-card-badge {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  background: var(--cream-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.extreme-legend-section {
  margin-bottom: 0.75rem;
}

.extreme-legend-section:last-child {
  margin-bottom: 0;
}

.extreme-legend-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.extreme-legend-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  vertical-align: middle;
  margin-left: 0.25rem;
}

.extreme-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.extreme-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s;
}

.extreme-marker-selected {
  transform: scale(1.15);
  z-index: 1000 !important;
}

.extreme-tooltip {
  font-family: Rubik, sans-serif;
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .extreme-map-layout {
    grid-template-columns: 1fr;
  }

  .extreme-detail {
    position: static;
  }

  .extreme-map-wrap #extreme-map {
    height: 400px;
  }
}

/* Drone spots – day pages */
.drone-spots-card {
  border-right: 4px solid #6c5ce7;
}

.drone-intro {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.drone-legal-note {
  font-size: 0.88rem;
  background: #f4f0ff;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.drone-map-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.drone-map {
  height: 400px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.drone-spot-chips {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.drone-chip-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.drone-chip-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.drone-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.drone-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.drone-legend-line {
  display: inline-block;
  width: 20px;
  border-top: 3px solid;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.drone-legend-note {
  width: 100%;
  font-size: 0.78rem;
  opacity: 0.85;
}

.drone-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.drone-legend-dot.destination {
  background: #6c5ce7;
}

.drone-legend-dot.en-route {
  background: #e67e22;
}

.drone-spot-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.drone-spot-badge.en-route {
  background: #fff3e6;
  color: #c0650a;
}

.drone-spots-group {
  margin-top: 1.25rem;
}

.drone-spots-group:first-of-type {
  margin-top: 0;
}

.drone-spots-group-title {
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.drone-spot-chip {
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.drone-spot-chip:hover,
.drone-spot-chip.active {
  background: #f4f0ff;
  border-color: #6c5ce7;
  color: #5b4cdb;
}

.drone-spot-chip.en-route:hover,
.drone-spot-chip.en-route.active {
  background: #fff3e6;
  border-color: #e67e22;
  color: #c0650a;
}

.drone-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 5rem;
}

.drone-detail-empty {
  padding: 2rem 1.25rem;
  color: var(--text-muted);
  text-align: center;
}

.drone-detail-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.drone-detail-body {
  padding: 1rem 1.25rem 1.25rem;
}

.drone-detail-body h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.drone-detail-body p {
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.drone-tips {
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  padding-right: 1.1rem;
}

.drone-tips li {
  margin-bottom: 0.25rem;
}

.drone-detail-link {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.drone-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.drone-spot-card {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-family: inherit;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  padding: 0;
}

.drone-spot-card:hover,
.drone-spot-card.active {
  border-color: #6c5ce7;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.15);
}

.drone-spot-card.en-route:hover,
.drone-spot-card.en-route.active {
  border-color: #e67e22;
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.15);
}

.drone-spot-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.drone-spot-card-body {
  padding: 0.75rem 1rem 1rem;
}

.drone-spot-card-body strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.drone-spot-card-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drone-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.drone-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.15s;
}

.drone-marker-selected {
  transform: scale(1.15);
  z-index: 1000 !important;
}

.drone-tooltip {
  font-family: Rubik, sans-serif;
  font-size: 0.78rem;
}

@media (max-width: 960px) {
  .drone-map-layout {
    grid-template-columns: 1fr;
  }

  .drone-detail {
    position: static;
  }

  .drone-map {
    height: 320px;
  }
}

/* Points of interest – map search + saved points */
.poi-control {
  direction: rtl;
  width: 250px;
  max-width: calc(100vw - 90px);
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(44, 36, 25, 0.25);
  overflow: hidden;
  font-size: 0.85rem;
}

.poi-control-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.poi-expand-btn,
.poi-collapse-btn {
  border: none;
  background: var(--white);
  font-family: var(--font);
  cursor: pointer;
  color: var(--text);
}

.poi-expand-btn {
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.poi-expand-btn:hover {
  background: var(--cream);
}

.poi-collapse-btn {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  font-size: 0.75rem;
  line-height: 1;
  opacity: 0.7;
}

.poi-collapse-btn:hover {
  opacity: 1;
  background: var(--cream-dark);
}

.poi-control--compact.poi-control--collapsed .poi-control-panel {
  display: none;
}

.poi-search-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
}

.poi-search-icon {
  font-size: 0.9rem;
  opacity: 0.65;
}

.poi-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: transparent;
}

.poi-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.poi-search-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.poi-results,
.poi-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 210px;
  overflow-y: auto;
  border-top: 1px solid var(--cream-dark);
}

.poi-result,
.poi-list-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--cream-dark);
}

.poi-result:last-child,
.poi-list-item:last-child {
  border-bottom: none;
}

.poi-result-btn,
.poi-list-name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: right;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--text);
  transition: background 0.15s;
}

.poi-result-btn:hover,
.poi-list-name:hover {
  background: var(--cream);
}

.poi-result-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poi-result-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.poi-result-add,
.poi-list-remove {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text-muted);
  transition: background 0.15s;
}

.poi-result-add:hover {
  background: rgba(201, 162, 39, 0.18);
}

.poi-list-remove:hover {
  background: rgba(231, 76, 60, 0.15);
}

.poi-result-empty {
  padding: 0.5rem 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.poi-list-toggle {
  width: 100%;
  border: none;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream-dark);
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.poi-list-toggle:hover {
  background: var(--cream);
}

.poi-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.poi-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.poi-marker-preview {
  background: var(--wine);
}

.poi-tooltip {
  font-family: var(--font);
  font-size: 0.78rem;
}

.poi-popup {
  direction: rtl;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.poi-popup-meta,
.poi-popup-day {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.poi-note {
  width: 100%;
  resize: vertical;
  font-family: var(--font);
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
}

.poi-popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.poi-popup-maps-actions {
  width: 100%;
  padding-top: 0.15rem;
  border-top: 1px solid var(--cream-dark);
}

.poi-popup-link-nearby {
  font-size: 0.74rem;
}

.poi-popup-link {
  font-size: 0.78rem;
  font-weight: 600;
}

.poi-btn {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.32rem 0.6rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
}

.poi-btn-primary {
  background: var(--forest);
  color: var(--white);
}

.poi-btn-primary:hover {
  background: var(--forest-light);
}

.poi-btn-danger {
  background: var(--cream-dark);
  color: var(--wine);
}

.poi-btn-danger:hover {
  background: rgba(231, 76, 60, 0.18);
}

@media (max-width: 600px) {
  .poi-control {
    width: 200px;
  }

  .poi-results,
  .poi-list {
    max-height: 160px;
  }
}

/* All-places page */
.places-intro {
  color: var(--text-muted);
  margin: -0.5rem 0 1.25rem;
}

.places-sync-note {
  background: rgba(201, 162, 39, 0.12);
  border-inline-start: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.places-sync-note strong {
  color: var(--text);
}

.places-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.85rem;
}

.places-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow);
}

.places-search-icon {
  opacity: 0.6;
}

.places-search {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
}

.places-add-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--wine);
  border-radius: 999px;
  background: var(--white);
  color: var(--wine);
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
}

.places-add-btn:hover {
  background: var(--wine);
  color: var(--white);
}

.places-add-btn:disabled {
  cursor: default;
  opacity: 0.5;
  box-shadow: none;
}

.places-add-btn:disabled:hover {
  background: var(--white);
  color: var(--wine);
}

.places-share-btn {
  border-color: var(--gold);
  color: #7a5f0a;
}

.places-share-btn:hover:not(:disabled) {
  background: var(--gold);
  color: var(--white);
}

.places-share-btn:disabled:hover {
  background: var(--white);
  color: #7a5f0a;
}

.places-share-status {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.places-share-status.is-ok {
  color: var(--text);
}

.places-share-status.is-warn {
  color: var(--wine);
}

.places-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: 0.35rem 0.85rem;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: transform 0.15s, opacity 0.15s;
}

.place-chip:hover {
  transform: translateY(-1px);
}

.place-chip.is-off {
  opacity: 0.45;
  filter: grayscale(0.7);
}

.place-chip-icon {
  font-size: 0.95rem;
}

.place-chip-all {
  background: var(--cream-dark);
  box-shadow: none;
  font-weight: 500;
}

.measure-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  background: var(--white);
  border: 2px solid var(--wine);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
}

.measure-panel[hidden] {
  display: none !important;
}

.map-section > .measure-panel {
  margin: 1rem 1rem 0;
}

.map-section > .route-mode-bar,
.places-map-wrap > .route-mode-bar {
  border-radius: var(--radius) var(--radius) 0 0;
}

.measure-panel-map {
  margin: 0;
  max-width: min(420px, calc(100vw - 80px));
}

.measure-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.measure-label {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.measure-result {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.measure-time {
  font-size: 1rem;
  font-weight: 700;
  color: var(--wine);
}

.measure-distance {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.measure-loading,
.measure-note,
.measure-error {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.measure-error {
  color: #c0392b;
}

.measure-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.measure-link {
  font-size: 0.82rem;
  font-weight: 600;
}

.measure-btn {
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
  padding: 0.25rem 0.7rem;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.measure-btn:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

.measure-btn.is-active {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
}

.measure-buttons {
  display: flex;
  gap: 0.35rem;
}

.place-chip-offroute {
  border-style: dashed;
  border-color: var(--text-muted) !important;
}

.places-item-far {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  background: var(--cream-dark);
  color: var(--text-muted);
}

.places-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.places-map-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: sticky;
  top: 90px;
}

#places-map {
  height: 68vh;
  min-height: 420px;
  width: 100%;
}

.places-map-note {
  margin: 0;
  padding: 0.6rem 1rem;
  background: var(--cream-dark);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.places-list-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.places-count {
  padding: 0.75rem 1rem;
  background: var(--cream-dark);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.places-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: calc(68vh - 44px);
  overflow-y: auto;
}

.places-item {
  border-bottom: 1px solid var(--cream-dark);
}

.places-item:last-child {
  border-bottom: none;
}

.places-item-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
  background: none;
  border: none;
  border-inline-start: 4px solid transparent;
  cursor: pointer;
  padding: 0.65rem 0.9rem;
  font-family: var(--font);
  color: var(--text);
  transition: background 0.15s;
}

.places-item-btn:hover {
  background: var(--cream);
}

.places-item.is-active .places-item-btn {
  background: var(--cream);
}

.places-item-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.places-item-icon {
  font-size: 0.95rem;
}

.places-item-name {
  font-size: 0.92rem;
  font-weight: 600;
}

.places-item-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.places-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.places-item-day,
.places-item-own,
.places-item-note {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  background: var(--cream-dark);
  color: var(--text-muted);
}

.places-item-own {
  background: rgba(232, 67, 147, 0.14);
  color: #a32d68;
}

.places-item-note {
  background: rgba(201, 162, 39, 0.18);
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.places-empty {
  padding: 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.place-cat-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.place-cat-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}

.place-cat-marker.is-selected {
  transform: scale(1.15);
  z-index: 1000;
}

.place-popup {
  max-width: 260px;
}

.place-badge {
  align-self: flex-start;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.place-popup-tip {
  font-size: 0.78rem;
  color: var(--wine);
  font-weight: 600;
}

.place-popup-desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  max-height: 6.5em;
  overflow-y: auto;
}

.place-popup-days {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.place-day-chip {
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--cream-dark);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
}

.place-videos {
  border-top: 1px solid var(--cream-dark);
  padding-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.place-videos-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.place-videos-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 6.5em;
  overflow-y: auto;
}

.place-videos-empty {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.place-video {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: var(--cream);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
}

.place-video-link {
  font-size: 0.78rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-video-remove {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.1rem 0.2rem;
}

.place-video-remove:hover {
  color: var(--wine);
}

.place-video-form {
  display: flex;
  gap: 0.3rem;
}

.place-video-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 0.76rem;
  color: var(--text);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 0.25rem 0.4rem;
  direction: ltr;
  text-align: left;
}

.place-video-input.is-invalid {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.06);
}

.place-video-add {
  white-space: nowrap;
  padding: 0.25rem 0.6rem;
}

.places-item-video {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  background: rgba(108, 92, 231, 0.16);
  color: #4b3fb5;
}

.poi-category-select {
  width: 100%;
  font-family: var(--font);
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--cream-dark);
  border-radius: 6px;
  padding: 0.25rem 0.35rem;
  background: var(--white);
}

@media (max-width: 900px) {
  .places-layout {
    grid-template-columns: 1fr;
  }

  .places-map-wrap {
    position: static;
  }

  #places-map {
    height: 55vh;
    min-height: 320px;
  }

  .places-list {
    max-height: 420px;
  }
}
