@layer base, layout, components, page, utilities;

/* ─── Tier 1: Primitives ─────────────────────────────────────── */

:root {
  --green-800: #1a3009;
  --green-700: #2D5016;
  --green-600: #3d6b1e;
  --green-500: #5C7C4A;
  --green-300: #7BA363;
  --green-200: #A8C494;
  --green-50:  #E8EDE5;

  --cream-50:  #FAF9F7;
  --cream-100: #F0EDE6;
  --cream-200: #F0EDE8;
  --cream-300: #E5DED1;

  --gray-950: #141413;
  --gray-900: #1A1A18;
  --gray-850: #1F1F1D;
  --gray-800: #252523;
  --gray-700: #333330;
  --gray-600: #444441;
  --gray-500: #666663;
  --gray-400: #99998F;
  --gray-300: #B8B8B0;
  --gray-200: #D4D4CE;
  --gray-100: #EBEBEB;
  --gray-50:  #F5F5F3;

  --ochre-500: #C4941A;
  --ochre-400: #D4A83A;
  --red-500:   #C13D3D;
  --red-400:   #D45555;
  --teal-500:  #2A8A6E;
  --teal-400:  #3DAE8A;
  --amber-500: #B8860B;

  --white: #FFFFFF;
  --black: #111111;

  /* Icon sizes */
  --icon-xs: 14px;   /* inline dismissals, small card badges */
  --icon-sm: 16px;   /* place card X buttons */
  --icon-md: 20px;   /* primary close buttons (taste quiz, modals, drawers) */
  --icon-lg: 24px;   /* nav icons, expand/collapse controls */

  /* Shared card spacing */
  --card-gap: 6px;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-playfair: var(--font-display);
  --font-lora: var(--font-body);

  /* Gradients */
  --gradient-sand:  linear-gradient(135deg, #C4A882 0%, #A68B6B 100%);
  --gradient-sage:  linear-gradient(135deg, #8BA888 0%, #6B8B6B 100%);
  --gradient-mauve: linear-gradient(135deg, #B8929A 0%, #9A7A82 100%);
  --gradient-slate: linear-gradient(135deg, #8B9AA8 0%, #6B7A88 100%);
}

/* ─── Tier 2: Semantic tokens — light (default) ──────────────── */

:root {
  --color-surface:             var(--cream-50);
  --color-surface-raised:      var(--white);
  --color-surface-sunken:      var(--cream-200);
  --color-surface-overlay:     rgba(0, 0, 0, 0.55);
  --color-surface-hover:       var(--cream-100);
  --color-surface-interactive: var(--cream-200);

  --color-text-primary:   var(--gray-900);
  --color-text-secondary: var(--gray-600);
  --color-text-muted:     var(--gray-400);
  --color-text-inverse:   var(--white);

  --color-accent:       var(--green-700);
  --color-accent-hover: var(--green-600);
  --color-accent-muted: var(--green-50);
  --color-accent-text:  var(--green-700);

  --color-border:        var(--gray-200);
  --color-border-subtle: var(--gray-100);
  --color-border-strong: var(--gray-300);

  --color-input-bg:     var(--white);
  --color-input-border: var(--gray-200);
  --color-input-focus:  var(--green-700);

  --color-error:   var(--red-500);
  --color-success: var(--teal-500);
  --color-warning: var(--amber-500);

  --color-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --color-shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --color-shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --color-shadow-xl: 0 16px 48px rgba(0,0,0,0.10);

  --color-chat-user-bg:   var(--green-700);
  --color-chat-user-text: var(--white);
  --color-chat-ai-bg:     var(--gray-50);
  --color-chat-ai-text:   var(--gray-900);

  /* Category / UI — Experiences (Viator) */
  --color-experiences: #2A9D8F;

  /* Legacy aliases — keep until full migration, then delete */
  --cream:       var(--cream-50);
  --green:       var(--green-700);
  --green-light: var(--green-50);
}

/* ─── Tier 2: Semantic tokens — dark ────────────────────────── */

[data-theme="dark"] {
  --color-surface:             var(--gray-950);
  --color-surface-raised:      var(--gray-850);
  --color-surface-sunken:      var(--black);
  --color-surface-overlay:     rgba(0, 0, 0, 0.75);
  --color-surface-hover:       var(--gray-800);
  --color-surface-interactive: var(--gray-800);

  --color-text-primary:   var(--cream-50);
  --color-text-secondary: var(--gray-300);
  --color-text-muted:     var(--gray-500);
  --color-text-inverse:   var(--gray-900);

  --color-accent:       var(--green-300);
  --color-accent-hover: var(--green-200);
  --color-accent-muted: rgba(123, 163, 99, 0.12);
  --color-accent-text:  var(--green-300);

  --color-border:        var(--gray-700);
  --color-border-subtle: var(--gray-800);
  --color-border-strong: var(--gray-600);

  --color-input-bg:     var(--gray-850);
  --color-input-border: var(--gray-700);
  --color-input-focus:  var(--green-300);

  --color-error:   var(--red-400);
  --color-success: var(--teal-400);
  --color-warning: var(--ochre-400);

  --color-shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --color-shadow-md: 0 2px 8px rgba(0,0,0,0.3);
  --color-shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  --color-shadow-xl: 0 16px 48px rgba(0,0,0,0.5);

  --color-chat-user-bg:   var(--green-600);
  --color-chat-user-text: var(--white);
  --color-chat-ai-bg:     var(--gray-800);
  --color-chat-ai-text:   var(--cream-50);
}

/* Smooth scroll for anchor links (e.g. settings pill nav) */

html {
  scroll-behavior: smooth;
}

/* Theme transition — limited to main containers to avoid performance cost */

html.theme-transitioning body,
html.theme-transitioning .sidebar-nav,
html.theme-transitioning .main-content,
html.theme-transitioning [class*="card"],
html.theme-transitioning [class*="modal"] {
  transition: background-color 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, box-shadow 0.2s ease;
}

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: var(--gray-200); /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Lora, Georgia, serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: var(--gray-400); /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: var(--gray-400); /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/* === Sidebar layout tokens and main content area (authenticated app) === */

:root {
  --sidebar-width: 48px;
  --nav-height: 0;
}

body.authenticated-app.sidebar-expanded {
  --sidebar-width: 220px;
}

/* Main content: margin for desktop sidebar; 180ms transition to match sidebar */

body.authenticated-app #main-content.main-content-area {
  margin-left: var(--sidebar-width);
  transition: margin-left 180ms ease;
}

@media (max-width: 768px) {
  body.authenticated-app #main-content.main-content-area {
    margin-left: 0;
    padding-bottom: 56px;
  }
  body.authenticated-app.hide-mobile-tab-bar #main-content.main-content-area {
    padding-bottom: 0;
  }
}

/* === Sidebar container (desktop only; hidden on mobile) === */

.sidebar-nav.app-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 48px;
  background: var(--color-surface-sunken);
  border-right: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  transition: width 180ms ease;
  overflow: hidden;
  z-index: 10002;
  flex-shrink: 0;
  font-family: 'Lora', Georgia, serif;
}

body.sidebar-expanded .sidebar-nav.app-sidebar {
  width: 220px;
}

@media (max-width: 768px) {
  .sidebar-nav.app-sidebar {
    display: none;
  }
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

/* --- Logo + toggle header --- */

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 10px;
  flex-shrink: 0;
}

/* Collapsed: stack logo and toggle vertically, centered */

body:not(.sidebar-expanded) .sidebar-header {
  flex-direction: column;
  justify-content: center;
  padding: 12px 8px;
  gap: 8px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

/* Collapsed logo: "ooo" one line */

.sidebar-logo-collapsed {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.sidebar-expanded .sidebar-logo-collapsed {
  display: none;
}

/* Expanded logo: "ooo.travel" one line */

.sidebar-logo-expanded {
  display: none;
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

body.sidebar-expanded .sidebar-logo-expanded {
  display: inline;
}

/* Toggle button — PanelLeft icon */

.sidebar-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.sidebar-toggle:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
}

.sidebar-toggle-panelleft {
  flex-shrink: 0;
  stroke-width: 1.375 !important;
  stroke: var(--color-text-secondary);
}

.sidebar-divider {
  height: 1px;
  background: var(--color-border-subtle);
  flex-shrink: 0;
}

/* --- Nav links --- */

.sidebar-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 0;
  flex-shrink: 0;
}

/* Dark mode: lift sidebar text for legibility on sunken surface */

[data-theme="dark"] .sidebar-nav-item,
[data-theme="dark"] .sidebar-section-header,
[data-theme="dark"] .sidebar-recent-link,
[data-theme="dark"] .sidebar-board-item,
[data-theme="dark"] .sidebar-conversation-item,
[data-theme="dark"] .sidebar-nav-icon,
[data-theme="dark"] .sidebar-recent-title,
[data-theme="dark"] .sidebar-recent-header.sidebar-section-header {
  color: var(--cream-100);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 100ms ease, color 100ms ease;
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.sidebar-nav-item:hover {
  background: var(--color-surface-hover);
}

.sidebar-nav-item.is-active,
.sidebar-nav-item.active {
  background: var(--color-accent-muted);
  font-weight: 600;
  color: var(--color-accent);
}

.sidebar-nav-item.is-active .sidebar-nav-icon,
.sidebar-nav-item.is-active .sidebar-nav-icon svg,
.sidebar-nav-item.active .sidebar-nav-icon,
.sidebar-nav-item.active .sidebar-nav-icon svg {
  color: var(--color-accent);
  stroke: var(--color-accent);
}

.sidebar-nav-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
}

.sidebar-nav-icon svg {
  color: var(--color-text-secondary);
  stroke: var(--color-text-secondary);
  stroke-width: 1.375 !important;
  width: 20px;
  height: 20px;
}

.sidebar-nav-item--bottom .sidebar-nav-icon svg {
  width: 18px;
  height: 18px;
}

/* Collapsed: keep same relative sizes (main 20px, bottom 18px) */

body:not(.sidebar-expanded) .sidebar-nav-item .sidebar-nav-icon svg {
  width: 20px;
  height: 20px;
}

body:not(.sidebar-expanded) .sidebar-nav-item--bottom .sidebar-nav-icon svg {
  width: 18px;
  height: 18px;
}

.sidebar-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Collapsed: icon-only, centered, 48×40 hit area */

body:not(.sidebar-expanded) .sidebar-nav-item {
  justify-content: center;
  width: 48px;
  height: 40px;
  padding: 0;
  margin: 0 auto;
  border-radius: 4px;
}

body:not(.sidebar-expanded) .sidebar-nav-item.is-active {
  background: var(--color-accent-muted);
}

body:not(.sidebar-expanded) .sidebar-nav-label,
body:not(.sidebar-expanded) .sidebar-section-header,
body:not(.sidebar-expanded) .sidebar-board-list,
body:not(.sidebar-expanded) .sidebar-conversation-list,
body:not(.sidebar-expanded) .sidebar-taste-cta {
  display: none !important;
}

/* --- Recent boards & conversations (expanded only) --- */

.sidebar-recent {
  flex-shrink: 0;
  overflow: hidden;
}

body:not(.sidebar-expanded) .sidebar-recent {
  display: none;
}

.sidebar-recent-header.sidebar-section-header {
  font-family: 'Lora', serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 10px 4px;
  margin-top: 12px;
  margin-bottom: 0;
  border: none;
  background: transparent;
}

.sidebar-recent-header.sidebar-section-header:first-child {
  margin-top: 0;
}

.sidebar-recent-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-recent-list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.sidebar-recent-list li {
  margin: 0;
}

/* Board and conversation list items */

.sidebar-board-item,
.sidebar-conversation-item,
.sidebar-recent-link.sidebar-board-item,
.sidebar-recent-link.sidebar-conversation-item {
  display: block;
  padding: 4px 10px;
  border-radius: 3px;
  font-family: 'Lora', serif;
  font-size: 12px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-decoration: none;
  transition: color 100ms ease, background 100ms ease;
}

.sidebar-board-item:hover,
.sidebar-conversation-item:hover {
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.sidebar-view-all {
  padding: 4px 10px;
  font-family: 'Lora', serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
  cursor: pointer;
  text-decoration: none;
  display: block;
  border-radius: 3px;
}

.sidebar-view-all:hover {
  background: var(--color-accent-muted);
}

.sidebar-spacer {
  flex: 1;
  min-height: 16px;
}

/* Taste profile CTA */

.sidebar-taste-cta {
  padding: 8px 10px;
  flex-shrink: 0;
}

.sidebar-taste-cta-link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--color-accent);
  background: var(--color-accent-muted);
  border-radius: 6px;
  text-decoration: none;
  text-align: center;
}

.sidebar-taste-cta-link:hover {
  background: var(--color-accent-muted);
  filter: brightness(0.97);
}

/* --- Profile / avatar at bottom --- */

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid #EAEAE8;
  margin-top: 4px;
  position: relative;
  flex-shrink: 0;
}

.sidebar-profile-spacer {
  flex: 1;
}

.sidebar-dark-mode-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
  flex-shrink: 0;
}

.sidebar-dark-mode-inline:hover {
  color: #555;
}

.sidebar-dark-mode-inline svg {
  width: 18px;
  height: 18px;
}

body:not(.sidebar-expanded) .sidebar-profile {
  justify-content: center;
  padding: 10px 0;
}

/* Collapsed: only show avatar; hide name, badge, spacer, and dark/light toggle */

body.authenticated-app:not(.sidebar-expanded) .sidebar-profile-name,
body.authenticated-app:not(.sidebar-expanded) .sidebar-profile-badge,
body.authenticated-app:not(.sidebar-expanded) .sidebar-profile-spacer,
body.authenticated-app:not(.sidebar-expanded) .sidebar-dark-mode-inline {
  display: none !important;
}

#sidebar-avatar-button.sidebar-avatar-button,
.sidebar-avatar-button,
.sidebar-avatar-button[data-gradient="sage"] {
  width: var(--icon-lg);
  height: var(--icon-lg);
  border-radius: 50%;
  background: #2D4F2D !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Ensure avatar gradient is not clipped */

.sidebar-avatar-button {
  overflow: visible;
}

/* Collapsed: smaller avatar so it fits the narrow rail */

body.authenticated-app:not(.sidebar-expanded) .sidebar-avatar-button {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.sidebar-avatar-initial {
  font-size: inherit;
  line-height: 1;
  color: inherit;
}

.sidebar-avatar-button:hover {
  filter: brightness(1.05);
}

/* Top nav avatar (design tokens so icon size and colors stay in sync) */

.top-nav-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.top-nav-avatar-btn:hover {
  background: var(--color-accent-hover);
}

.sidebar-profile-name {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.sidebar-profile-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-muted);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Dropdown (unchanged behavior, styling tweaks) */

.sidebar-avatar-dropdown {
  position: absolute;
  bottom: 100%;
  left: 10px;
  right: 10px;
  margin-bottom: 8px;
  background: var(--color-surface-raised);
  border-radius: 8px;
  box-shadow: var(--color-shadow-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  z-index: 100;
  min-width: 260px;
}

body:not(.sidebar-expanded) .sidebar-avatar-dropdown {
  position: absolute;
  bottom: 0;
  left: calc(100% + 8px);
  min-width: 260px;
  z-index: 1000;
}

/* Collapsed: allow dropdown to escape sidebar clip */

body:not(.sidebar-expanded) .sidebar-nav.app-sidebar,
body:not(.sidebar-expanded) .sidebar-inner {
  overflow: visible;
}

/* Expanded: allow avatar dropdown to escape sidebar clip as well */

body.sidebar-expanded .sidebar-nav.app-sidebar,
body.sidebar-expanded .sidebar-inner {
  overflow: visible;
}

.sidebar-avatar-dropdown-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.sidebar-avatar-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.sidebar-avatar-dropdown-email {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 230px;
}

.sidebar-avatar-dropdown-links,
.sidebar-avatar-dropdown-footer {
  padding: 6px 0;
}

.sidebar-avatar-dropdown-footer {
  border-top: 1px solid var(--color-border-subtle);
}

.sidebar-avatar-dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--color-text-primary);
  text-decoration: none;
}

.sidebar-avatar-dropdown-link:hover {
  background: var(--color-surface-hover);
}

.sidebar-avatar-dropdown-link--signout {
  color: #dc2626;
}

.sidebar-avatar-upgrade-badge {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 4px;
}

/* Mobile tab bar icons — same stroke as sidebar */

.mobile-tab-icon svg {
  stroke-width: 1.375 !important;
  stroke: var(--color-text-secondary);
}

/* Sidebar conversation row: link + archive button on hover */

.sidebar-conversation-row {
  display: flex;
  align-items: center;
  position: relative;
}

.sidebar-conversation-row .sidebar-conversation-item {
  flex: 1;
  overflow: hidden;
}

.sidebar-conversation-archive {
  display: none;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: 3px;
  flex-shrink: 0;
}

.sidebar-conversation-archive:hover {
  color: var(--color-error);
  background: var(--color-accent-muted);
}

.sidebar-conversation-row:hover .sidebar-conversation-archive {
  display: flex;
}

/* Archive conversation confirmation modal */

.archive-confirm-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-surface-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10020;
}

.archive-confirm-dialog {
  background: var(--color-surface-raised);
  border-radius: 8px;
  padding: 24px;
  width: 320px;
  box-shadow: var(--color-shadow-lg);
  border: 1px solid var(--color-border);
}

.archive-confirm-text {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--color-text-primary);
  margin: 0 0 20px;
}

.archive-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.archive-confirm-cancel {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
}

.archive-confirm-cancel:hover {
  border-color: var(--color-border-strong);
}

.archive-confirm-delete {
  padding: 6px 16px;
  border-radius: 4px;
  border: none;
  background: var(--color-error);
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--color-text-inverse);
  cursor: pointer;
}

.archive-confirm-delete:hover {
  filter: brightness(1.1);
}

.\!container{
  width: 100% !important;
}

.container{
  width: 100%;
}

@media (min-width: 640px){

  .\!container{
    max-width: 640px !important;
  }

  .container{
    max-width: 640px;
  }
}

@media (min-width: 768px){

  .\!container{
    max-width: 768px !important;
  }

  .container{
    max-width: 768px;
  }
}

@media (min-width: 1024px){

  .\!container{
    max-width: 1024px !important;
  }

  .container{
    max-width: 1024px;
  }
}

@media (min-width: 1280px){

  .\!container{
    max-width: 1280px !important;
  }

  .container{
    max-width: 1280px;
  }
}

@media (min-width: 1536px){

  .\!container{
    max-width: 1536px !important;
  }

  .container{
    max-width: 1536px;
  }
}

.react-grid-layout {
  position: relative;
  transition: height 200ms ease;
}

.react-grid-item {
  transition: all 200ms ease;
  transition-property: left, top, width, height;
}

.react-grid-item img {
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.react-grid-item.cssTransforms {
  transition-property: transform, width, height;
}

.react-grid-item.resizing {
  transition: none;
  z-index: 1;
  will-change: width, height;
}

.react-grid-item.react-draggable-dragging {
  transition: none;
  z-index: 3;
  will-change: transform;
}

.react-grid-item.dropping {
  visibility: hidden;
}

.react-grid-item.react-grid-placeholder {
  background: red;
  opacity: 0.2;
  transition-duration: 100ms;
  z-index: 2;
  -webkit-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

.react-grid-item.react-grid-placeholder.placeholder-resizing {
  transition: none;
}

.react-grid-item > .react-resizable-handle {
  position: absolute;
  width: 20px;
  height: 20px;
}

.react-grid-item > .react-resizable-handle::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 5px;
  height: 5px;
  border-right: 2px solid rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(0, 0, 0, 0.4);
}

.react-resizable-hide > .react-resizable-handle {
  display: none;
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {
  bottom: 0;
  left: 0;
  cursor: sw-resize;
  transform: rotate(90deg);
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-se {
  bottom: 0;
  right: 0;
  cursor: se-resize;
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {
  top: 0;
  left: 0;
  cursor: nw-resize;
  transform: rotate(180deg);
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {
  top: 0;
  right: 0;
  cursor: ne-resize;
  transform: rotate(270deg);
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-w,
.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  top: 50%;
  margin-top: -10px;
  cursor: ew-resize;
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-w {
  left: 0;
  transform: rotate(135deg);
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-e {
  right: 0;
  transform: rotate(315deg);
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-n,
.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  left: 50%;
  margin-left: -10px;
  cursor: ns-resize;
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-n {
  top: 0;
  transform: rotate(225deg);
}

.react-grid-item > .react-resizable-handle.react-resizable-handle-s {
  bottom: 0;
  transform: rotate(45deg);
}

/* ============================================
   BOARD CARDS — EDITORIAL SHARP
   ============================================ */

/* Category color variables */

:root {
  --card-flight: #2D5016;
  --card-place: #B8860B;
  --card-note: #9A8570;
  --card-restaurant: #C4784A;
  --card-reservation: #C4784A;
  --card-photo: #A4697A;
  --card-accommodation: #8B5A6B;
  --card-checklist: #5A7A5A;
  --card-link: #6B7A8B;
  --card-document: #7A7A6B;
  
  /* Brand Colors */
  --cream: #FAF9F7;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray-100: #F5F5F3;
  --gray-200: #EBEBEB;
  --gray-300: #D4D4D4;
  --gray-400: #999999;
  --gray-500: #666666;
  
  /* AI */
  --ai: #9B5A9B;
  --ai-light: #F8F2F8;
  --ai-border: #E0D0E0;
}

/* ================================
   BASE CARD
   ================================ */

.card {
  background: var(--color-surface-raised) !important;
  border: 1px solid var(--color-border) !important;
  border-left: 3px solid var(--color-border-strong) !important;
  border-radius: 0 !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  box-sizing: border-box !important;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-2px);
}

.card-body {
  padding: 16px !important;
}

/* ================================
   DRAG HANDLE
   ================================ */

.board-card-drag-handle {
  height: 24px !important;
  background: var(--gray-100, #F5F5F3) !important;
  border-bottom: 1px solid var(--gray-200, #EBEBEB) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: grab !important;
  width: 100% !important;
}

.board-card-drag-handle:active {
  cursor: grabbing !important;
  background: var(--gray-200, #EBEBEB) !important;
}

.board-card-drag-dots {
  display: flex !important;
  gap: 3px !important;
}

.board-card-drag-dots span {
  width: 4px !important;
  height: 4px !important;
  background: var(--gray-400, #999999) !important;
  border-radius: 50% !important;
  display: block !important;
}

/* Legacy drag handle support (for existing CanvasView) */

.drag-handle {
  height: 24px !important;
  background: var(--gray-100, #F5F5F3) !important;
  border-bottom: 1px solid var(--gray-200, #EBEBEB) !important;
  cursor: grab !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
}

.drag-handle:active {
  cursor: grabbing !important;
  background: var(--gray-200, #EBEBEB) !important;
}

.drag-handle svg {
  width: 16px !important;
  height: 16px !important;
  color: var(--gray-400, #999999) !important;
}

/* ================================
   CARD LABEL (Type indicator)
   ================================ */

.card-label {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 10px !important;
  color: var(--gray-400) !important;
}

.card-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

.card-icon svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

/* ================================
   CARD CONTENT
   ================================ */

.card-title {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  color: var(--color-text-primary) !important;
  margin-bottom: 6px !important;
  line-height: 1.3 !important;
  margin-top: 0 !important;
}

.card-meta {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 13px !important;
  color: var(--color-text-secondary) !important;
  line-height: 1.5 !important;
}

.card-price {
  font-family: 'Lora', Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--black) !important;
  margin-top: 12px !important;
}

/* ================================
   CATEGORY COLORS (Left Border)
   ================================ */

/* Flight — 4px green border */

.card.flight,
.card.transport,
.card.train,
.card.car_rental {
  border-left-width: 4px !important;
  border-left-color: var(--card-flight) !important;
  background: linear-gradient(90deg, rgba(45, 80, 22, 0.05) 0%, var(--color-surface-raised) 20%) !important;
}

.card.accommodation {
  border-left-color: var(--card-accommodation) !important;
}

.card.reservation {
  border-left-color: var(--card-restaurant) !important;
}

.card.place {
  border-left-color: var(--card-place) !important;
}

/* Category-based place styling */

.card.place-accommodations {
  border-left-color: #8B5A6B !important;
}

.card.place-accommodations .card-label {
  color: #8B5A6B !important;
}

.card.place-restaurants-and-food {
  border-left-color: #C4784A !important;
}

.card.place-restaurants-and-food .card-label {
  color: #C4784A !important;
}

.card.place-bars-and-rooftops {
  border-left-color: #C4784A !important;
}

.card.place-bars-and-rooftops .card-label {
  color: #C4784A !important;
}

.card.place-coffee-and-tea {
  border-left-color: #9A8570 !important;
}

.card.place-coffee-and-tea .card-label {
  color: #9A8570 !important;
}

.card.place-cultural-and-artistic-venues {
  border-left-color: #A4697A !important;
}

.card.place-cultural-and-artistic-venues .card-label {
  color: #A4697A !important;
}

.card.place-health-and-wellness {
  border-left-color: #6B8E23 !important;
}

.card.place-health-and-wellness .card-label {
  color: #6B8E23 !important;
}

.card.place-markets-and-shopping {
  border-left-color: #4682B4 !important;
}

.card.place-markets-and-shopping .card-label {
  color: #4682B4 !important;
}

.card.place-bookstores-and-libraries {
  border-left-color: #5F9EA0 !important;
}

.card.place-bookstores-and-libraries .card-label {
  color: #5F9EA0 !important;
}

.card.place-places-to-work {
  border-left-color: #6B7A8B !important;
}

.card.place-places-to-work .card-label {
  color: #6B7A8B !important;
}

/* Custom place styling - warm brown border */

.card.custom-place {
  border-left-color: #9A8570 !important;
  background: linear-gradient(90deg, rgba(154, 133, 112, 0.05) 0%, white 20%) !important;
}

.card.custom-place .card-label {
  color: #9A8570 !important;
}

.card.note {
  border-left-color: var(--card-note) !important;
}

.card.checklist {
  border-left-color: var(--card-checklist) !important;
}

.card.photo {
  border-left-color: var(--card-photo) !important;
}

.card.link {
  border-left-color: var(--card-link) !important;
}

.card.document {
  border-left-color: var(--card-document) !important;
}

/* ================================
   CATEGORY COLORS (Label Text)
   ================================ */

.card.flight .card-label,
.card.transport .card-label,
.card.train .card-label,
.card.car_rental .card-label {
  color: var(--card-flight) !important;
}

.card.accommodation .card-label {
  color: var(--card-accommodation) !important;
}

.card.reservation .card-label {
  color: var(--card-restaurant) !important;
}

.card.place .card-label {
  color: var(--card-place) !important;
}

.card.custom-place .card-label {
  color: #9A8570 !important;
}

.card.note .card-label {
  color: var(--card-note) !important;
}

.card.checklist .card-label {
  color: var(--card-checklist) !important;
}

.card.photo .card-label {
  color: var(--card-photo) !important;
}

.card.link .card-label {
  color: var(--card-link) !important;
}

.card.document .card-label {
  color: var(--card-document) !important;
}

/* ================================
   AI SUGGESTION STATE
   ================================ */

.card.ai-suggestion {
  border: 1px dashed var(--ai) !important;
  border-left-width: 3px !important;
  border-left-style: dashed !important;
  border-left-color: var(--ai) !important;
  background: linear-gradient(135deg, var(--ai-light) 0%, var(--white) 40%) !important;
}

.card.ai-suggestion.flight,
.card.ai-suggestion.transport {
  border-left-width: 4px !important;
}

.card.ai-suggestion .card-label {
  color: var(--ai) !important;
}

.ai-actions {
  display: flex !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  border-top: 1px dashed var(--ai-border) !important;
  background: var(--ai-light) !important;
}

.btn {
  font-family: 'Lora', serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}

.btn-accept {
  background: var(--ai) !important;
  color: white !important;
  border-radius: 4px !important;
}

.btn-accept:hover {
  background: #7A4A7A !important;
}

.btn-dismiss {
  background: transparent !important;
  color: var(--gray-500) !important;
  padding: 8px 12px !important;
}

.btn-dismiss:hover {
  color: var(--black) !important;
}

/* ================================
   AI ACCEPTED STATE
   ================================ */

/* Uses category color from above, just adds badge */

.card.ai-accepted {
  /* Border color comes from category class */
}

.ai-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 9px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 3px 8px !important;
  border-radius: 3px !important;
  background: var(--ai-light) !important;
  color: var(--ai) !important;
  margin-left: auto !important;
}

.ai-badge svg {
  width: 10px !important;
  height: 10px !important;
  fill: currentColor !important;
}

/* AI badge inline in card labels */

.ai-badge-inline {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-left: 8px !important;
  font-size: 9px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #9B5A9B !important;
  font-weight: 600 !important;
  font-family: 'Lora', Georgia, serif !important;
}

.ai-badge-inline .sparkle {
  font-size: 10px !important;
}

/* ================================
   FLIGHT CARD (Special)
   ================================ */

.card.flight {
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
}

.flight-route {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.flight-route .code {
  font-family: 'Playfair Display', serif !important;
  font-size: 24px !important;
  font-weight: 500 !important;
  color: var(--black) !important;
}

.flight-route .card-icon {
  width: 24px !important;
  height: 24px !important;
  color: var(--gray-300) !important;
}

.flight-route .card-icon svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  fill: none !important;
}

.flight-details {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--gray-100) !important;
}

.flight-detail-label {
  font-size: 11px !important;
  color: var(--gray-400) !important;
  margin-bottom: 2px !important;
}

.flight-detail-value {
  font-size: 13px !important;
  color: var(--black) !important;
  font-weight: 500 !important;
}

/* ================================
   DELETE BUTTON
   ================================ */

.card-delete {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  background: transparent !important;
  border: none !important;
  color: var(--gray-400) !important;
  cursor: pointer !important;
  padding: 4px !important;
  opacity: 0 !important;
  transition: opacity 0.2s, color 0.2s !important;
  z-index: 10 !important;
}

.card:hover .card-delete {
  opacity: 1 !important;
}

.card-delete:hover {
  color: #dc2626 !important;
}

.card-delete svg {
  width: 16px !important;
  height: 16px !important;
}

/* ================================
   CHECKLIST ITEMS
   ================================ */

.checklist-items {
  list-style: none !important;
  margin: 8px 0 0 0 !important;
  padding: 0 !important;
}

.checklist-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 4px 0 !important;
  font-size: 13px !important;
  color: var(--gray-600, #444444) !important;
}

.checklist-item input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--card-flight) !important;
  margin: 0 !important;
}

.checklist-item.done span {
  text-decoration: line-through !important;
  color: var(--gray-400) !important;
}

.checklist-progress {
  font-size: 11px !important;
  color: var(--card-flight) !important;
  margin-top: 10px !important;
  font-weight: 600 !important;
}

/* ================================
   PHOTO CARD
   ================================ */

.card.photo {
  padding: 0 !important;
  overflow: hidden !important;
}

.card.photo .card-body {
  padding: 12px 16px !important;
}

.photo-image {
  height: 140px !important;
  background: var(--gray-100) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: -12px -16px 12px -16px !important;
}

.photo-image img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

.card-caption {
  font-size: 13px !important;
  font-style: italic !important;
  color: var(--gray-500) !important;
}

/* ================================
   LINK CARD
   ================================ */

.card.link {
  padding: 0 !important;
  overflow: hidden !important;
}

.card.link .card-body {
  padding: 12px 16px !important;
}

.link-preview {
  height: 100px !important;
  background: var(--gray-100) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  margin: -12px -16px 12px -16px !important;
}

.link-preview img {
  width: 100% !important;
  height: 100% !important;
  -o-object-fit: cover !important;
     object-fit: cover !important;
}

.link-url {
  font-size: 11px !important;
  color: var(--card-link) !important;
  margin-top: 6px !important;
}

/* ================================
   DOCUMENT CARD
   ================================ */

.doc-preview {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 8px !important;
}

.doc-icon-box {
  width: 40px !important;
  height: 48px !important;
  background: var(--gray-100) !important;
  border: 1px solid var(--gray-200) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  color: var(--gray-400) !important;
}

.doc-info {
  flex: 1 !important;
}

.doc-size {
  font-size: 11px !important;
  color: var(--gray-400) !important;
}

/* Canvas view with grid pattern */

.canvas-view {
  background: var(--cream, #FAF9F7);
  min-height: 600px;
  position: relative;
  background-image: radial-gradient(circle, var(--gray-300, #D4D4D4) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 20px;
  border-radius: 0;
}

/* Grid layout styles */

.layout {
  background: transparent;
  min-height: 500px;
}

/* Hide grid item bounding boxes - cards are the only visible elements */

.grid-item {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-shadow: none !important;
}

.grid-item:hover {
  box-shadow: none !important;
}

/* React Grid Layout overrides - hide bounding boxes */

.react-grid-item {
  background: transparent !important;
  border: none !important;
  transition: all 200ms ease !important;
  transition-property: left, top, width, height !important;
}

/* Only show placeholder when dragging */

.react-grid-item.react-grid-placeholder {
  background: rgba(45, 80, 22, 0.1) !important;
  border: 2px dashed #2D5016 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  transition-duration: 100ms !important;
  z-index: 2 !important;
}

.react-grid-item.resizing {
  transition: none !important;
  z-index: 100 !important;
}

.react-grid-item.static {
  background: transparent !important;
}

/* Drag handle styles */

.drag-handle {
  cursor: grab !important;
  height: 24px !important;
  background: #F5F5F3 !important;
  border-bottom: 1px solid #EBEBEB !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.drag-handle:active {
  cursor: grabbing !important;
  background: #EBEBEB !important;
}

/* Map container */

.map-container {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  overflow: hidden;
}

/* MapLibre handles its own styling - no custom CSS needed */

/* Responsive grid */

@media (max-width: 768px) {
  .layout {
    padding: 10px;
  }
  
  .map-container {
    height: 400px;
  }
}

.organized-view {
  background: var(--cream);
  min-height: 600px;
  padding: 24px;
}

.category-section {
  margin-bottom: 32px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background 0.2s;
}

.category-header:hover {
  background: var(--gray-200);
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  flex: 1;
  margin: 0;
}

.category-count {
  font-size: 13px;
  color: var(--gray-500);
  margin-left: auto;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.category-card-wrapper {
  max-width: 100%;
}

/* ===========================================
   CALENDAR VIEW - Board Calendar Styling
   =========================================== */

.calendar-view {
  background: var(--cream, #FAF9F7);
  min-height: 600px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.calendar-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.calendar-view-toggle {
  display: flex;
  gap: 4px;
  background: var(--white, #FFFFFF);
  padding: 4px;
  border-radius: 6px;
  border: 1px solid var(--gray-200, #EBEBEB);
}

.calendar-view-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--gray-500, #666666);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Lora', serif;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.calendar-view-btn:hover {
  background: var(--gray-100, #F5F5F3);
  color: var(--black, #1A1A1A);
}

.calendar-view-btn.active {
  background: var(--green, #2D5016);
  color: var(--white, #FFFFFF);
}

/* ===========================================
   CALENDAR WITH SIDEBAR LAYOUT
   =========================================== */

.calendar-with-sidebar {
  display: flex;
  gap: 16px;
  flex: 1;
  overflow: hidden;
}

/* ===========================================
   UNSCHEDULED ITEMS SIDEBAR
   =========================================== */

.unscheduled-sidebar {
  width: 280px;
  background: var(--white, #FFFFFF);
  border-radius: 8px;
  border: 1px solid var(--gray-200, #EBEBEB);
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black, #1A1A1A);
  margin-bottom: 12px;
}

.empty-sidebar-text {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--gray-400, #999999);
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.unscheduled-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.unscheduled-item {
  cursor: grab;
  transition: transform 0.2s, opacity 0.2s;
}

.unscheduled-item:hover {
  transform: translateY(-2px);
}

.unscheduled-item:active {
  cursor: grabbing;
  opacity: 0.6;
}

/* ===========================================
   CALENDAR MAIN AREA
   =========================================== */

.calendar-main {
  flex: 1;
  background: var(--white, #FFFFFF);
  border-radius: 8px;
  border: 1px solid var(--gray-200, #EBEBEB);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ===========================================
   WEEK CALENDAR GRID
   =========================================== */

.week-calendar-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.week-header {
  display: grid;
  grid-template-columns: 80px repeat(7, 1fr);
  border-bottom: 2px solid var(--gray-200, #EBEBEB);
  background: var(--gray-50, #FAFAF9);
  flex-shrink: 0;
}

.time-column-header {
  padding: 12px;
  border-right: 1px solid var(--gray-200, #EBEBEB);
}

.week-day-header {
  padding: 12px;
  text-align: center;
  border-right: 1px solid var(--gray-200, #EBEBEB);
}

.week-day-header:last-child {
  border-right: none;
}

.day-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500, #666666);
  font-weight: 600;
  margin-bottom: 4px;
  font-family: 'Lora', serif;
}

.day-number {
  font-size: 18px;
  font-weight: 600;
  color: var(--black, #1A1A1A);
  font-family: 'Playfair Display', serif;
}

/* ===========================================
   WEEK BODY WITH TIME SLOTS
   =========================================== */

.week-body {
  display: flex;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.time-column {
  width: 80px;
  flex-shrink: 0;
  border-right: 1px solid var(--gray-200, #EBEBEB);
  background: var(--gray-50, #FAFAF9);
}

.time-slot-label {
  height: 80px;
  padding: 8px 12px;
  font-size: 11px;
  color: var(--gray-500, #666666);
  font-family: 'Lora', serif;
  border-bottom: 1px solid var(--gray-200, #EBEBEB);
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  flex: 1;
}

.calendar-day-column {
  border-right: 1px solid var(--gray-200, #EBEBEB);
}

.calendar-day-column:last-child {
  border-right: none;
}

.calendar-time-slot {
  height: 80px;
  border-bottom: 1px solid var(--gray-100, #F5F5F3);
  padding: 4px;
  position: relative;
  transition: background-color 0.2s;
  min-height: 80px;
}

.calendar-time-slot:hover {
  background-color: var(--gray-50, #FAFAF9);
}

.calendar-time-slot.drag-over {
  background-color: var(--ai-light, #F8F2F8) !important;
  border: 2px dashed var(--ai, #9B5A9B) !important;
  border-radius: 4px;
}

.calendar-item {
  margin-bottom: 4px;
  cursor: pointer;
}

.calendar-item:last-child {
  margin-bottom: 0;
}

.calendar-item .card,
.calendar-item .card.flight {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* ===========================================
   DRAG PREVIEW
   =========================================== */

.drag-preview {
  opacity: 0.8;
  transform: rotate(2deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  pointer-events: none;
}

/* ===========================================
   DAY AND MONTH VIEWS (Placeholder)
   =========================================== */

.day-view,
.month-view {
  padding: 40px;
  text-align: center;
  font-family: 'Lora', serif;
  color: var(--gray-500, #666666);
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 1024px) {
  .calendar-with-sidebar {
    flex-direction: column;
  }
  
  .unscheduled-sidebar {
    width: 100%;
    max-height: 200px;
  }
  
  .week-header {
    grid-template-columns: 60px repeat(7, 1fr);
  }
  
  .time-column {
    width: 60px;
  }
  
  .time-slot-label {
    font-size: 10px;
    padding: 4px 8px;
  }
}

/* ===========================================
   FULLCALENDAR CUSTOMIZATION
   =========================================== */

/* FullCalendar customization */

.fc {
  font-family: 'Lora', serif !important;
}

.fc-toolbar-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 20px !important;
  color: #1F2937 !important;
}

.fc-button {
  background-color: white !important;
  border: 1px solid #E5E7EB !important;
  color: #4B5563 !important;
  font-family: 'Lora', serif !important;
  text-transform: capitalize !important;
  font-size: 13px !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
}

.fc-button:hover {
  background-color: #F9FAFB !important;
}

.fc-button-active {
  background-color: #2D5016 !important;
  color: white !important;
  border-color: #2D5016 !important;
}

.fc-day-today {
  background-color: rgba(45, 80, 22, 0.05) !important;
}

/* D2: Weekend columns */

.fc-day-sat,
.fc-day-sun,
.fc-timegrid-col.fc-day-sat,
.fc-timegrid-col.fc-day-sun {
  background-color: #F5F4F0 !important;
}

.fc-daygrid-day,
.fc-timegrid-slot,
.fc-timegrid-col {
  background: #FAF9F7 !important;
}

.fc-scrollgrid {
  background: #FAF9F7;
}

.fc-event {
  border-radius: 4px !important;
  padding: 2px 4px !important;
  cursor: move !important;
  border: none !important;
}

/* D4: Event text truncation */

.fc-event-title {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-family: 'Lora', serif !important;
  font-size: 12px !important;
}

.fc-event:hover {
  opacity: 0.9;
}

.fc-event-dragging {
  opacity: 0.6 !important;
  cursor: grabbing !important;
}

.fc-timegrid-slot {
  height: 3em !important;
}

.fc-col-header-cell {
  font-family: 'Lora', serif !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #6B7280 !important;
  padding: 8px 4px !important;
}

/* D3: Grid lines full height */

.fc-timegrid-col {
  border-right: 1px solid #E8E8E8 !important;
}

.fc-timegrid-slot-label {
  font-family: 'Lora', serif !important;
  font-size: 11px !important;
  color: #9CA3AF !important;
}

/* Draggable items */

.draggable-item {
  cursor: grab !important;
}

.draggable-item:active {
  cursor: grabbing !important;
}

.draggable-item:hover {
  opacity: 0.8;
}

/* ===========================================
   LIST VIEW (D7)
   =========================================== */

.list-view {
  background: var(--white, #fff);
  border-radius: 8px;
  border: 1px solid #E8E8E8;
  overflow: hidden;
  font-family: 'Lora', serif;
}

.list-view-table-wrapper {
  overflow-x: auto;
}

.list-view-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.list-view-th {
  text-align: left;
  padding: 10px 12px;
  background: #FAF9F7;
  border-bottom: 1px solid #E8E8E8;
  font-family: 'Lora', serif;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.list-view-th:hover {
  background: #F5F4F0;
}

.list-view-row {
  cursor: pointer;
  transition: background 0.15s;
}

.list-view-row:hover {
  background: #FAF9F7;
}

.list-view-td {
  padding: 10px 12px;
  border-bottom: 1px solid #E8E8E8;
  vertical-align: middle;
}

.list-view-td-place {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-view-category-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.list-view-expanded-row .list-view-expanded-cell {
  padding: 12px 16px;
  background: #F5F4F0;
  border-bottom: 1px solid #E8E8E8;
}

.list-view-expanded-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.list-view-expanded-summary {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.list-view-unscheduled {
  padding: 16px;
  border-top: 1px solid #E8E8E8;
  background: #FAF9F7;
}

.list-view-unscheduled-title {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #1A1A1A;
}

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

.list-view-unscheduled-item {
  padding: 6px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list-view-empty {
  padding: 24px;
  text-align: center;
  color: #999;
  font-size: 13px;
  margin: 0;
}

.view-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200, #EBEBEB);
}

.view-tab {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--gray-400, #999999);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.view-tab:hover {
  color: var(--gray-600, #444444);
}

.view-tab.active {
  color: var(--green, #2D5016);
}

.view-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green, #2D5016);
}

.view-tab svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.view-tab span {
  display: inline-block;
  white-space: nowrap;
}

/* Icon-only variant for compact display */

.view-tabs.icon-only .view-tab {
  padding: 12px 16px;
}

.view-tabs.icon-only .view-tab span {
  display: none;
}

/* ================================
   BOARD LAYOUT WITH SIDEBAR
   ================================ */

.board-with-chat {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  overflow: hidden;
}

.board-with-chat.chat-collapsed {
  grid-template-columns: 1fr 48px;
}

/* When calendar view has unscheduled sidebar, use 3 columns */

.board-with-chat.with-unscheduled-sidebar {
  grid-template-columns: 280px 1fr 280px;
}

.board-with-chat.with-unscheduled-sidebar.chat-collapsed {
  grid-template-columns: 280px 1fr 48px;
}

.board-main {
  overflow: auto;
  background: var(--color-surface);
}

/* ================================
   CHAT SIDEBAR CONTAINER
   ================================ */

.chat-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-raised);
  border-left: 1px solid var(--color-border);
  height: 100%;
  overflow: hidden;
}

.chat-sidebar.collapsed {
  width: 48px;
}

.chat-sidebar.collapsed .chat-content,
.chat-sidebar.collapsed .chat-input-area,
.chat-sidebar.collapsed .chat-header-text {
  display: none;
}

/* ================================
   CHAT HEADER
   ================================ */

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-hover);
  flex-shrink: 0;
}

.chat-header-icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  background: var(--color-accent-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  overflow: hidden; /* Hide any overflow */
}

.chat-header-icon svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  flex-shrink: 0;
  fill: currentColor;
}

.chat-header-text {
  flex: 1;
  min-width: 0;
}

.chat-header-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.chat-header-text p {
  font-family: 'Lora', serif;
  font-size: 11px;
  color: var(--color-text-muted);
  margin: 0;
}

.chat-toggle-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: 4px;
  transition: all 0.15s ease;
}

.chat-toggle-btn:hover {
  background: var(--gray-100, #F5F5F3);
  color: var(--gray-600, #444444);
}

/* ================================
   CHAT MESSAGES AREA
   ================================ */

.chat-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0; /* Allows flex child to shrink below content size */
}

/* ================================
   CHAT MESSAGE BUBBLES
   ================================ */

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.chat-message.user {
  align-items: flex-end;
}

.chat-message.assistant {
  align-items: flex-start;
}

.chat-message-content {
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--black, #1A1A1A);
  max-width: 280px; /* Prevent overly long lines */
  word-wrap: break-word;
}

.chat-message.user .chat-message-content {
  background: var(--color-chat-user-bg);
  color: var(--color-chat-user-text);
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
}

.chat-message.assistant .chat-message-content {
  background: var(--color-chat-ai-bg);
  color: var(--color-chat-ai-text);
  padding: 12px 14px;
  border-radius: 16px 16px 16px 4px;
}

.chat-message-content p {
  margin: 0 0 8px 0;
}

.chat-message-content p:last-child {
  margin-bottom: 0;
}

.chat-message-content strong {
  font-weight: 600;
}

/* ================================
   SUGGESTION CHIPS
   ================================ */

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.suggestion-chip {
  font-family: 'Lora', serif;
  font-size: 12px;
  padding: 6px 12px;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--gray-200, #EBEBEB);
  border-radius: 16px;
  color: var(--gray-600, #444444);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.suggestion-chip:hover {
  border-color: var(--green, #2D5016);
  color: var(--green, #2D5016);
  background: var(--gray-100, #F5F5F3);
}

/* ================================
   CHAT INPUT AREA
   ================================ */

.chat-input-area {
  padding: 12px 16px 16px;
  border-top: 1px solid var(--gray-200, #EBEBEB);
  background: var(--white, #FFFFFF);
}

.chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  font-family: 'Lora', serif;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--gray-200, #EBEBEB);
  border-radius: 20px;
  background: var(--gray-50, #FAFAF9);
  color: var(--black, #1A1A1A);
  outline: none;
  transition: border-color 0.15s ease;
  min-height: 40px;
  resize: none;
}

.chat-input:focus {
  border-color: var(--green, #2D5016);
}

.chat-input::-moz-placeholder {
  color: var(--gray-400, #999999);
}

.chat-input::placeholder {
  color: var(--gray-400, #999999);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green, #2D5016);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: #3D6A1F;
}

.chat-send-btn:disabled {
  background: var(--gray-300, #D4D4D4);
  cursor: not-allowed;
}

.chat-send-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ================================
   TYPING INDICATOR
   ================================ */

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--gray-100, #F5F5F3);
  border-radius: 16px 16px 16px 4px;
  width: -moz-fit-content;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--gray-400, #999999);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ================================
   COLLAPSED STATE (Icon only)
   ================================ */

.chat-sidebar.collapsed {
  width: 48px;
  padding: 12px 0;
}

.chat-sidebar.collapsed .chat-header {
  flex-direction: column;
  padding: 12px 8px;
  border-bottom: none;
}

.chat-sidebar.collapsed .chat-toggle-btn {
  margin-top: 8px;
}

/* ================================
   ERROR MESSAGE
   ================================ */

.chat-error {
  font-family: 'Lora', serif;
  font-size: 12px;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

/* ================================
   EMPTY STATE
   ================================ */

.chat-empty-state {
  text-align: center;
  color: var(--gray-500, #666666);
  padding: 32px 16px;
}

.chat-empty-state p {
  font-family: 'Lora', serif;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.chat-empty-state p:last-child {
  font-size: 12px;
}

/* ================================
   MOBILE RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  .board-with-chat {
    grid-template-columns: 1fr;
  }
  
  .chat-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  
  .chat-sidebar.open {
    transform: translateX(0);
  }
  
  .chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .chat-overlay.visible {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ================================
   PLACE SUGGESTION CARDS
   ================================ */

.place-suggestion-card {
  background: white;
  border: 1px solid #EBEBEB;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.place-suggestion-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #9B5A9B;  /* Purple on hover */
}

.place-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.place-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
}

.place-info .category {
  font-family: 'Lora', serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #B8860B;  /* Gold color for places */
  margin: 0;
}

.place-info .summary {
  font-family: 'Lora', serif;
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
  margin: 0;
}

.add-to-board-btn {
  width: 100%;
  padding: 10px 16px;
  background: #2D5016;  /* Forest green */
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.add-to-board-btn:hover:not(:disabled) {
  background: #3D6B1F;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.2);
}

.add-to-board-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* AI-only place cards in chat */

.place-suggestion-card.ai-only {
  border: 1px solid #9B5A9B !important;
  background: linear-gradient(135deg, #F8F2F8 0%, #FFFFFF 40%) !important;
  position: relative;
}

.place-suggestion-card.ai-only:hover {
  border-color: #9B5A9B !important;
  box-shadow: 0 4px 12px rgba(155, 90, 155, 0.15);
}

.place-suggestion-card.ai-only .category {
  color: #9B5A9B !important;
}

.ai-recommended-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(155, 90, 155, 0.1);
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9B5A9B;
  font-weight: 600;
  margin-bottom: 8px;
  width: -moz-fit-content;
  width: fit-content;
}

.ai-recommended-badge .sparkle-icon {
  font-size: 12px;
}

.place-suggestion-card-taste-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: rgba(45, 80, 22, 0.1);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: #2D5016;
  font-weight: 500;
  margin-top: 6px;
  width: -moz-fit-content;
  width: fit-content;
}

/* React Grid Layout Overrides - !important intentional to override library defaults */

.react-grid-item {
  background: transparent !important;
  border: none !important;
  transition: all 200ms ease !important;
  transition-property: left, top, width, height !important;
}

.react-grid-item.react-grid-placeholder {
  background: rgba(45, 80, 22, 0.1) !important;
  border: 2px dashed #2D5016 !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  transition-duration: 100ms !important;
  z-index: 2 !important;
}

.react-grid-item.resizing {
  transition: none !important;
  z-index: 100 !important;
}

.react-grid-item.static {
  background: transparent !important;
}

/* Logo Animations - "out of office" reveal effect */

/* Stretch variant (horizontal) - shows "ooo" by default, expands to "out of office" on hover */

.logo-stretch {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: #2D5016;
  text-decoration: none;
  display: inline-block;
  overflow: visible;
  cursor: pointer;
}

.logo-stretch.inverted {
  color: #FFFFFF;
}

.logo-stretch .o {
  display: inline;
}

/* Hidden by default - only "ooo" shows */

.logo-stretch .reveal {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: baseline;
  transition: max-width 0.6s ease-out, opacity 0.4s ease-out;
}

/* On hover, expand to show full text */

.logo-stretch:hover .reveal {
  max-width: 60px;
  opacity: 1;
}

.logo-stretch:hover .reveal:nth-of-type(1) {
  transition-delay: 0s;
}

.logo-stretch:hover .reveal:nth-of-type(2) {
  transition-delay: 0.1s;
}

.logo-stretch:hover .reveal:nth-of-type(3) {
  transition-delay: 0.2s;
}

/* Space between words - hidden by default */

.logo-stretch .space {
  display: inline-block;
  width: 0;
  transition: width 0.4s ease-out;
}

.logo-stretch:hover .space {
  width: 0.25em;
}

/* Stacked variant (vertical) */

.logo-stacked {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  font-style: italic;
  color: #2D5016;
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  line-height: 0.8;
  text-align: left;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.logo-stacked.large {
  font-size: 64px;
}

.logo-stacked.xl {
  font-size: 80px;
}

.logo-stacked.inverted {
  color: #FFFFFF;
}

.logo-stacked .line {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.logo-stacked .line .rest {
  display: inline-block;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* On hover, replay animation - slower and more visible */

.logo-stacked:hover .line .rest {
  animation: revealText 1s ease-out forwards;
}

.logo-stacked:hover .line-1 .rest {
  animation-delay: 0s;
}

.logo-stacked:hover .line-2 .rest {
  animation-delay: 0.2s;
}

.logo-stacked:hover .line-3 .rest {
  animation-delay: 0.4s;
}

/* Badge variant */

.logo-badge {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  font-style: italic;
  color: #2D5016;
  text-decoration: none;
  display: inline-block;
}

.logo-badge.small {
  font-size: 18px;
}

.logo-badge.tiny {
  font-size: 14px;
}

.logo-badge.inverted {
  color: #FFFFFF;
}

/* Reveal animation - slower, more visible */

@keyframes revealText {
  0% {
    opacity: 0;
    transform: translateX(-15px);
  }
  30% {
    opacity: 0.4;
    transform: translateX(-8px);
  }
  70% {
    opacity: 0.8;
    transform: translateX(-2px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Respect reduced motion preference */

@media (prefers-reduced-motion: reduce) {
  .logo-stretch .reveal,
  .logo-stacked .line .rest {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ==========================================
   PRO UPGRADE BANNERS
   ========================================== */

.pro-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #FBF8F3;
  border: 1px solid #E5DED1;
  animation: slideDown 0.3s ease;
}

.pro-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.pro-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.pro-banner-text {
  margin: 0;
  font-size: 14px;
  color: #374151;
  flex: 1;
}

.pro-banner-cta {
  color: #2D5016;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  padding: 6px 12px;
  border-radius: 6px;
}

.pro-banner-cta:hover {
  background: rgba(45, 80, 22, 0.1);
}

.pro-banner-dismiss {
  background: none;
  border: none;
  font-size: var(--icon-sm);
  color: #9CA3AF;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-left: 12px;
  flex-shrink: 0;
  transition: all 0.2s;
  line-height: 1;
}

.pro-banner-dismiss:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #6B7280;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Mobile Responsive */

@media (max-width: 640px) {
  .pro-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .pro-banner-content {
    width: 100%;
  }
  
  .pro-banner-dismiss {
    position: absolute;
    top: 12px;
    right: 12px;
  }
  
  .pro-banner-cta {
    align-self: stretch;
    text-align: center;
  }
}

/* ==========================================
   CHECKOUT PAGE STYLES
   ========================================== */

.checkout-page {
  min-height: 100vh;
  background: #FAFAFA;
  padding: 40px 20px;
}

.checkout-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Left Side - Summary */

.checkout-summary {
  position: sticky;
  top: 40px;
}

.checkout-summary h1 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #1F2937;
  margin-bottom: 32px;
}

.plan-summary-card {
  background: white;
  border: 2px solid #E5DED1;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E7EB;
}

.plan-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #1F2937;
  margin: 0;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price .amount {
  font-size: 32px;
  font-weight: 700;
  color: #2D5016;
}

.plan-price .interval {
  font-size: 16px;
  color: #6B7280;
}

.checkout-page .savings-badge {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.trial-notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  margin-bottom: 24px;
}

.trial-notice .icon {
  font-size: 24px;
  flex-shrink: 0;
}

.trial-notice strong {
  display: block;
  color: #1F2937;
  font-size: 15px;
  margin-bottom: 4px;
}

.trial-notice p {
  margin: 0;
  color: #6B7280;
  font-size: 14px;
  line-height: 1.5;
}

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

.plan-features li {
  padding: 10px 0;
  color: #374151;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #6B7280;
}

.checkout-footer-links a {
  color: #2D5016;
  text-decoration: none;
}

.checkout-footer-links a:hover {
  text-decoration: underline;
}

.checkout-footer-links .divider {
  color: #D1D5DB;
}

/* Right Side - Form */

.checkout-form-container {
  background: white;
  border: 2px solid #E5DED1;
  border-radius: 16px;
  padding: 48px;
}

.checkout-form {
  max-width: 480px;
}

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: #1F2937;
  margin-bottom: 8px;
}

.form-header p {
  color: #6B7280;
  font-size: 14px;
  margin: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 15px;
}

.card-element-wrapper {
  padding: 14px 16px;
  border: 2px solid #E5DED1;
  border-radius: 8px;
  background: white;
  transition: border-color 0.2s;
}

.card-element-wrapper:focus-within {
  border-color: #2D5016;
  box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  color: #991B1B;
  font-size: 14px;
  margin-bottom: 20px;
}

.error-icon {
  flex-shrink: 0;
}

.submit-button {
  width: 100%;
  padding: 16px 24px;
  background: #2D5016;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-button:hover:not(:disabled) {
  background: #1F3A0E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.submit-button:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6B7280;
  font-size: 13px;
  margin-bottom: 12px;
}

.security-badge .icon {
  color: #10B981;
}

.charge-notice {
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Success State */

.checkout-success {
  text-align: center;
  padding: 60px 40px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: #D1FAE5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
}

.checkout-success h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #1F2937;
  margin-bottom: 12px;
}

.checkout-success p {
  color: #6B7280;
  font-size: 16px;
  margin: 8px 0;
}

.redirecting {
  color: #9CA3AF;
  font-size: 14px;
  font-style: italic;
}

/* Success Banner (for plan page) */

.success-banner {
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border: 2px solid #6EE7B7;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  animation: slideDown 0.3s ease;
}

.success-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.success-content .success-icon {
  width: 48px;
  height: 48px;
  background: #059669;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
  margin: 0;
}

.success-content strong {
  display: block;
  color: #065F46;
  font-size: 18px;
  margin-bottom: 4px;
}

.success-content p {
  margin: 0;
  color: #047857;
  font-size: 14px;
  line-height: 1.5;
}

/* Mobile Responsive */

@media (max-width: 968px) {
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-form-container {
    padding: 32px 24px;
  }
}

/* Board create / edit form buttons */

.board-create-btn {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border: none;
  border-radius: 4px;
  padding: 8px 20px;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
  flex: 1;
}

.board-create-btn:hover {
  background: var(--color-accent-hover);
}

.board-cancel-btn {
  display: inline-block;
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 8px 20px;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease;
  text-decoration: none;
}

.board-cancel-btn:hover {
  border-color: var(--color-border-strong);
}

/* Shared MapLibre control group styling (zoom, fullscreen) — used by BaseMap */

.maplibregl-ctrl-group {
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.maplibregl-ctrl-group button {
  width: 32px;
  height: 32px;
}

.maplibregl-ctrl-bottom-right {
  z-index: 2;
  bottom: 12px;
  right: 12px;
}

/* Taste Profile Quiz & Settings — design system (tq- prefix) */

/* === Typography === */

.tq-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--color-text-primary);
}

.tq-body {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.tq-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

.tq-step-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.tq-hint {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: var(--color-text-muted);
}

.tq-chip-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
}

.tq-btn-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
}

/* Placeholder — normal style, no italic */

.tq-input::-moz-placeholder, .tq-autocomplete-input::-moz-placeholder, [class*="tq-"] input::-moz-placeholder, [class*="tq-"] textarea::-moz-placeholder {
  font-style: normal;
  font-family: var(--font-body);
  color: var(--color-text-muted);
}

.tq-input::placeholder,
.tq-autocomplete-input::placeholder,
[class*="tq-"] input::placeholder,
[class*="tq-"] textarea::placeholder {
  font-style: normal;
  font-family: var(--font-body);
  color: var(--color-text-muted);
}

.tq-input {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
}

.tq-input:focus {
  outline: none;
  border-color: var(--color-input-focus);
}

[data-theme="dark"] .tq-input,
[data-theme="dark"] .tq-autocomplete-input,
[data-theme="dark"] [class*="tq-"] input {
  background: var(--color-input-bg);
  border-color: var(--color-input-border);
  color: var(--color-text-primary);
}

[data-theme="dark"] .tq-input::-moz-placeholder, [data-theme="dark"] .tq-autocomplete-input::-moz-placeholder {
  color: var(--color-text-muted);
  font-style: normal;
}

[data-theme="dark"] .tq-input::placeholder,
[data-theme="dark"] .tq-autocomplete-input::placeholder {
  color: var(--color-text-muted);
  font-style: normal;
}

/* === Modal === */

.tq-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-surface-overlay);
}

.tq-modal {
  width: 600px;
  max-width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-raised);
  border-radius: 16px;
  box-shadow: var(--color-shadow-xl);
  border: 1px solid var(--color-border);
}

.tq-modal-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tq-modal-heading-wrap {
  margin: 0;
  font-size: 26px;
}

.tq-btn-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--icon-md);
  line-height: 1;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.tq-btn-close:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.tq-modal-body {
  padding: 0 24px 24px;
  overflow-y: auto;
  flex: 1;
}

.tq-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tq-footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tq-skip-link {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
}

.tq-skip-link:hover {
  color: var(--color-text-primary);
}

.tq-step-mb { margin-bottom: 8px; }

.tq-step-mb-16 { margin-bottom: 16px; }

.tq-input-mb { margin-bottom: 12px; }

.tq-input-mb-8 { margin-bottom: 8px; }

.tq-chips-mt { margin-top: 16px; margin-bottom: 8px; }

.tq-chips-inline { display: flex; flex-wrap: wrap; gap: 8px; }

.tq-step-heading-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-surface-raised);
  padding-bottom: 8px;
}

/* Autocomplete dropdown (taste quiz) */

.tq-autocomplete-wrap { position: relative; }

.tq-autocomplete-list {
  margin-top: 4px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--color-shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  /* position and z-index set inline via portal */
}

.tq-ac-item {
  padding: 10px 14px;
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  color: var(--color-text-primary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.tq-ac-item:hover,
.tq-ac-item[aria-selected="true"],
.tq-ac-item.tq-ac-item-highlight {
  background: var(--color-surface-hover);
}

.tq-ac-item-secondary {
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* === Progress bar === */

.tq-progress-track {
  height: 3px;
  background: var(--color-border);
  width: 100%;
}

.tq-progress-fill {
  height: 100%;
  background: var(--color-accent);
  transition: width 0.4s ease;
}

/* === Chips === */

.tq-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.tq-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.tq-chip.tq-chip-selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
}

/* === Buttons === */

.tq-btn-primary {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  cursor: pointer;
}

.tq-btn-primary:hover {
  background: var(--color-accent-hover);
}

.tq-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tq-btn-clear {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.tq-btn-clear:hover {
  color: var(--color-text-primary);
}

/* === Filled card (spot) === */

.tq-filled-card {
  background: var(--color-surface-hover);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tq-filled-card-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
}

.tq-filled-card-meta {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: var(--color-text-muted);
}

/* === Destination tag === */

.tq-dest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-surface-hover);
  border-radius: 100px;
  padding: 6px 12px;
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: var(--color-text-primary);
}

.tq-dest-tag .tq-btn-clear {
  padding: 0 2px;
  margin: 0;
  font-size: 16px;
  line-height: 1;
}

/* === Toast === */

.tq-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  padding: 14px 24px;
  border-radius: 10px;
  box-shadow: var(--color-shadow-lg);
  z-index: 1000;
}

.tq-toast a {
  color: var(--ochre-500);
  text-decoration: underline;
}

/* === Settings summary === */

.tq-settings-section {
  background: var(--color-surface-raised);
  border-radius: 16px;
  box-shadow: var(--color-shadow-md);
  border: 1px solid var(--color-border);
  padding: 32px;
  margin-bottom: 24px;
}

.tq-settings-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 24px 0;
}

.tq-settings-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.tq-settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.tq-settings-row-chips {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px 16px;
}

.tq-settings-row-chips .tq-settings-label {
  padding-top: 2px;
}

.tq-settings-chips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 360px;
}

.tq-settings-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.tq-settings-value {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  color: var(--color-text-primary);
}

.tq-settings-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tq-settings-chip {
  background: var(--color-accent-muted);
  border-radius: 100px;
  padding: 4px 10px;
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-accent);
}

.tq-settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tq-btn-retake {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
}

.tq-btn-retake:hover {
  background: var(--color-accent-muted);
}

.tq-btn-setup {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  cursor: pointer;
}

.tq-btn-setup:hover {
  background: var(--color-accent-hover);
}

.tq-settings-empty {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 16px 0;
}

/* === Page variant (standalone /taste-profile page) === */

.tq-page-wrapper {
  min-height: 100vh;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.tq-page-container {
  width: 100%;
  max-width: 600px;
}

.tq-page-card {
  background: var(--color-surface-raised);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--color-shadow-md);
  border: 1px solid var(--color-border);
}

/* Retake confirmation modal */

.tq-retake-confirm-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-surface-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10020;
}

.tq-retake-confirm-dialog {
  background: var(--color-surface-raised);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 420px;
  margin: 24px;
  box-shadow: var(--color-shadow-xl);
  border: 1px solid var(--color-border);
}

.tq-retake-confirm-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: var(--color-text-primary);
  margin: 0 0 12px;
  line-height: 1.5;
}

.tq-retake-confirm-question {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 24px;
}

.tq-retake-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.tq-retake-confirm-cancel {
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.tq-retake-confirm-cancel:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-hover);
}

.tq-retake-confirm-ok {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  background: var(--color-accent);
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-inverse);
  cursor: pointer;
  transition: background 0.15s;
}

.tq-retake-confirm-ok:hover {
  background: var(--color-accent-hover);
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visible{
  visibility: visible;
}

.collapse{
  visibility: collapse;
}

.static{
  position: static;
}

.fixed{
  position: fixed;
}

.absolute{
  position: absolute;
}

.relative{
  position: relative;
}

.sticky{
  position: sticky;
}

.inset-0{
  inset: 0px;
}

.bottom-0{
  bottom: 0px;
}

.bottom-2{
  bottom: 0.5rem;
}

.left-0{
  left: 0px;
}

.left-1\/2{
  left: 50%;
}

.left-4{
  left: 1rem;
}

.right-0{
  right: 0px;
}

.right-2{
  right: 0.5rem;
}

.right-3{
  right: 0.75rem;
}

.right-4{
  right: 1rem;
}

.top-0{
  top: 0px;
}

.top-1\/2{
  top: 50%;
}

.top-16{
  top: 4rem;
}

.top-2{
  top: 0.5rem;
}

.top-20{
  top: 5rem;
}

.top-24{
  top: 6rem;
}

.top-4{
  top: 1rem;
}

.top-8{
  top: 2rem;
}

.top-9{
  top: 2.25rem;
}

.isolate{
  isolation: isolate;
}

.z-10{
  z-index: 10;
}

.z-50{
  z-index: 50;
}

.m-0{
  margin: 0px;
}

.m-4{
  margin: 1rem;
}

.mx-1{
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}

.mx-4{
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-auto{
  margin-left: auto;
  margin-right: auto;
}

.my-2{
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.my-6{
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.-mr-1{
  margin-right: -0.25rem;
}

.mb-0\.5{
  margin-bottom: 0.125rem;
}

.mb-1{
  margin-bottom: 0.25rem;
}

.mb-10{
  margin-bottom: 2.5rem;
}

.mb-12{
  margin-bottom: 3rem;
}

.mb-2{
  margin-bottom: 0.5rem;
}

.mb-3{
  margin-bottom: 0.75rem;
}

.mb-4{
  margin-bottom: 1rem;
}

.mb-6{
  margin-bottom: 1.5rem;
}

.mb-7{
  margin-bottom: 1.75rem;
}

.mb-8{
  margin-bottom: 2rem;
}

.ml-2{
  margin-left: 0.5rem;
}

.ml-3{
  margin-left: 0.75rem;
}

.ml-4{
  margin-left: 1rem;
}

.ml-auto{
  margin-left: auto;
}

.mr-0\.5{
  margin-right: 0.125rem;
}

.mr-1{
  margin-right: 0.25rem;
}

.mr-2{
  margin-right: 0.5rem;
}

.mt-0\.5{
  margin-top: 0.125rem;
}

.mt-1{
  margin-top: 0.25rem;
}

.mt-12{
  margin-top: 3rem;
}

.mt-2{
  margin-top: 0.5rem;
}

.mt-3{
  margin-top: 0.75rem;
}

.mt-4{
  margin-top: 1rem;
}

.mt-6{
  margin-top: 1.5rem;
}

.mt-8{
  margin-top: 2rem;
}

.mt-auto{
  margin-top: auto;
}

.line-clamp-2{
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.block{
  display: block;
}

.inline-block{
  display: inline-block;
}

.inline{
  display: inline;
}

.flex{
  display: flex;
}

.inline-flex{
  display: inline-flex;
}

.table{
  display: table;
}

.grid{
  display: grid;
}

.contents{
  display: contents;
}

.hidden{
  display: none;
}

.aspect-\[4\/3\]{
  aspect-ratio: 4/3;
}

.aspect-video{
  aspect-ratio: 16 / 9;
}

.h-10{
  height: 2.5rem;
}

.h-12{
  height: 3rem;
}

.h-16{
  height: 4rem;
}

.h-2{
  height: 0.5rem;
}

.h-24{
  height: 6rem;
}

.h-3{
  height: 0.75rem;
}

.h-32{
  height: 8rem;
}

.h-4{
  height: 1rem;
}

.h-5{
  height: 1.25rem;
}

.h-6{
  height: 1.5rem;
}

.h-64{
  height: 16rem;
}

.h-8{
  height: 2rem;
}

.h-96{
  height: 24rem;
}

.h-\[80vh\]{
  height: 80vh;
}

.h-full{
  height: 100%;
}

.max-h-60{
  max-height: 15rem;
}

.max-h-64{
  max-height: 16rem;
}

.max-h-\[60vh\]{
  max-height: 60vh;
}

.max-h-\[80vh\]{
  max-height: 80vh;
}

.max-h-\[90vh\]{
  max-height: 90vh;
}

.min-h-\[300px\]{
  min-height: 300px;
}

.min-h-full{
  min-height: 100%;
}

.min-h-screen{
  min-height: 100vh;
}

.w-10{
  width: 2.5rem;
}

.w-11{
  width: 2.75rem;
}

.w-12{
  width: 3rem;
}

.w-16{
  width: 4rem;
}

.w-2{
  width: 0.5rem;
}

.w-20{
  width: 5rem;
}

.w-24{
  width: 6rem;
}

.w-3{
  width: 0.75rem;
}

.w-4{
  width: 1rem;
}

.w-48{
  width: 12rem;
}

.w-5{
  width: 1.25rem;
}

.w-6{
  width: 1.5rem;
}

.w-64{
  width: 16rem;
}

.w-8{
  width: 2rem;
}

.w-80{
  width: 20rem;
}

.w-\[40\%\]{
  width: 40%;
}

.w-\[60\%\]{
  width: 60%;
}

.w-full{
  width: 100%;
}

.w-px{
  width: 1px;
}

.min-w-0{
  min-width: 0px;
}

.min-w-\[120px\]{
  min-width: 120px;
}

.min-w-\[140px\]{
  min-width: 140px;
}

.min-w-full{
  min-width: 100%;
}

.max-w-2xl{
  max-width: 42rem;
}

.max-w-3xl{
  max-width: 48rem;
}

.max-w-4xl{
  max-width: 56rem;
}

.max-w-5xl{
  max-width: 64rem;
}

.max-w-6xl{
  max-width: 72rem;
}

.max-w-7xl{
  max-width: 80rem;
}

.max-w-\[80\%\]{
  max-width: 80%;
}

.max-w-lg{
  max-width: 32rem;
}

.max-w-md{
  max-width: 28rem;
}

.max-w-xl{
  max-width: 36rem;
}

.flex-1{
  flex: 1 1 0%;
}

.flex-shrink{
  flex-shrink: 1;
}

.flex-shrink-0{
  flex-shrink: 0;
}

.border-collapse{
  border-collapse: collapse;
}

.-translate-x-1\/2{
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-y-1\/2{
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.rotate-180{
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-100{
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-105{
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.scale-95{
  --tw-scale-x: .95;
  --tw-scale-y: .95;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes bounce{

  0%, 100%{
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }

  50%{
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}

.animate-bounce{
  animation: bounce 1s infinite;
}

@keyframes pulse{

  50%{
    opacity: .5;
  }
}

.animate-pulse{
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin{

  to{
    transform: rotate(360deg);
  }
}

.animate-spin{
  animation: spin 1s linear infinite;
}

.cursor-move{
  cursor: move;
}

.cursor-not-allowed{
  cursor: not-allowed;
}

.cursor-pointer{
  cursor: pointer;
}

.resize-none{
  resize: none;
}

.resize{
  resize: both;
}

.list-inside{
  list-style-position: inside;
}

.list-decimal{
  list-style-type: decimal;
}

.list-disc{
  list-style-type: disc;
}

.list-none{
  list-style-type: none;
}

.grid-cols-1{
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flex-col{
  flex-direction: column;
}

.flex-wrap{
  flex-wrap: wrap;
}

.items-start{
  align-items: flex-start;
}

.items-center{
  align-items: center;
}

.justify-start{
  justify-content: flex-start;
}

.justify-end{
  justify-content: flex-end;
}

.justify-center{
  justify-content: center;
}

.justify-between{
  justify-content: space-between;
}

.gap-1{
  gap: 0.25rem;
}

.gap-1\.5{
  gap: 0.375rem;
}

.gap-2{
  gap: 0.5rem;
}

.gap-3{
  gap: 0.75rem;
}

.gap-4{
  gap: 1rem;
}

.gap-5{
  gap: 1.25rem;
}

.gap-6{
  gap: 1.5rem;
}

.gap-7{
  gap: 1.75rem;
}

.gap-8{
  gap: 2rem;
}

.space-x-3 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-y-1 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}

.space-y-2 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.space-y-3 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}

.space-y-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-5 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.overflow-auto{
  overflow: auto;
}

.overflow-hidden{
  overflow: hidden;
}

.overflow-x-auto{
  overflow-x: auto;
}

.overflow-y-auto{
  overflow-y: auto;
}

.truncate{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.whitespace-nowrap{
  white-space: nowrap;
}

.whitespace-pre-wrap{
  white-space: pre-wrap;
}

.rounded{
  border-radius: 0.25rem;
}

.rounded-2xl{
  border-radius: 1rem;
}

.rounded-\[10px\]{
  border-radius: 10px;
}

.rounded-full{
  border-radius: 9999px;
}

.rounded-lg{
  border-radius: 12px;
}

.rounded-md{
  border-radius: 8px;
}

.rounded-pill{
  border-radius: 100px;
}

.rounded-xl{
  border-radius: 0.75rem;
}

.rounded-t{
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.border{
  border-width: 1px;
}

.border-0{
  border-width: 0px;
}

.border-2{
  border-width: 2px;
}

.border-4{
  border-width: 4px;
}

.border-b{
  border-bottom-width: 1px;
}

.border-b-2{
  border-bottom-width: 2px;
}

.border-l-4{
  border-left-width: 4px;
}

.border-t{
  border-top-width: 1px;
}

.border-dashed{
  border-style: dashed;
}

.border-none{
  border-style: none;
}

.border-\[\#2D5016\]{
  --tw-border-opacity: 1;
  border-color: rgb(45 80 22 / var(--tw-border-opacity, 1));
}

.border-\[\#2D5016\]\/40{
  border-color: rgb(45 80 22 / 0.4);
}

.border-\[\#D1D1CF\]{
  --tw-border-opacity: 1;
  border-color: rgb(209 209 207 / var(--tw-border-opacity, 1));
}

.border-\[\#E8EDE5\]{
  --tw-border-opacity: 1;
  border-color: rgb(232 237 229 / var(--tw-border-opacity, 1));
}

.border-black{
  border-color: var(--gray-900);
}

.border-blue-400{
  --tw-border-opacity: 1;
  border-color: rgb(96 165 250 / var(--tw-border-opacity, 1));
}

.border-blue-600{
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}

.border-gray-100{
  border-color: var(--gray-100);
}

.border-gray-200{
  border-color: var(--gray-200);
}

.border-gray-300{
  border-color: var(--gray-300);
}

.border-gray-900{
  border-color: var(--gray-900);
}

.border-green-100{
  --tw-border-opacity: 1;
  border-color: rgb(220 252 231 / var(--tw-border-opacity, 1));
}

.border-green-200{
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}

.border-green-300{
  --tw-border-opacity: 1;
  border-color: rgb(134 239 172 / var(--tw-border-opacity, 1));
}

.border-primary{
  border-color: var(--color-accent);
}

.border-red-200{
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}

.border-red-300{
  --tw-border-opacity: 1;
  border-color: rgb(252 165 165 / var(--tw-border-opacity, 1));
}

.border-red-400{
  --tw-border-opacity: 1;
  border-color: rgb(248 113 113 / var(--tw-border-opacity, 1));
}

.border-red-500{
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.border-stone-100{
  --tw-border-opacity: 1;
  border-color: rgb(245 245 244 / var(--tw-border-opacity, 1));
}

.border-stone-200{
  --tw-border-opacity: 1;
  border-color: rgb(231 229 228 / var(--tw-border-opacity, 1));
}

.border-stone-300{
  --tw-border-opacity: 1;
  border-color: rgb(214 211 209 / var(--tw-border-opacity, 1));
}

.border-transparent{
  border-color: transparent;
}

.border-t-gray-900{
  border-top-color: var(--gray-900);
}

.bg-\[\#1C1C1C\]{
  --tw-bg-opacity: 1;
  background-color: rgb(28 28 28 / var(--tw-bg-opacity, 1));
}

.bg-\[\#2D5016\]{
  --tw-bg-opacity: 1;
  background-color: rgb(45 80 22 / var(--tw-bg-opacity, 1));
}

.bg-\[\#2D5016\]\/10{
  background-color: rgb(45 80 22 / 0.1);
}

.bg-\[\#E8EDE5\]{
  --tw-bg-opacity: 1;
  background-color: rgb(232 237 229 / var(--tw-bg-opacity, 1));
}

.bg-amber-500{
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}

.bg-black{
  background-color: var(--gray-900);
}

.bg-blue-50{
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.bg-blue-500{
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}

.bg-blue-600{
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.bg-butter{
  --tw-bg-opacity: 1;
  background-color: rgb(245 230 200 / var(--tw-bg-opacity, 1));
}

.bg-cream{
  background-color: var(--cream-50);
}

.bg-emerald-500{
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}

.bg-gray-100{
  background-color: var(--gray-100);
}

.bg-gray-200{
  background-color: var(--gray-200);
}

.bg-gray-300{
  background-color: var(--gray-300);
}

.bg-gray-400{
  background-color: var(--gray-400);
}

.bg-gray-50{
  background-color: var(--gray-50);
}

.bg-gray-500{
  background-color: var(--gray-500);
}

.bg-gray-900{
  background-color: var(--gray-900);
}

.bg-green-100{
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}

.bg-green-50{
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
}

.bg-green-50\/30{
  background-color: rgb(240 253 244 / 0.3);
}

.bg-green-700{
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}

.bg-green-900{
  --tw-bg-opacity: 1;
  background-color: rgb(20 83 45 / var(--tw-bg-opacity, 1));
}

.bg-pink-500{
  --tw-bg-opacity: 1;
  background-color: rgb(236 72 153 / var(--tw-bg-opacity, 1));
}

.bg-primary{
  background-color: var(--color-accent);
}

.bg-primary-light{
  background-color: var(--color-accent-hover);
}

.bg-purple-50{
  --tw-bg-opacity: 1;
  background-color: rgb(250 245 255 / var(--tw-bg-opacity, 1));
}

.bg-purple-500{
  --tw-bg-opacity: 1;
  background-color: rgb(168 85 247 / var(--tw-bg-opacity, 1));
}

.bg-red-50{
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.bg-red-600{
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}

.bg-stone-100{
  --tw-bg-opacity: 1;
  background-color: rgb(245 245 244 / var(--tw-bg-opacity, 1));
}

.bg-stone-50{
  --tw-bg-opacity: 1;
  background-color: rgb(250 250 249 / var(--tw-bg-opacity, 1));
}

.bg-stone-900{
  --tw-bg-opacity: 1;
  background-color: rgb(28 25 23 / var(--tw-bg-opacity, 1));
}

.bg-transparent{
  background-color: transparent;
}

.bg-warm-white{
  background-color: var(--cream-50);
}

.bg-white{
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-opacity-50{
  --tw-bg-opacity: 0.5;
}

.bg-opacity-75{
  --tw-bg-opacity: 0.75;
}

.bg-gradient-to-b{
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-br{
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r{
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-\[\#2D5016\]{
  --tw-gradient-from: #2D5016 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(45 80 22 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-butter{
  --tw-gradient-from: #F5E6C8 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(245 230 200 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-primary{
  --tw-gradient-from: var(--color-accent) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-\[\#3d6b1e\]{
  --tw-gradient-to: #3d6b1e var(--tw-gradient-to-position);
}

.to-primary-light{
  --tw-gradient-to: var(--color-accent-hover) var(--tw-gradient-to-position);
}

.fill-amber-400{
  fill: #fbbf24;
}

.object-cover{
  -o-object-fit: cover;
     object-fit: cover;
}

.p-0{
  padding: 0px;
}

.p-1{
  padding: 0.25rem;
}

.p-2{
  padding: 0.5rem;
}

.p-3{
  padding: 0.75rem;
}

.p-4{
  padding: 1rem;
}

.p-5{
  padding: 1.25rem;
}

.p-6{
  padding: 1.5rem;
}

.p-7{
  padding: 1.75rem;
}

.p-8{
  padding: 2rem;
}

.px-1{
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-12{
  padding-left: 3rem;
  padding-right: 3rem;
}

.px-2{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5{
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6{
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-7{
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.px-8{
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-0\.5{
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1{
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-1\.5{
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-12{
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16{
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2\.5{
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.py-24{
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-3{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4{
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6{
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-1{
  padding-bottom: 0.25rem;
}

.pb-2{
  padding-bottom: 0.5rem;
}

.pb-4{
  padding-bottom: 1rem;
}

.pl-4{
  padding-left: 1rem;
}

.pl-6{
  padding-left: 1.5rem;
}

.pl-8{
  padding-left: 2rem;
}

.pr-12{
  padding-right: 3rem;
}

.pr-3{
  padding-right: 0.75rem;
}

.pr-4{
  padding-right: 1rem;
}

.pt-2{
  padding-top: 0.5rem;
}

.pt-4{
  padding-top: 1rem;
}

.pt-8{
  padding-top: 2rem;
}

.text-left{
  text-align: left;
}

.text-center{
  text-align: center;
}

.text-right{
  text-align: right;
}

.font-body{
  font-family: Lora, Georgia, serif;
}

.font-display{
  font-family: Playfair Display, Georgia, serif;
}

.font-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.font-serif{
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl{
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl{
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl{
  font-size: 3rem;
  line-height: 1;
}

.text-\[10px\]{
  font-size: 10px;
}

.text-\[9px\]{
  font-size: 9px;
}

.text-base{
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl{
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold{
  font-weight: 700;
}

.font-medium{
  font-weight: 500;
}

.font-normal{
  font-weight: 400;
}

.font-semibold{
  font-weight: 600;
}

.uppercase{
  text-transform: uppercase;
}

.lowercase{
  text-transform: lowercase;
}

.capitalize{
  text-transform: capitalize;
}

.italic{
  font-style: italic;
}

.leading-none{
  line-height: 1;
}

.leading-relaxed{
  line-height: 1.625;
}

.leading-tight{
  line-height: 1.25;
}

.tracking-wide{
  letter-spacing: 0.025em;
}

.tracking-wider{
  letter-spacing: 0.05em;
}

.tracking-widest{
  letter-spacing: 0.1em;
}

.text-\[\#2D5016\]{
  --tw-text-opacity: 1;
  color: rgb(45 80 22 / var(--tw-text-opacity, 1));
}

.text-\[\#525250\]{
  --tw-text-opacity: 1;
  color: rgb(82 82 80 / var(--tw-text-opacity, 1));
}

.text-\[\#8B5A6B\]{
  --tw-text-opacity: 1;
  color: rgb(139 90 107 / var(--tw-text-opacity, 1));
}

.text-\[\#9A8570\]{
  --tw-text-opacity: 1;
  color: rgb(154 133 112 / var(--tw-text-opacity, 1));
}

.text-\[\#A4697A\]{
  --tw-text-opacity: 1;
  color: rgb(164 105 122 / var(--tw-text-opacity, 1));
}

.text-\[\#B8860B\]{
  --tw-text-opacity: 1;
  color: rgb(184 134 11 / var(--tw-text-opacity, 1));
}

.text-amber-400{
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}

.text-amber-500{
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}

.text-black{
  color: var(--gray-900);
}

.text-blue-500{
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.text-blue-600{
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-blue-700{
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}

.text-gray-300{
  color: var(--gray-300);
}

.text-gray-400{
  color: var(--gray-400);
}

.text-gray-500{
  color: var(--gray-500);
}

.text-gray-600{
  color: var(--gray-600);
}

.text-gray-700{
  color: var(--gray-700);
}

.text-gray-900{
  color: var(--gray-900);
}

.text-green-500{
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}

.text-green-600{
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}

.text-green-800{
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}

.text-inherit{
  color: inherit;
}

.text-primary{
  color: var(--color-accent);
}

.text-primary-muted{
  color: var(--green-500);
}

.text-purple-600{
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}

.text-red-600{
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-red-700{
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}

.text-red-800{
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.text-stone-400{
  --tw-text-opacity: 1;
  color: rgb(168 162 158 / var(--tw-text-opacity, 1));
}

.text-stone-500{
  --tw-text-opacity: 1;
  color: rgb(120 113 108 / var(--tw-text-opacity, 1));
}

.text-stone-600{
  --tw-text-opacity: 1;
  color: rgb(87 83 78 / var(--tw-text-opacity, 1));
}

.text-stone-700{
  --tw-text-opacity: 1;
  color: rgb(68 64 60 / var(--tw-text-opacity, 1));
}

.text-stone-900{
  --tw-text-opacity: 1;
  color: rgb(28 25 23 / var(--tw-text-opacity, 1));
}

.text-white{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-white\/70{
  color: rgb(255 255 255 / 0.7);
}

.underline{
  text-decoration-line: underline;
}

.line-through{
  text-decoration-line: line-through;
}

.no-underline{
  text-decoration-line: none;
}

.antialiased{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.placeholder-gray-400::-moz-placeholder{
  color: var(--gray-400);
}

.placeholder-gray-400::placeholder{
  color: var(--gray-400);
}

.opacity-0{
  opacity: 0;
}

.opacity-100{
  opacity: 1;
}

.opacity-25{
  opacity: 0.25;
}

.opacity-75{
  opacity: 0.75;
}

.opacity-80{
  opacity: 0.8;
}

.opacity-90{
  opacity: 0.9;
}

.shadow{
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-2xl{
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-\[0_2px_10px_rgba\(45\2c 80\2c 22\2c 0\.35\)\]{
  --tw-shadow: 0 2px 10px rgba(45,80,22,0.35);
  --tw-shadow-colored: 0 2px 10px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-lg{
  --tw-shadow: 0 8px 32px rgba(0,0,0,0.08);
  --tw-shadow-colored: 0 8px 32px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-md{
  --tw-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --tw-shadow-colored: 0 4px 20px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-sm{
  --tw-shadow: 0 2px 8px rgba(0,0,0,0.04);
  --tw-shadow-colored: 0 2px 8px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl{
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.outline-none{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.outline{
  outline-style: solid;
}

.ring{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.blur{
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow{
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-blur-sm{
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.backdrop-filter{
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all{
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-opacity{
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-shadow{
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform{
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-100{
  transition-duration: 100ms;
}

.duration-200{
  transition-duration: 200ms;
}

.duration-75{
  transition-duration: 75ms;
}

.ease-in{
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.ease-in-out{
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.ease-out{
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* Page-specific (city_guides last to override other card styles) */

/* ============================================
   DESTINATION PAGE LAYOUT
   ooo.travel - Modern Editorial Design
   ============================================ */

/* ============================================
   PAGE CONTAINER
   ============================================ */

.destination-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--color-surface);
  min-height: 100vh;
  color: var(--color-text-primary);
}

/* ============================================
   COMPRESSED HEADER (Phase 4)
   ============================================ */

.destination-header-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.destination-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-inline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumbs-inline .breadcrumb-link {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumbs-inline .breadcrumb-link:hover {
  color: var(--color-text-secondary);
}

.breadcrumbs-inline .breadcrumb-sep {
  font-size: 12px;
  color: var(--color-border-strong);
}

.destination-title-inline {
  font-size: 24px;
  font-weight: 600;
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
}

.destination-meta {
  font-size: 12px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ============================================
   CONTENT AREA (full width, no sidebar)
   ============================================ */

.destination-content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   CITY SECTIONS
   ============================================ */

.city-section {
  scroll-margin-top: 100px;
  margin-bottom: 3rem;
}

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

.city-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.city-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.city-count {
  font-family: 'Lora', serif;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   NO RESULTS
   ============================================ */

.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.clear-link {
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.clear-link:hover {
  color: var(--color-accent-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1000px) {
  .destination-page {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .destination-page {
    padding: 1rem;
  }
  
  .destination-header h1 {
    font-size: 2rem;
  }
  
  .city-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ============================================
   EXPLORE PAGE — React island split-view
   ============================================ */

/* TEMP TEST — delete after confirming CSS pipeline */

body { outline: 5px solid red !important; }

/* Noscript fallback grid */

.explore-fallback .explore-fallback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* React mount point must fill layout container height so flex chain gets real dimensions.
   For authenticated app, --nav-height is 0 so height is 100vh. */

#explore-root {
  height: calc(100vh - var(--nav-height, 52px));
  width: 100%;
  overflow: hidden;
}

/* When Explore is mounted, constrain body and main so the flex layout is viewport-bound.
   Use body.explore (set by layout from controller_name) so it applies from first paint
   and works without :has(); keep :has() as fallback where supported. */

body.explore {
  height: 100vh;
  overflow: hidden;
}

body.explore #main-content,
body:has(#explore-root) #main-content {
  height: calc(100vh - var(--nav-height, 52px));
  overflow: hidden;
  flex: none;
}

/* Fill #explore-root; container-relative so sidebar layout does not cause horizontal overflow */

.explore-page {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
}

.explore-app {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: 100%;
}

.explore-left-panel {
  width: var(--explore-left-width, 44%);
  min-width: 340px;
  max-width: 70%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  min-height: 0;
  overflow: hidden;
  height: 100%;
  color: var(--color-text-primary);
}

.explore-resizer {
  flex: 0 0 6px;
  width: 6px;
  min-width: 6px;
  cursor: col-resize;
  background: var(--color-border);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.15s;
}

.explore-resizer:hover,
.explore-app-resizing .explore-resizer {
  background: var(--color-accent);
}

.explore-app-resizing {
  cursor: col-resize;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.explore-search-wrapper {
  padding: 14px 20px 0;
  flex-shrink: 0;
  position: relative;
}

.explore-search-form {
  margin: 0;
}

.explore-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 9px 14px;
}

.explore-search-input input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 13px;
  font-family: 'Lora', Georgia, serif;
  color: var(--color-text-primary);
  background: transparent;
  min-width: 0;
}

.explore-search-input input::-moz-placeholder {
  color: #999;
}

.explore-search-input input::placeholder {
  color: #999;
}

.explore-search-clear {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 13px;
  padding: 0 4px;
  line-height: 1;
}

.explore-search-clear:hover {
  color: #666;
}

.explore-search-ai-toggle {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid #E8EDE5;
  border-radius: 6px;
  background: #E8EDE5;
  color: #2D5016;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Lora', Georgia, serif;
  cursor: pointer;
}

.explore-search-ai-toggle:hover {
  background: #d4dfd0;
  border-color: #d4dfd0;
}

.explore-search-suggestions {
  position: absolute;
  top: 100%;
  left: 20px;
  right: 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  max-height: 280px;
  overflow-y: auto;
  z-index: 50;
}

.explore-search-suggestion {
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'Lora', Georgia, serif;
  color: var(--color-text-primary);
  cursor: pointer;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.explore-search-suggestion:last-child {
  border-bottom: none;
}

.explore-search-suggestion:hover,
.explore-search-suggestion.selected {
  background: var(--color-surface-hover);
}

.explore-search-suggestion-name {
  font-weight: 500;
}

.explore-search-suggestion-meta {
  font-size: 12px;
  color: var(--color-text-muted);
}

.explore-search-suggestion-loading {
  cursor: default;
  color: var(--color-text-muted);
}

.explore-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px;
  margin: 12px 0 8px;
  flex-shrink: 0;
}

.filter-group-wrapper {
  display: inline-flex;
  flex-direction: column;
  position: relative;
}

/* When chips open below the row, add spacing above chip set for non-first groups */

.filter-group-wrapper.is-open:not(:first-child) .filter-group-chips {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 8px;
}

.filter-group-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 2px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 150ms ease;
}

.filter-group-header:hover {
  border-color: var(--color-text-muted);
}

.filter-group-header.has-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface-hover);
}

.filter-group-badge {
  background: #2D5016;
  color: white;
  border-radius: 10px;
  font-size: 10px;
  padding: 1px 6px;
  font-weight: 600;
  line-height: 16px;
}

.filter-group-chevron {
  font-size: 9px;
  transition: transform 0.2s;
  display: inline-block;
}

.filter-group-wrapper.is-open .filter-group-chevron {
  transform: rotate(180deg);
}

.filter-group-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0 16px;
  animation: exploreChipSlide 0.15s ease-out;
}

.filter-chip {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Lora', Georgia, serif;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  border: 1px solid var(--color-border-subtle, #ddd);
  background: var(--color-surface, #ffffff);
  color: var(--color-text-secondary, #666);
  font-weight: 400;
}

.filter-chip:hover {
  border-color: var(--color-accent, #2D5016);
  color: var(--color-accent, #2D5016);
}

.filter-chip.active {
  background: #2D4F2D !important;
  color: #FFFFFF !important;
  border-color: #2D4F2D !important;
  font-weight: 500;
}

.filter-chip-region.active {
  background: var(--color-accent, #2D5016);
  border-color: var(--color-accent, #2D5016);
}

.explore-clear-all {
  padding: 6px 10px;
  background: none;
  border: none;
  font-size: 12px;
  color: #999;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: center;
}

.explore-clear-all:hover {
  color: #2D5016;
}

.explore-clear-all:focus-visible,
.filter-group-header:focus-visible,
.filter-chip:focus-visible,
.explore-sort-trigger:focus-visible,
.explore-tab:focus-visible {
  outline: 2px solid #2D5016;
  outline-offset: 2px;
}

/* Tab bar */

.explore-tabs {
  display: flex;
  gap: 0;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.explore-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 16px 10px;
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.explore-tab:hover {
  color: var(--color-text-primary);
}

.explore-tab.active,
.explore-tab[aria-selected="true"] {
  font-weight: 600;
  border-bottom-color: var(--color-accent);
  color: var(--color-text-primary);
}

[data-theme="dark"] .explore-tab.active,
[data-theme="dark"] .explore-tab[aria-selected="true"],
[data-theme="dark"] .explore-tab--active {
  border-bottom-color: var(--color-accent);
  color: var(--color-text-primary);
}

[data-theme="dark"] .explore-tab {
  color: var(--color-text-secondary);
}

.explore-tab-badge {
  background: rgba(196, 148, 26, 0.1);
  color: #C4941A;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
}

.explore-results-bar {
  padding: 10px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.explore-results-count {
  font-family: 'Lora', Georgia, serif;
}

.explore-sort-dropdown {
  position: relative;
}

.explore-sort-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #E8E8E8;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  color: #666;
}

.explore-sort-trigger:hover {
  border-color: #D4CFC7;
}

.explore-sort-chevron {
  font-size: 9px;
  transition: transform 0.15s;
}

.explore-sort-chevron.open {
  transform: rotate(180deg);
}

.explore-sort-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-width: 140px;
}

.explore-sort-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  background: var(--color-surface-raised);
  color: var(--color-text-secondary);
  font-weight: 400;
}

.explore-sort-option:hover {
  background: var(--color-surface-hover);
}

.explore-sort-option.active {
  background: var(--color-surface-hover);
  color: var(--color-accent);
  font-weight: 500;
}

.explore-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 20px;
  min-height: 0;
}

/* Old template shelf styles removed - now using A1 cards in tab */

/* A1 Horizontal Template Card */

.explore-template-card-a1 {
  display: flex;
  align-items: stretch;
  background: var(--color-surface-raised);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  min-height: 60px;
}

.explore-template-card-a1:hover {
  border-color: #C4941A;
}

/* 3px left stripe (ochre) */

.explore-template-card-a1-stripe {
  width: 3px;
  flex-shrink: 0;
  border-radius: 4px 0 0 4px;
}

/* Content area (flex: 1) */

.explore-template-card-a1-content {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.explore-template-card-a1-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.explore-template-card-a1-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.explore-template-card-a1-chip {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  font-weight: 500;
  color: #C4941A;
  background: rgba(196, 148, 26, 0.12);
  padding: 3px 8px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.explore-template-card-a1-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-template-card-a1-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.explore-template-card-a1-count {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #999;
}

.explore-template-card-a1-cta {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #1A1A1A;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.15s, color 0.15s;
  white-space: nowrap;
}

.explore-template-card-a1:hover .explore-template-card-a1-cta {
  opacity: 1;
}

/* 60px thumbnail */

.explore-template-card-a1-thumb {
  width: 60px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0 4px 4px 0;
}

.explore-template-card-a1-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.explore-template-card-a1-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.explore-template-card-a1-fallback-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  padding-bottom: 6px;
}

/* Template list */

.explore-template-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.explore-see-all-templates {
  margin-top: 24px;
  padding: 16px 0;
  text-align: center;
}

.explore-see-all-link {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: #2D5016;
  text-decoration: none;
}

.explore-see-all-link:hover {
  text-decoration: underline;
}

.explore-grid-divider {
  height: 1px;
  background: var(--color-border);
  margin: 2px 0 12px;
}

/* Single column list for A1 cards */

.explore-destination-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

/* A1 Horizontal Destination Card */

.explore-destination-card-a1 {
  display: flex;
  align-items: stretch;
  background: var(--color-surface-raised);
  border-radius: 4px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  min-height: 72px;
}

.explore-destination-card-a1:hover {
  border-color: var(--color-accent);
}

.explore-destination-card-a1.highlighted {
  border-color: var(--color-accent);
  box-shadow: 0 1px 8px rgba(45, 80, 22, 0.08);
  background-color: var(--color-surface-hover);
}

.explore-destination-card-a1:focus-visible {
  outline: 2px solid #2D5016;
  outline-offset: 2px;
}

/* 3px left stripe */

.explore-card-a1-stripe {
  width: 3px;
  flex-shrink: 0;
  border-radius: 4px 0 0 4px;
}

/* Content area (flex: 1) */

.explore-card-a1-content {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0; /* Allow text truncation */
}

.explore-card-a1-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.explore-card-a1-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.explore-card-a1-country {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.explore-card-a1-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.explore-card-a1-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.explore-card-a1-count {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #999;
}

.explore-card-a1-cta {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #1A1A1A;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.explore-destination-card-a1:hover .explore-card-a1-cta {
  opacity: 1;
}

/* 72px thumbnail */

.explore-card-a1-thumb {
  width: 72px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0 4px 4px 0;
}

.explore-card-a1-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.explore-card-a1-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.explore-card-a1-fallback-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  padding-bottom: 8px;
}

/* Heart button (overlapping top-right) */

.explore-card-a1-heart {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.15s, background 0.15s;
  color: #666;
}

.explore-card-a1-heart.saved {
  color: #2D5016;
}

/* Dark mode — A1 destination/experience cards (explore.css hardcodes light colors) */

[data-theme="dark"] .explore-destination-card-a1 .explore-card-a1-title {
  color: var(--text-primary, #f5f5f5);
}

[data-theme="dark"] .explore-destination-card-a1 .explore-card-a1-country,
[data-theme="dark"] .explore-destination-card-a1 .explore-card-a1-count {
  color: var(--text-secondary, #999);
}

[data-theme="dark"] .explore-destination-card-a1 .explore-card-a1-tagline {
  color: var(--text-secondary, #999);
}

[data-theme="dark"] .explore-destination-card-a1 .explore-card-a1-cta {
  color: var(--text-primary, #f5f5f5);
}

[data-theme="dark"] .explore-destination-card-a1 .explore-card-a1-heart {
  background: var(--color-surface-raised, #2a2a2a);
  color: var(--text-secondary, #999);
}

[data-theme="dark"] .explore-destination-card-a1 .explore-card-a1-heart.saved {
  color: #2D5016;
}

.explore-destination-card-media {
  height: 96px;
  position: relative;
  overflow: hidden;
}

.explore-destination-card-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.explore-card-gradient-sage {
  background: linear-gradient(145deg, #9aab8e 0%, #7d9470 50%, #5f7a52 100%);
}

.explore-card-gradient-mauve {
  background: linear-gradient(145deg, #b8a0a8 0%, #9d8490 50%, #826878 100%);
}

.explore-card-gradient-sand {
  background: linear-gradient(145deg, #c4b59a 0%, #a8987a 50%, #8b7a5c 100%);
}

.explore-card-gradient-slate {
  background: linear-gradient(145deg, #8b9aa8 0%, #6b7a88 50%, #4d5c6a 100%);
}

.explore-destination-card-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #666;
  opacity: 1;
  transition: opacity 0.15s, background 0.15s;
}

.explore-destination-card-heart.saved {
  color: #2D5016;
}

.explore-destination-card-content {
  padding: 10px 12px 11px;
}

.explore-destination-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.explore-destination-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.2;
}

.explore-destination-card-count {
  font-size: 11px;
  color: #ccc;
}

.explore-destination-card-country {
  font-size: 12px;
  color: #999;
  margin: 2px 0 0;
  font-family: 'Lora', Georgia, serif;
}

.explore-empty-state {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

.explore-empty-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.explore-empty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  color: #666;
  margin: 0;
}

.explore-empty-subtitle {
  font-size: 12px;
  margin-top: 4px;
  margin: 0;
}

.explore-empty-state .explore-clear-all {
  margin-top: 12px;
}

.explore-map-panel {
  flex: 1;
  position: relative;
  min-height: 300px;
  min-width: 0;
  overflow: visible;
  background: #F0EDE8;
  height: 100%;
}

/* Force map wrapper to fill panel so MapLibre gets explicit dimensions */

.explore-map-panel > div {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.explore-map-panel .maplibregl-map {
  width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
}

.explore-map-panel .maplibregl-canvas-container,
.explore-map-panel .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
}

.explore-map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: visible;
}

.explore-map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: #999;
}

@keyframes exploreChipSlide {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  body.explore #main-content,
  body:has(#explore-root) #main-content {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  #explore-root {
    height: auto;
    overflow: visible;
  }

  .explore-page {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    height: auto;
  }

  .explore-app {
    flex-direction: column;
  }

  .explore-left-panel {
    width: 100% !important;
    min-width: 0;
    max-width: none;
    border-right: none;
    height: auto;
    max-height: 60vh;
  }

  .explore-resizer {
    display: none;
  }

  .explore-map-panel {
    height: 40vh;
    flex: none;
    min-height: 200px;
  }

  .explore-tabs {
    padding: 0 16px;
  }
  
  .explore-tab {
    padding: 10px 12px 8px;
    font-size: 12px;
  }
  
  .explore-destination-list,
  .explore-template-list {
    gap: 14px;
  }
  
  .explore-card-a1-content,
  .explore-template-card-a1-content {
    padding: 12px 14px;
  }
  
  .explore-card-a1-thumb {
    width: 60px;
  }
  
  .explore-template-card-a1-thumb {
    width: 50px;
  }
}

/* Templates Section Styles */

.templates-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border);
}

.templates-container {
  padding: 0;
}

.templates-header {
  margin-bottom: 2rem;
}

.templates-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem 0;
}

.templates-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.template-card {
  /* Borderless design - all styling handled in city_guides.css */
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0;
  overflow: visible;
  transition: none;
  display: block;
  box-shadow: none !important;
  outline: none !important;
}

.template-card:hover {
  /* Hover effects handled by .card-media:hover in city_guides.css */
  transform: none;
  box-shadow: none;
}

.template-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.template-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-surface-hover);
  overflow: hidden;
}

.template-image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.template-card:hover .template-image {
  transform: scale(1.05);
}

.template-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-surface-hover) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-emoji {
  font-size: 3rem;
}

.template-duration-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.duration-text {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.template-content {
  padding: 1.25rem;
}

.template-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 0.5rem 0;
}

.template-description {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.template-stats {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex: 1;
}

.template-use-btn {
  padding: 0.375rem 0.75rem;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.template-use-btn:hover {
  background: var(--color-accent-hover);
}

.template-use-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.template-signin-link {
  padding: 0.375rem 0.75rem;
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.template-signin-link:hover {
  background: var(--color-border);
}

/* Responsive */

@media (max-width: 768px) {
  .templates-container {
    padding: 0 1rem;
  }
  
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .templates-title {
    font-size: 1.75rem;
  }
  
  .template-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .template-use-btn,
  .template-signin-link {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================
   PRICING PAGE STYLES
   ========================================== */

.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 16px;
  color: #1F2937;
}

.pricing-header .subtitle {
  font-size: 18px;
  color: #6B7280;
  margin-bottom: 16px;
}

.trial-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Plan Toggle */

.plan-toggle {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.toggle-btn.active {
  background: white;
  color: #2D5016;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
  color: #374151;
}

.savings-badge {
  display: inline-block;
  background: #2D5016;
  color: white;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
}

/* Pricing Tiers */

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto 60px auto;
}

.pricing-tier {
  background: white;
  border: 2px solid #E5DED1;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: all 0.3s;
}

.pricing-tier:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.pricing-tier.featured {
  border-color: #2D5016;
  box-shadow: 0 8px 16px rgba(45, 80, 22, 0.1);
}

.pricing-tier .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #2D5016;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-tier h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 16px;
  color: #1F2937;
}

.price-display {
  margin-bottom: 24px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price .amount {
  font-size: 48px;
  font-weight: 700;
  color: #2D5016;
}

.price .period {
  font-size: 18px;
  color: #6B7280;
}

.price-savings {
  font-size: 14px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 4px;
}

.trial-note {
  font-size: 14px;
  color: #6B7280;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: #374151;
}

.feature-item .check {
  color: #2D5016;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-item.featured-item {
  margin-bottom: 8px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

.feature-item .coming-soon {
  color: #9CA3AF;
}

.coming-soon-badge {
  display: inline-block;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 600;
}

/* Buttons */

.pricing-tier .btn-primary,
.pricing-tier .btn-secondary,
.pricing-tier .btn-current {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.pricing-tier .btn-primary {
  background: #2D5016;
  color: white;
}

.pricing-tier .btn-primary:hover {
  background: #1F3A0E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
}

.pricing-tier .btn-secondary {
  background: white;
  color: #2D5016;
  border: 2px solid #2D5016;
}

.pricing-tier .btn-secondary:hover {
  background: #F0F9FF;
}

.pricing-tier .btn-current {
  background: #F3F4F6;
  color: #6B7280;
  cursor: not-allowed;
}

.fine-print {
  text-align: center;
  font-size: 13px;
  color: #9CA3AF;
  margin-top: 12px;
}

/* Trust Signals */

.pricing-trust {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 60px;
  padding: 32px;
  background: #FBF8F3;
  border-radius: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #374151;
}

.trust-item .icon {
  font-size: 24px;
}

/* FAQ */

.pricing-faq {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-faq h3 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 32px;
  color: #1F2937;
}

.faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
}

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

.faq-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 15px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* Utility */

.hidden {
  display: none !important;
}

/* Mobile Responsive */

@media (max-width: 768px) {
  .pricing-header h1 {
    font-size: 36px;
  }

  .pricing-tiers {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-trust {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .trust-item {
    justify-content: center;
  }

  .plan-toggle {
    max-width: 100%;
  }
}

/* ==========================================
   FEATURES PAGE STYLES
   ========================================== */

/* Set dark body background so footer gap isn't visible */

body.pages.features {
  background: #1a1a1a;
}

.features-hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
  text-align: center;
  background-color: #FAF7F5;
}

.features-hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-500, #666666);
  margin-bottom: 1.5rem;
}

.features-hero-title {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--black, #1A1A1A);
}

.features-hero-sub {
  font-size: 1.25rem;
  color: var(--gray-600, #444444);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.features-hero-cta {
  display: inline-block;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 1rem;
  color: var(--cream, #FAF9F7);
  background-color: var(--green, #2D5016);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1.5px solid var(--green, #2D5016);
  transition: all 0.2s ease;
  cursor: pointer;
}

.features-hero-cta:hover {
  background-color: #3D6A1F;
  border-color: #3D6A1F;
}

.features-hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--gray-500, #666666);
  font-style: italic;
}

.features-divider {
  width: 78%;
  max-width: 600px;
  height: 1px;
  background-color: var(--gray-200, #EBEBEB);
  margin: 0 auto;
}

.features-problem {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
  text-align: center;
  background-color: #FAF7F5;
}

.features-section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green, #2D5016);
  margin-bottom: 1rem;
}

.features-section-title {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--black, #1A1A1A);
}

.features-problem-text {
  font-size: 1.125rem;
  color: var(--gray-600, #444444);
  max-width: 600px;
  margin: 0 auto;
}

.features-list {
  background: #fff;
  border-top: 1px solid var(--gray-200, #EBEBEB);
  border-bottom: 1px solid var(--gray-200, #EBEBEB);
  padding: 5rem 2rem;
}

.features-list-inner {
  max-width: 900px;
  margin: 0 auto;
}

.features-list-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
}

.features-item {
  text-align: left;
}

.features-item h3 {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  color: var(--green, #2D5016);
  margin-bottom: 0.75rem;
}

.features-item p {
  font-size: 1rem;
  color: var(--gray-600, #444444);
  line-height: 1.6;
}

.features-cities {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
}

.features-cities-count {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 4rem;
  font-weight: 400;
  color: var(--green, #2D5016);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.features-cities-label {
  font-size: 1rem;
  color: var(--gray-600, #444444);
  margin-bottom: 2rem;
}

.features-cities-samples {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0;
  font-size: 1rem;
  color: var(--gray-600, #444444);
  max-width: 600px;
  margin: 0 auto;
}

.features-city-name {
  white-space: nowrap;
}

.features-city-name::after {
  content: ' · ';
  color: var(--green, #2D5016);
  opacity: 0.4;
}

.features-city-name:last-child::after {
  content: '';
}

.features-final-cta {
  background: #FAF7F5;
  padding: 5rem 2rem 5rem;
  text-align: center;
  margin-bottom: 0;
}

/* Remove main element background on features page to prevent white gap */

body.pages.features main[style*="background"] {
  background: transparent !important;
}

body.pages.features main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important;
}

/* Ensure no gap between final section and footer */

body.pages.features .features-final-cta {
  margin-bottom: 0;
  padding-bottom: 5rem;
}

body.pages.features footer {
  margin-top: 0 !important;
}

.features-final-cta-inner {
  max-width: 540px;
  margin: 0 auto;
}

.features-final-cta .features-section-title {
  margin-bottom: 1rem;
}

.features-final-cta p {
  font-size: 1.125rem;
  color: var(--gray-600, #444444);
  margin-bottom: 2rem;
}

.features-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.features-btn-primary {
  display: inline-block;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 1rem;
  color: var(--cream, #FAF9F7);
  background-color: var(--green, #2D5016);
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1.5px solid var(--green, #2D5016);
  transition: all 0.2s ease;
  cursor: pointer;
}

.features-btn-primary:hover {
  background-color: #3D6A1F;
  border-color: #3D6A1F;
}

.features-btn-secondary {
  display: inline-block;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 1rem;
  color: var(--green, #2D5016);
  background-color: transparent;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1.5px solid var(--green, #2D5016);
  transition: all 0.2s ease;
  cursor: pointer;
}

.features-btn-secondary:hover {
  background-color: var(--green, #2D5016);
  color: var(--cream, #FAF9F7);
}

@media (max-width: 700px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .features-hero {
    padding: 3rem 1.5rem 4rem;
  }

  .features-cta-buttons {
    flex-direction: column;
  }

  .features-btn-primary,
  .features-btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================
   PLAN & BILLING REDESIGN
   ========================================== */

/* Pricing toggle */

.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #F0EFEB;
}

.pricing-toggle-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.pricing-toggle-btn.active {
  background: #FFFFFF;
  color: #2D5016;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.pricing-toggle-badge {
  color: #C4941A;
  font-size: 11px;
  font-weight: 600;
  margin-left: 5px;
}

/* Plan cards */

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.plan-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-surface-raised, #FAFAF8);
  border-radius: 10px;
  padding: 14px 20px;
  border: 1.5px solid var(--color-border-subtle);
  margin-bottom: 10px;
}

.plan-card-row--current {
  border-width: 2px;
  border-color: #2D5016;
}

.plan-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--color-text-primary);
}

.plan-current-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #2D5016;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.plan-card-price {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--color-text-primary);
}

.plan-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.plan-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: #6B7280;
  background: #F5F4F1;
}

.plan-pill--pro {
  color: #2D5016;
  background: rgba(45, 80, 22, 0.08);
}

/* Plan comparison table */

.plan-comparison-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  margin-bottom: 10px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6B7280;
  cursor: pointer;
}

.plan-comparison-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.plan-comparison-arrow.is-open {
  transform: rotate(90deg);
}

.plan-comparison-table {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-raised, #FAFAF8);
  overflow: hidden;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.plan-comparison-header,
.plan-comparison-row {
  display: grid;
  grid-template-columns: 1fr 110px 110px;
  padding: 10px 18px;
  align-items: center;
}

.plan-comparison-header {
  border-bottom: 1px solid var(--color-border-subtle);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #6B7280;
}

.plan-comparison-row {
  font-family: var(--font-body);
  font-size: 13px;
  color: #4B5563;
}

.plan-comparison-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.012);
}

.plan-comparison-cell--pro {
  color: #2D5016;
  font-weight: 500;
}

.plan-comparison-cell--unavailable {
  color: #C0BBB0;
}

/* Usage snapshot (shared) */

.usage-snapshot {
  margin-top: 20px;
  background: var(--color-surface-raised, #FAFAF8);
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  padding: 18px 20px;
}

.usage-snapshot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.usage-snapshot-subtitle {
  font-size: 11.5px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.usage-bar {
  margin-bottom: 14px;
}

.usage-bar:last-child {
  margin-bottom: 0;
}

.usage-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: 13px;
}

.usage-bar-label {
  font-weight: 600;
  color: var(--color-text-primary);
}

.usage-bar-value {
  font-size: 12px;
  color: var(--color-text-muted);
}

.usage-bar-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border-subtle);
  overflow: hidden;
}

.usage-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 3px;
  background: #2D5016;
  transition: width 0.4s ease;
}

.usage-bar-fill--warning {
  background: #C4941A;
}

/* Billing list */

.billing-list {
  margin-top: 20px;
  background: var(--color-surface-raised, #FAFAF8);
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
  overflow: hidden;
}

.billing-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.billing-list-row:last-child {
  border-bottom: none;
}

.billing-list-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.billing-plan-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(45, 80, 22, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.billing-list-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.billing-list-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.billing-list-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-muted);
}

.billing-action-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border-subtle);
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: #2D5016;
  cursor: pointer;
}

/* Cancel subscription */

.billing-cancel {
  margin-top: 16px;
  font-family: var(--font-body, 'Lora', Georgia, serif);
  font-size: 13px;
  font-weight: 400;
  color: #9B2C2C;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  display: inline;
}

.billing-cancel-note {
  margin-top: 3px;
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.billing-cancel-wrapper form {
  display: inline;
}

.billing-cancel-wrapper form button {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #9B2C2C;
  font-weight: 400;
  font-size: 13px;
  font-family: var(--font-body, 'Lora', Georgia, serif);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
}

/* Archived boards card (new variant for plan section) */

.archived-boards-notice--plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  background: #FFF9E6;
  border: 1px solid #E8D88C;
  border-radius: 8px;
  padding: 14px 18px;
}

.archived-boards-btn {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #C4941A;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #C4941A;
  cursor: pointer;
}

/* ==========================================
   SETTINGS PAGE STYLES
   ========================================== */

.settings-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 56px;
}

.settings-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: 36px;
  text-align: left;
}

/* Two-column layout: vertical sidebar nav + content */

.settings-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}

.settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0;
  margin-top: 0;
}

.settings-nav-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-family: 'Lora', serif;
  font-size: 14px;
  color: #666;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-nav-item:hover {
  color: #1a1a1a;
  background: rgba(45, 80, 22, 0.04);
}

.settings-nav-item.active {
  color: #2D5016;
  background: rgba(45, 80, 22, 0.08);
  font-weight: 600;
}

.settings-nav-item:focus {
  outline: 2px solid var(--color-input-focus);
  outline-offset: 2px;
}

.settings-section {
  display: none;
}

.settings-section.active {
  display: block;
}

.settings-content {
  max-width: 800px;
}

.settings-section {
  padding-bottom: 48px;
}

.settings-section h2,
.settings-section .settings-section-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

/* Stats cards — separate cards with gap */

.settings-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.settings-stat-card {
  background: #F5F4F1;
  border: 1px solid #E8E6E3;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.settings-stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #1a1a1a;
}

.settings-stat-label {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}

/* Inputs and buttons — full styling */

.settings-content input[type="text"],
.settings-content input[type="email"],
.settings-content input[type="password"] {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: var(--color-input-bg);
  border: 1px solid var(--color-input-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.settings-content input:focus {
  outline: none;
  border-color: var(--color-input-focus);
  box-shadow: 0 0 0 3px var(--color-accent-muted);
}

.settings-content button[type="submit"] {
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.settings-content button[type="submit"]:hover {
  background: var(--color-accent-hover);
}

[data-theme="dark"] .settings-content input[type="text"],
[data-theme="dark"] .settings-content input[type="email"],
[data-theme="dark"] .settings-content input[type="password"] {
  background: var(--color-input-bg);
  border-color: var(--color-input-border);
  color: var(--color-text-primary);
}

[data-theme="dark"] .settings-content input::-moz-placeholder {
  color: var(--color-text-muted);
  font-style: normal;
}

[data-theme="dark"] .settings-content input::placeholder {
  color: var(--color-text-muted);
  font-style: normal;
}

[data-theme="dark"] .settings-card,
[data-theme="dark"] .tq-settings-section {
  background: var(--color-surface-raised);
  border-color: var(--color-border);
}

.settings-card,
.tq-settings-section {
  background: var(--cream-100);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  box-shadow: none;
  padding: 32px;
}

.settings-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 24px 0;
}

.settings-label {
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-value {
  font-family: 'Lora', serif;
  font-size: 16px;
  color: var(--color-text-primary);
  margin: 6px 0 0 0;
}

.settings-flash-success {
  background: var(--color-accent-muted);
  border: 1px solid var(--color-accent);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.settings-flash-success p {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--color-accent-text);
  margin: 0;
}

.settings-flash-error {
  background: rgba(193, 61, 61, 0.08);
  border: 1px solid var(--color-error);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 24px;
}

.settings-flash-error p {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--color-error);
  margin: 0;
}

.settings-coming-soon {
  font-family: 'Lora', serif;
  font-size: 12px;
  color: var(--color-text-muted);
  margin: 6px 0 0 0;
}

.settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Lora', serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 100px;
}

.settings-badge-pro {
  background: var(--color-accent-muted);
  color: var(--color-accent-text);
}

.settings-badge-free {
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
}

.settings-link-accent {
  margin-left: 8px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.settings-link-accent:hover {
  text-decoration: underline;
}

.settings-subtitle {
  font-family: 'Lora', serif;
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 24px 0;
}

.settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--color-surface-hover);
  border-radius: 10px;
  cursor: pointer;
}

.settings-toggle-title {
  font-family: 'Lora', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.settings-toggle-desc {
  font-family: 'Lora', serif;
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 4px 0 0 0;
}

.settings-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}

.settings-btn-primary {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.settings-btn-primary:hover {
  filter: brightness(1.05);
}

/* Taste profile retake/setup buttons in settings use primary styling */

.settings-content .tq-btn-retake,
.settings-content .tq-btn-setup {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  border: none;
}

.settings-content .tq-btn-retake:hover,
.settings-content .tq-btn-setup:hover {
  filter: brightness(1.05);
}

.settings-security-section {
  /* wrapper for Update Email + Change Password */
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.settings-danger-card {
  border-color: var(--color-error);
}

.settings-danger-card h2 {
  color: var(--color-error);
}

.settings-danger-card .settings-subtitle {
  margin: 0 0 24px 0;
}

.settings-btn-danger {
  background: var(--color-error);
  color: var(--color-text-inverse);
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-family: 'Lora', serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ================================================ */

/* USAGE SECTION */

/* ================================================ */

.usage-section {
  background: #FBF8F3;
  border-color: #E5DED1;
}

.section-header {
  margin-bottom: 24px;
}

.usage-subtitle {
  color: #6B7280;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 0;
}

.usage-subtitle .upgrade-link {
  color: #2D5016;
  text-decoration: none;
  font-weight: 600;
}

.usage-subtitle .upgrade-link:hover {
  text-decoration: underline;
}

.trial-status {
  color: #D97706;
  font-weight: 600;
}

.pro-status {
  color: #2D5016;
  font-weight: 600;
}

.usage-bars {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.usage-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.usage-name {
  font-weight: 500;
  color: #374151;
  font-size: 15px;
}

.usage-percentage {
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
}

.usage-count {
  /* Deprecated - kept for backwards compatibility */
  color: #6B7280;
  font-size: 14px;
}

.usage-bar-container {
  height: 10px;
  background: #E5DED1;
  border-radius: 5px;
  overflow: hidden;
  cursor: help;
  position: relative;
}

.usage-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s ease, background 0.3s ease;
}

.usage-safe {
  background: #2D5016;
}

.usage-warning {
  background: #F59E0B;
}

.usage-danger {
  background: #DC2626;
}

.usage-unlimited {
  background: linear-gradient(90deg, #2D5016 0%, #4A7C2A 50%, #2D5016 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.usage-warning-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #92400E;
  margin-top: 4px;
}

.warning-icon {
  flex-shrink: 0;
}

.usage-warning-text .warning-link {
  color: #2D5016;
  font-weight: 600;
  text-decoration: none;
}

.usage-warning-text .warning-link:hover {
  text-decoration: underline;
}

.usage-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #FCD34D;
  border-radius: 10px;
  margin-top: 24px;
}

.banner-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.banner-content {
  flex: 1;
}

.banner-title {
  margin: 0 0 4px 0;
  color: #92400E;
  font-weight: 600;
  font-size: 15px;
}

.banner-text {
  margin: 0;
  color: #92400E;
  font-size: 14px;
}

.banner-cta {
  color: #2D5016;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-size: 14px;
}

.banner-cta:hover {
  text-decoration: underline;
}

/* Tooltip */

.tooltip {
  position: fixed;
  background: #1F2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  max-width: 250px;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s;
}

/* ================================================ */

/* PLAN SECTION */

/* ================================================ */

.plan-section {
  background: white;
}

.current-plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.plan-card {
  border: 2px solid #E5DED1;
  border-radius: 12px;
  padding: 28px;
  position: relative;
}

.pro-card {
  border-color: #2D5016;
  background: linear-gradient(135deg, #F0F9FF 0%, #FBF8F3 100%);
}

.free-card {
  background: #FAFAFA;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: #2D5016;
  color: white;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin: 8px 0 12px 0;
  color: #1F2937;
}

.plan-price {
  font-size: 24px;
  font-weight: 700;
  color: #2D5016;
  margin-bottom: 16px;
}

.plan-price .period {
  font-size: 16px;
  color: #6B7280;
  font-weight: 400;
}

.trial-info {
  margin-bottom: 20px;
}

.trial-info .trial-status {
  font-size: 16px;
  font-weight: 600;
  color: #2D5016;
  margin-bottom: 4px;
}

.trial-info .trial-note {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

.plan-features-compact {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #6B7280;
}

.plan-features-compact li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.plan-features-compact li:before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #2D5016;
  font-weight: 700;
}

.billing-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.btn-secondary {
  padding: 12px 24px;
  background: white;
  color: #2D5016;
  border: 2px solid #2D5016;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.btn-secondary:hover {
  background: #F0F9FF;
  transform: translateY(-1px);
}

.billing-note {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
  text-align: center;
}

/* Upgrade Comparison (for free users) */

.upgrade-comparison {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.upgrade-comparison h4 {
  font-size: 20px;
  color: #2D5016;
  margin-bottom: 8px;
}

.upgrade-intro {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 20px;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.upgrade-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
}

.upgrade-item .current {
  color: #9CA3AF;
  min-width: 120px;
}

.upgrade-item .arrow {
  color: #2D5016;
  font-weight: 700;
}

.upgrade-item .pro {
  color: #2D5016;
  font-weight: 600;
}

.upgrade-pricing {
  display: flex;
  gap: 16px;
}

.price-option {
  flex: 1;
  text-align: center;
  padding: 16px;
  border: 2px solid #E5DED1;
  border-radius: 10px;
  position: relative;
}

.price-option.highlighted {
  border-color: #2D5016;
  background: #F0F9FF;
}

.savings-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #2D5016;
  color: white;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.price-option .price-label {
  display: block;
  font-size: 12px;
  color: #6B7280;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.price-option .price {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #2D5016;
  margin-bottom: 12px;
}

.btn-primary-small {
  padding: 10px 20px;
  background: #2D5016;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-primary-small:hover {
  background: #1F3A0E;
  transform: translateY(-1px);
}

/* Archived Boards Notice */

.archived-boards-notice {
  margin-top: 24px;
  padding: 20px;
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 10px;
}

.archived-boards-notice h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #92400E;
}

.archived-boards-notice p {
  font-size: 14px;
  color: #92400E;
  margin: 4px 0;
  line-height: 1.5;
}

.archived-boards-notice a {
  color: #2D5016;
  font-weight: 600;
  text-decoration: none;
}

.archived-boards-notice a:hover {
  text-decoration: underline;
}

/* Settings Placeholder */

.settings-placeholder {
  color: #9CA3AF;
  font-style: italic;
}

/* Mobile: stack vertically; nav becomes horizontal scrolling pills */

@media (max-width: 640px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }

  .settings-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .settings-sidebar::-webkit-scrollbar {
    display: none;
  }

  .settings-nav-item {
    flex-shrink: 0;
    width: auto;
  }
}

/* Mobile Responsive (usage/plan sections) */

@media (max-width: 768px) {
  .current-plan {
    grid-template-columns: 1fr;
  }

  .upgrade-pricing {
    flex-direction: column;
  }

  .usage-upgrade-banner {
    flex-direction: column;
    text-align: center;
  }

  .banner-cta {
    align-self: center;
  }
}

/* ========== Before You Go — Compressed Strip (Phase 5) ========== */

.byg-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.byg-strip-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-align: left;
}

.byg-strip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bbb;
  flex-shrink: 0;
}

.byg-strip-pills {
  display: flex;
  gap: 5px;
  flex: 1;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.byg-strip-pills::-webkit-scrollbar {
  display: none;
}

.byg-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 20px;
  background: #E8E5E0;
  white-space: nowrap;
  flex-shrink: 0;
}

.byg-pill-value {
  font-size: 11px;
  color: #333;
  font-weight: 500;
}

.byg-pill-label {
  font-size: 9px;
  color: #777;
}

.byg-pill.byg-pill-weather {
  background: #DDE8D6;
  border: 1px solid #C5D4BC;
}

.byg-pill-weather .byg-pill-value {
  color: #2D5016;
  font-weight: 600;
}

.byg-strip-chevron {
  flex-shrink: 0;
  color: #ccc;
  transition: transform 0.2s ease;
}

[data-collapse-expanded-value="true"] .byg-strip-chevron {
  transform: rotate(180deg);
}

/* Expanded content */

.byg-expanded {
  padding: 14px 0 16px;
  border-bottom: 1px solid #f0f0f0;
}

/* Weather row */

.byg-weather-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.byg-weather-temp {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.byg-weather-desc {
  font-size: 13px;
  color: #666;
}

.byg-weather-label {
  font-size: 11px;
  color: #bbb;
  margin-left: auto;
}

/* Detail grid */

.byg-expanded-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
}

.byg-expanded-item {
  padding: 6px 0;
}

.byg-expanded-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 3px;
}

.byg-expanded-text {
  font-size: 13px;
  line-height: 1.55;
  color: #555;
}

/* Mobile */

@media (max-width: 768px) {
  .byg-expanded-grid {
    grid-template-columns: 1fr;
  }

  .byg-strip-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Shared A1 horizontal card - Explore destinations & Destination page places */

.a1-card {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 4px;
  border: 1px solid #E8E8E8;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
  min-height: 72px;
}

.a1-card:hover {
  border-color: #2D5016;
}

.a1-card.highlighted {
  border-color: #2D5016;
  box-shadow: 0 1px 8px rgba(45, 80, 22, 0.08);
  background-color: #FAF9F7;
}

.a1-card:focus-visible {
  outline: 2px solid #2D5016;
  outline-offset: 2px;
}

/* Link area wraps stripe + content + thumb so heart can be a sibling (not inside <a>) */

.a1-card-link-area {
  display: flex;
  flex: 1;
  align-items: stretch;
  min-width: 0;
}

.a1-card-stripe {
  width: 3px;
  flex-shrink: 0;
  border-radius: 4px 0 0 4px;
}

.a1-card-content {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.a1-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.a1-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

a.a1-card-title {
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

a.a1-card-title:hover {
  text-decoration: underline;
}

.a1-card-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.a1-card-summary {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0 0 8px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.a1-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.a1-card-count {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #999;
}

.a1-card-cta {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #1A1A1A;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.a1-card:hover .a1-card-cta {
  opacity: 1;
}

.a1-card-thumb {
  min-width: 120px;
  width: 36%;
  max-width: 200px;
  flex-shrink: 0;
  align-self: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 0 4px 4px 0;
}

.a1-card-thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.a1-card-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.a1-card-fallback-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  padding-bottom: 8px;
}

.a1-card-heart {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  opacity: 1;
  transition: opacity 0.15s;
}

.a1-card-heart.saved {
  color: #2D5016;
}

.a1-card-heart.saved svg {
  stroke: #2D5016;
}

.a1-card-heart svg {
  stroke-width: 1.65;
  stroke: var(--gray-600, #444444);
}

.a1-card-heart:focus-visible {
  outline: 2px solid #2D5016;
  outline-offset: 2px;
}

/* ============================================
   PLACE CARDS A1 - Destination Explorer
   Compact cards per design spec
   ============================================ */

.place-card-a1 {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 4px;
  border: 1px solid #E8E8E8;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease;
  overflow: visible;
}

.place-card-a1:hover,
.place-card-a1.highlighted {
  border-color: #2D5016;
}

.place-card-a1 + .place-card-a1 {
  margin-top: 12px;
}

/* 3px category stripe */

.place-card-stripe {
  width: 3px;
  flex-shrink: 0;
  border-radius: 4px 0 0 4px;
}

/* Content area */

.place-card-content {
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}

.place-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.place-card-name {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: #1A1A1A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

a.place-card-name:hover {
  text-decoration: underline;
}

a.place-card-name:focus {
  outline: 2px solid #2D5016;
  outline-offset: 2px;
}

.place-card-neighborhood {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  flex-shrink: 0;
}

.place-card-summary {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 13px;
  color: #666;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card-rating {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
  display: inline-block;
}

/* 72px image thumbnail — fixed square, max-height for consistency */

.place-card-thumb {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-height: 72px;
  flex-shrink: 0;
  margin: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.place-card-thumb img {
  width: 100%;
  height: 100%;
  max-height: 72px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.place-card-gradient {
  width: 100%;
  height: 100%;
  min-height: 72px;
}

/* Save button — heart icon, always visible */

.place-card-save-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
  z-index: 2;
  opacity: 1;
}

.place-card-save-btn:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.place-card-save-btn.saved {
  color: var(--color-accent);
}

.place-card-save-btn svg,
.place-card-save-btn .heart-btn svg {
  fill: none;
  stroke: var(--color-text-secondary);
  stroke-width: 1.5;
}

.place-card-save-btn.saved svg,
.place-card-save-btn.active svg {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

/* Responsive */

@media (max-width: 768px) {
  .place-card-a1 {
    padding: 10px;
  }

  .place-card-content {
    padding: 12px 14px;
  }

  .place-card-thumb {
    width: 64px;
    height: 64px;
    min-height: 64px;
    max-height: 64px;
    margin: 6px;
  }

  .place-card-thumb img {
    max-height: 64px;
  }

  .place-card-name {
    font-size: 14px;
  }
}

/* Place card X / close / remove / dismiss buttons */

.place-card-a1 [class*="close"],
.place-card-a1 [class*="remove"],
.place-card-a1 [class*="dismiss"],
.place-card [class*="close"],
.place-card [class*="remove"],
.place-card [class*="dismiss"] {
  font-size: var(--icon-sm);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   DESTINATION EXPLORER - React Island
   Map + Places List layout
   ============================================ */

/* ========== Filter Toolbar ========== */

.filter-toolbar {
  padding: 0;
  flex-shrink: 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.filter-area-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
}

.filter-area-tabs::-webkit-scrollbar { display: none; }

.filter-area-tab {
  padding: 6px 14px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.filter-area-tab.active {
  border-bottom-color: var(--color-text-primary);
  color: var(--color-text-primary);
  font-weight: 600;
}

.filter-area-tab:hover:not(.active) {
  color: var(--color-text-secondary);
}

.filter-main-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.filter-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-raised);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition: all 0.15s;
}

.filter-icon-btn:hover,
.filter-icon-btn.active {
  border-color: var(--color-text-primary);
  color: var(--color-text-primary);
}

.filter-search-wrapper { flex-shrink: 0; }

.filter-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface-raised);
  min-width: 180px;
}

.filter-search-input {
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--color-text-primary);
  flex: 1;
  background: transparent;
  font-family: inherit;
}

.filter-search-input::-moz-placeholder { color: var(--color-text-muted); }

.filter-search-input::placeholder { color: var(--color-text-muted); }

.filter-search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 2px;
  display: flex;
  align-items: center;
}

.filter-search-close:hover { color: var(--color-text-secondary); }

.filter-sort-wrapper { position: relative; flex-shrink: 0; }

.filter-sort-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.filter-sort-dropdown {
  position: absolute;
  left: 0;
  top: 40px;
  z-index: 51;
  background: var(--color-surface-raised);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 150px;
}

.filter-sort-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-secondary);
  font-family: inherit;
  transition: background 0.1s;
}

.filter-sort-option:hover { background: var(--color-surface-hover); }

.filter-sort-option.active {
  font-weight: 600;
  color: var(--color-text-primary);
  background: var(--color-surface-hover);
}

.filter-sort-check { font-size: 14px; color: var(--color-text-primary); }

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
  flex-shrink: 0;
  margin: 0 2px;
}

.filter-chips-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.filter-chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  margin-top: 12px;
}

.filter-chips::-webkit-scrollbar { display: none; }

.filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  transition: all 0.15s;
}

.filter-chip:hover:not(.active) {
  border-color: var(--color-border-strong);
  background: var(--color-surface-hover);
}

.filter-chip.active {
  border-color: var(--chip-color);
  background: var(--chip-color);
  color: var(--color-text-inverse);
}

.filter-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.filter-chips-fade {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--color-surface-raised));
  pointer-events: none;
}

.filter-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
}

.filter-results-count { font-size: 12px; color: var(--color-text-muted); }

.filter-results-detail { color: var(--color-text-muted); }

.filter-clear-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--color-error, #E63946);
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
}

.filter-clear-btn:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .filter-search-input-wrapper { min-width: 140px; }
  .filter-area-tabs { padding: 4px 0; }
}

/* ==================== MAIN CONTAINER ==================== */

.destination-explorer {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 500px;
  max-height: calc(100vh - 200px);
  border: 1px solid var(--gray-200, #E8E8E8);
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.destination-explorer-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  height: calc(100vh - 60px);
}

.destination-explorer-split {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.destination-explorer-split-resizing {
  cursor: col-resize;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* ==================== LIST PANEL (resizable, default 40%) ==================== */

.destination-explorer-split .destination-explorer-list {
  width: var(--destination-left-width, 40%);
  min-width: 280px;
  max-width: 70%;
  flex: 0 0 auto;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
}

.destination-explorer-resizer {
  flex: 0 0 6px;
  width: 6px;
  min-width: 6px;
  cursor: col-resize;
  background: var(--gray-200, #E8E8E8);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: background 0.15s;
}

.destination-explorer-resizer:hover,
.destination-explorer-split-resizing .destination-explorer-resizer {
  background: var(--color-accent);
}

.destination-explorer-list .places-list {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.destination-explorer-list .city-places {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.destination-explorer-list .city-section {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

/* Legacy places grid (ERB partial) - normalize to shared card gap as well */

.places-grid {
  display: grid;
  gap: var(--card-gap);
}

.destination-explorer-list .city-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200, #E8E8E8);
}

.destination-explorer-list .city-title {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.destination-explorer-list .city-count {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 13px;
  color: var(--gray-400, #999999);
}

/* Hide place count overlays on card thumbnails */

.place-card-count,
.card-count-overlay {
  display: none !important;
}

/* ==================== MAP PANEL (flex remainder) ==================== */

.destination-explorer-split .destination-explorer-map {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 60px);
  min-height: 500px;
}

.destination-map-panel {
  position: relative;
  width: 100%;
  height: 100%;
}

.map-fullscreen-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.map-fullscreen-toggle:hover {
  background: var(--color-surface-hover);
}

.destination-explorer-content.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  height: 100vh;
}

.destination-explorer-content.fullscreen .map-fullscreen-toggle {
  z-index: 1001;
  position: absolute;
  top: 12px;
  right: 12px;
}

.destination-explorer-content.fullscreen .filter-toolbar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-surface);
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}

.destination-explorer-content.fullscreen .destination-explorer-split {
  flex: 1;
  min-height: 0;
}

.destination-explorer-content.fullscreen .destination-explorer-list {
  flex: 0 0 auto;
  width: var(--destination-left-width, 35%);
  min-width: 280px;
  max-width: 70%;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.destination-explorer-content.fullscreen .destination-explorer-list .places-list,
.destination-explorer-content.fullscreen .destination-explorer-list .city-section {
  flex: 1;
  overflow-y: auto;
}

.destination-explorer-content.fullscreen .destination-explorer-map {
  flex: 1;
  min-width: 0;
}

/* ==================== MAP POPUP ==================== */

/* Hide MapLibre default close button */

.destination-map-popup .maplibregl-popup-close-button {
  display: none !important;
}

.destination-map-popup .maplibregl-popup-content {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  min-width: 280px;
  max-width: 280px;
}

.map-popup-card {
  width: 280px;
}

.map-popup-image {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.map-popup-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.map-popup-gradient {
  width: 100%;
  height: 100%;
}

.map-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-text-inverse);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.map-popup-close:hover {
  background: rgba(0, 0, 0, 0.6);
}

.map-popup-content {
  padding: 12px 14px 8px;
}

.map-popup-category {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.map-popup-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-popup-cat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
}

.map-popup-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.map-popup-neighborhood {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.map-popup-summary {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--color-border);
}

.map-popup-save {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.map-popup-save:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}

.map-popup-save.saved {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.map-popup-save.saved svg {
  stroke: var(--color-accent);
}

.map-popup-save svg {
  stroke-width: 1.65;
  stroke: var(--color-text-secondary);
}

.map-popup-details {
  flex: 1;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  text-decoration: none;
  padding: 8px 0;
}

.map-popup-details:hover {
  text-decoration: underline;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
  .destination-explorer {
    flex-direction: column;
    max-height: none;
  }

  .destination-explorer-content {
    flex-direction: column;
  }

  .destination-explorer-content .destination-explorer-list {
    flex: none;
    width: 100% !important;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid var(--gray-200, #E8E8E8);
    max-height: none;
    overflow: visible;
  }

  .destination-explorer-content .destination-explorer-resizer {
    display: none;
  }

  .destination-explorer-content .destination-explorer-map {
    flex: none;
    height: 300px;
    min-height: 300px;
    position: relative;
    order: -1; /* Map goes above list on mobile */
  }
}

@media (max-width: 768px) {
  .destination-explorer-list {
    padding: 12px;
  }

  .destination-explorer-list .city-title {
    font-size: 18px;
  }

  .destination-map-popup .maplibregl-popup-content {
    min-width: 260px;
    max-width: 260px;
  }
}

/* ==================== SCROLLBAR STYLING ==================== */

.destination-explorer-list::-webkit-scrollbar {
  width: 6px;
}

.destination-explorer-list::-webkit-scrollbar-track {
  background: var(--gray-100, #F5F5F3);
}

.destination-explorer-list::-webkit-scrollbar-thumb {
  background: var(--gray-300, #D4D4D4);
  border-radius: 3px;
}

.destination-explorer-list::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400, #999999);
}

/* ==================== BOARD MODAL ==================== */

.board-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.board-modal {
  background: var(--color-surface-raised);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.board-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200, #E8E8E8);
}

.board-modal-header h3 {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.board-modal-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--gray-500, #666666);
  font-size: var(--icon-md);
}

.board-modal-close svg {
  width: var(--icon-md);
  height: var(--icon-md);
}

.board-modal-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}

.board-modal-place {
  background: var(--gray-50, #FAFAF9);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.board-modal-place strong {
  display: block;
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 14px;
  color: var(--black, #1A1A1A);
}

.board-modal-place span {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 12px;
  color: var(--gray-500, #666666);
}

.board-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 240px;
  overflow-y: auto;
}

.board-modal-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface-raised);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.board-modal-item:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-hover);
}

.board-modal-item.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-muted);
}

.board-modal-item .board-title {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  color: var(--color-text-primary);
  flex: 1;
}

.board-recent-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--color-accent-text);
  background: var(--color-accent-muted);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.board-modal-new {
  width: 100%;
  padding: 12px;
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  background: var(--color-surface-raised);
  cursor: pointer;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: all 0.15s ease;
}

.board-modal-new:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.board-modal-create {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.board-modal-create-label {
  display: block;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600, #444);
  margin-bottom: -4px;
}

.board-modal-create-input,
.board-modal-create-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200, #E8E8E8);
  border-radius: 6px;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  resize: vertical;
}

.board-modal-create-textarea {
  min-height: 56px;
}

.board-modal-create-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}

.board-modal-btn {
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.board-modal-btn-primary {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border: none;
}

.board-modal-btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.board-modal-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.board-modal-btn-secondary {
  background: transparent;
  color: var(--gray-500, #666);
  border: 1px solid var(--gray-200, #E8E8E8);
}

.board-modal-btn-secondary:hover {
  background: var(--gray-100, #F5F5F3);
}

.board-modal-cancel:hover {
  background: var(--gray-200, #E8E8E8);
}

.board-modal-save:hover:not(:disabled) {
  background: var(--color-accent-hover);
}

.board-modal-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--gray-200, #E8E8E8);
}

.board-modal-cancel,
.board-modal-save {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.board-modal-cancel {
  background: var(--gray-100, #F5F5F3);
  border: 1px solid var(--gray-200, #E8E8E8);
  color: var(--gray-600, #444444);
}

.board-modal-save {
  background: var(--color-accent);
  border: none;
  color: var(--color-text-inverse);
}

.board-modal-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==================== CONFIRMATION TOAST ==================== */

.confirmation-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.confirmation-toast .toast-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
}

.confirmation-toast .toast-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  background: var(--color-surface-raised);
  border-radius: 50%;
  padding: 2px;
}

.confirmation-toast .toast-link {
  color: var(--green-light, #E8F0E3);
  text-decoration: underline;
  margin-left: 8px;
}

.confirmation-toast .toast-close {
  background: none;
  border: none;
  color: var(--gray-400, #999999);
  cursor: pointer;
  padding: 4px;
}

.confirmation-toast .toast-close svg {
  width: 16px;
  height: 16px;
}

/* Mobile adjustments for modal */

@media (max-width: 480px) {
  .board-modal {
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

/* Experience cards - A1 horizontal layout (uses .explore-destination-card-a1 from explore.css)
   Only experience-specific overrides here. */

/* Containment so .card-link-overlay does not escape card boundaries */

.experience-card {
  position: relative;
}

/* Fix: .place-card in city_guides.css sets flex-direction: column which breaks A1 horizontal layout */

.place-card.explore-destination-card-a1.experience-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  min-height: 72px;
  position: relative;
}

/* Grid items: contain absolute children (e.g. .card-link-overlay) to each card */

.places-grid > * {
  position: relative;
}

/* Full-card click overlay (Viator link + signal track) */

.experience-card .card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* CTA link above overlay so it remains clickable */

.experience-card .explore-card-a1-cta {
  position: relative;
  z-index: 2;
}

/* Free cancellation badge — inside .explore-card-a1-thumb */

.experience-card .experience-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--white, #fff);
  color: var(--black, #1a1a1a);
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 0.625rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-theme="dark"] .experience-card .experience-badge {
  background: var(--surface, #1a1a1a);
  color: var(--text-primary, #f5f5f5);
}

/* Dark mode overrides — A1 styles in explore.css hardcode light colors */

[data-theme="dark"] .explore-destination-card-a1.experience-card .explore-card-a1-title {
  color: var(--text-primary, #f5f5f5);
}

[data-theme="dark"] .explore-destination-card-a1.experience-card .explore-card-a1-country,
[data-theme="dark"] .explore-destination-card-a1.experience-card .explore-card-a1-count {
  color: var(--text-secondary, #999);
}

[data-theme="dark"] .explore-destination-card-a1.experience-card .explore-card-a1-tagline {
  color: var(--text-secondary, #999);
}

[data-theme="dark"] .explore-destination-card-a1.experience-card .explore-card-a1-cta {
  color: var(--text-primary, #f5f5f5);
}

[data-theme="dark"] .explore-destination-card-a1.experience-card .explore-card-a1-heart {
  background: var(--color-surface-raised, #2a2a2a);
  color: var(--text-secondary, #999);
}

[data-theme="dark"] .explore-destination-card-a1.experience-card .experience-badge {
  background: var(--surface, #1a1a1a);
  color: var(--text-primary, #f5f5f5);
}

@media (max-width: 768px) {
  .experience-card .experience-badge {
    font-size: 0.5625rem;
    padding: 2px 4px;
  }
}

/* ============================================
   PLACE DETAIL PAGE
   Individual place view styles
   ============================================ */

.place-detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  background: var(--color-surface);
}

/* Breadcrumbs — above all content (below nav), full-width left-aligned */

.place-detail-breadcrumbs,
.place-detail-page .breadcrumbs.place-detail-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 1.25rem 0 !important;
  max-width: none !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding-left: 0 !important;
}

.place-detail-page .breadcrumb-link {
  color: var(--color-accent);
  text-decoration: none;
}

.place-detail-page .breadcrumb-link:hover {
  text-decoration: underline;
}

.place-detail-page .breadcrumb-separator {
  margin: 0 0.25rem;
  color: var(--color-text-muted);
}

.place-detail-page .breadcrumb-current {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Layout: 60/40 split; category row aligns with top of map */

.place-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .place-detail-layout {
    grid-template-columns: 3fr 2fr;
    gap: 2.5rem;
  }
}

/* Content column — flex so actions can sit at bottom, aligned with address */

.place-detail-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.place-detail-content section,
.place-detail-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
}

/* Line 1: Category */

.place-detail-category {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* More vertical space between header (category + name) and chips */

.place-detail-header {
  margin-bottom: 1.25rem;
}

.place-detail-category .category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Line 2: Subcategory */

.place-detail-subcategory {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

/* Line 3: Rating + Price */

.place-detail-rating-price {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.place-detail-rating {
  font-weight: 600;
  color: var(--color-text-primary);
}

.place-detail-separator {
  color: var(--color-border-strong);
}

.place-detail-price {
  color: var(--color-text-secondary);
}

.place-detail-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .place-detail-name {
    font-size: 2.25rem;
  }
}

.place-detail-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 16px;
}

/* CTA buttons / Actions — chips shorter, pushed to bottom; extra space above chips */

.place-detail-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.place-detail-actions {
  margin-top: auto;
}

.place-detail-actions .chip,
.place-detail-chip,
.place-detail-actions .cta-button,
.place-detail-actions a.cta-button {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 16px;
  height: auto;
  min-height: auto;
  line-height: 1.4;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 48px;
  height: 48px;
  padding: 0 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.cta-button:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
}

.cta-button.cta-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-inverse);
}

.cta-button.cta-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-text-inverse);
}

/* Ensure heart icon is visible on Add to Board (Lucide heart) */

.place-detail-save .cta-heart-icon,
.cta-button.cta-primary.place-detail-save svg {
  flex-shrink: 0;
  display: inline-block;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  stroke: currentColor;
  fill: none;
  vertical-align: middle;
}

/* Chips */

.place-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.place-detail-chips:empty {
  display: none;
}

.place-detail-chips .chip,
.place-detail-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--color-surface-hover);
  color: var(--color-text-secondary);
  border-radius: 14px;
}

/* Map column — flex column so address can sit at bottom, aligned with chips */

.place-detail-map {
  position: relative;
  min-height: 300px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .place-detail-map {
    position: sticky;
    top: 1.5rem;
    align-self: start;
  }
}

#place-map.place-map-container,
.place-map-container {
  width: 100%;
  height: 300px;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-hover);
}

.place-detail-address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.place-detail-address svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.place-detail-hours,
.place-detail-neighborhood {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.place-detail-hours strong,
.place-detail-neighborhood strong {
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

/* Related places — remove embossed letters */

.related-place-link .card-fallback-letter,
.related-place-card .card-letter,
.related-place-card .place-card-index,
.more-in-area .card-letter {
  display: none !important;
}

/* Related places */

.related-places {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.related-places h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 1rem;
}

.related-places-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

/* Consistent square thumbnails in related places */

.related-places-grid .place-card .card-media {
  aspect-ratio: 1 / 1;
  max-height: 200px;
  overflow: hidden;
}

.related-places-grid .place-card .card-media img {
  width: 100%;
  height: 100%;
  max-height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

@media (min-width: 640px) {
  .related-places-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-place-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-place-link:hover .place-card {
  opacity: 0.9;
}

/* Photos Section */

.place-photos-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.place-photos-section h2 {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.place-photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.place-photo {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.place-photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.place-photo-clickable {
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.place-photo-clickable:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.place-photo-clickable:focus {
  outline: 2px solid #2D5016;
  outline-offset: 2px;
}

/* Photo carousel lightbox */

.place-photos-carousel {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.place-photos-carousel[hidden] {
  display: none !important;
}

.place-photos-carousel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.place-photos-carousel-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  gap: 1rem;
}

.place-photos-carousel-image-wrap {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.place-photos-carousel-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.place-photos-carousel-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-inverse);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
  z-index: 10001;
}

.place-photos-carousel-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.place-photos-carousel-prev,
.place-photos-carousel-next {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-text-inverse);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
}

.place-photos-carousel-prev:hover,
.place-photos-carousel-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.place-photos-carousel-counter {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Lora', Georgia, serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .place-photos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .place-photos-carousel-inner {
    flex-wrap: wrap;
  }

  .place-photos-carousel-prev,
  .place-photos-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .place-photos-carousel-prev {
    left: 0.5rem;
  }

  .place-photos-carousel-next {
    right: 0.5rem;
  }

  .place-photos-carousel-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}

/* Scrapbook / Boards index — semantic tokens, no inline color/background/border */

.scrapbook-page {
  background: var(--color-surface);
  min-height: 100vh;
}

.scrapbook-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.scrapbook-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.scrapbook-page-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0;
}

.scrapbook-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-radius: 8px;
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.scrapbook-btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-text-inverse);
}

.scrapbook-empty-state {
  text-align: center;
  padding: 64px 24px;
}

.scrapbook-empty-icon {
  margin: 0 auto 16px;
}

.scrapbook-empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.scrapbook-empty-desc {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 24px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.scrapbook-inspiration-card {
  background: transparent;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.scrapbook-inspiration-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 8px 0;
}

.scrapbook-inspiration-desc {
  font-family: 'Lora', serif;
  font-size: 15px;
  color: var(--color-text-secondary);
  margin: 0 0 20px 0;
}

.scrapbook-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  border-radius: 100px;
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.scrapbook-btn-dark:hover {
  background: var(--gray-800);
  color: var(--color-text-inverse);
}

.scrapbook-conversations-section {
  margin-top: 48px;
  padding: 24px;
  background: var(--color-surface-hover);
  border-radius: 12px;
}

.scrapbook-conversations-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.scrapbook-active-conversation {
  background: var(--color-surface-raised);
  border-left: 4px solid var(--color-accent);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.scrapbook-active-conversation h3 {
  font-size: 18px;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.scrapbook-active-meta {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.scrapbook-btn-accent {
  padding: 8px 16px;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.scrapbook-past-heading {
  font-size: 16px;
  margin: 24px 0 12px;
  color: var(--color-text-secondary);
}

.scrapbook-past-conversation {
  background: var(--color-surface-raised);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.scrapbook-past-conversation h3 {
  font-size: 16px;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.scrapbook-past-meta {
  font-size: 13px;
  color: var(--color-text-muted);
}

.scrapbook-btn-outline {
  padding: 6px 12px;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  cursor: pointer;
}

.scrapbook-empty-conversations {
  text-align: center;
  padding: 32px;
  color: var(--color-text-muted);
}

/* Home / landing — semantic tokens for backgrounds, text, borders */

.home-page {
  background: var(--color-surface);
}

.home-hero-bg {
  background: var(--color-surface);
}

.home-heading {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--color-text-primary);
}

.home-body-text {
  font-family: 'Lora', serif;
  color: var(--color-text-secondary);
}

.home-muted {
  color: var(--color-text-muted);
}

.home-card-bg {
  background: var(--color-surface-raised);
}

.home-card-border {
  border: 1px solid var(--color-border);
}

.home-accent-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

.home-btn-dark {
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
}

.home-section-border {
  border-top: 1px solid var(--color-border);
}

.home-search-input-wrap {
  background: var(--color-surface-raised);
  box-shadow: var(--color-shadow-sm);
}

.home-featured-card {
  background: var(--color-surface-raised);
  box-shadow: var(--color-shadow-md);
}

.home-featured-card:hover {
  box-shadow: var(--color-shadow-lg);
}

/* Browse-by-mood section layout */

.vibe-section-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px 48px;
}

/* Homepage browse-by-mood grid */

.destination-grid-wrapper .card-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--card-gap);
}

/* ===========================================
   CITY GUIDES - ooo.travel
   Modern Editorial Design
   =========================================== */

/* Place Save Modal and Notifications */

/* Modal Backdrop */

.board-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-surface-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal — use more of viewport (~30% taller), min-height so body/list never collapse */

.board-modal {
  background: var(--color-surface-raised);
  border-radius: 12px;
  width: 90%;
  max-width: 640px;
  max-height: calc(100vh - 24px);
  min-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--color-shadow-xl);
  border: 1px solid var(--color-border);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal Header */

.board-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.board-modal-header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;  /* Was 20px */
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.board-modal-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
  font-size: var(--icon-md);
}

.board-modal-close svg {
  width: var(--icon-md);
  height: var(--icon-md);
}

.board-modal-close:hover {
  color: var(--color-text-primary);
}

/* Modal Body — fills modal below header; list scrolls inside */

.board-modal-body {
  flex: 1 1 0;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Board List — fill available space and scroll when needed (~30% taller cap) */

.board-list {
  flex: 1 1 auto;
  min-height: 120px;
  max-height: min(520px, 72vh);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.board-list::-webkit-scrollbar {
  width: 8px;
}

.board-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.board-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.board-list::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.board-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;  /* Was 14px 16px */
  border: 1px solid #E8E8E8;
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 16px;     /* Add this if not present */
}

.board-option:hover {
  border-color: #2D5016;
  background: #F5F9F3;
}

.board-option.recent {
  border-color: #2D5016;
  background: #F5F9F3;
}

.board-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;  /* Was 15px */
  font-weight: 500;
  color: #1A1A1A;
}

.recent-badge {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2D5016;
  background: #E8EDE5;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Create New Board */

.board-create-new {
  flex-shrink: 0;
  width: 80%;
  margin: 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  
  /* CTA button styling to match your design system */
  background: #2D5016;  /* Forest green */
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.board-create-new:hover {
  background: #3D6B1F;  /* Slightly lighter on hover */
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
  transform: translateY(-1px);
}

.board-create-new svg {
  stroke: #FFFFFF;  /* White icon */
}

/* Board Create Form */

.board-create-form {
  padding: 24px;
}

.board-name-input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  border: 2px solid #E8E8E8;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.board-name-input:focus {
  outline: none;
  border-color: #2D5016;
}

.board-name-input.error {
  border-color: #C7253E;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.board-create-actions {
  display: flex;
  gap: 12px;
}

.board-create-cancel,
.board-create-submit {
  flex: 1;
  padding: 14px 24px;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.board-create-cancel {
  background: #F5F5F5;
  color: #666666;
}

.board-create-cancel:hover {
  background: #E8E8E8;
}

.board-create-submit {
  background: #2D5016;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.board-create-submit:hover:not(:disabled) {
  background: #3D6B1F;
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
  transform: translateY(-1px);
}

.board-create-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Upgrade Prompt */

.upgrade-prompt {
  padding: 32px 24px;
  text-align: center;
}

.upgrade-icon {
  margin: 0 auto 20px;
  width: 48px;
  height: 48px;
}

.upgrade-prompt h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 0 0 12px 0;
}

.upgrade-prompt p {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.upgrade-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
  text-align: left;
}

.upgrade-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: #1A1A1A;
}

.upgrade-feature svg {
  flex-shrink: 0;
}

.upgrade-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.upgrade-cancel,
.upgrade-cta {
  flex: 1;
  padding: 14px 24px;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.upgrade-cancel {
  background: #F5F5F5;
  color: #666666;
}

.upgrade-cancel:hover {
  background: #E8E8E8;
}

.upgrade-cta {
  background: #2D5016;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(45, 80, 22, 0.2);
}

.upgrade-cta:hover {
  background: #3D6B1F;
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
  transform: translateY(-1px);
}

/* Save Notification (Sticky Toast) */

.save-notification {
  position: fixed !important;
  bottom: 100px !important;  /* Above the nav bar */
  left: 24px !important;     /* Left corner */
  right: auto !important;    /* Remove centering */
  transform: translateY(100px) !important;  /* Only vertical transform */
  background: #F5F9F3 !important;  /* Light green background - matches your color system */
  color: #1A1A1A !important;       /* Dark text for contrast */
  border: 1px solid #E8EDE5 !important;  /* Subtle border */
  padding: 20px 32px;  /* 40% larger padding */
  border-radius: 8px;  /* Rectangle instead of pill */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;  /* Softer shadow */
  display: flex !important;
  align-items: center;
  justify-content: space-between;  /* Board name left, change right */
  gap: 16px;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;     /* Larger text */
  font-weight: 500;
  min-width: 392px;    /* 280px * 1.4 = 392px (40% wider) */
  max-width: 480px;    /* Add max-width so it doesn't get too wide */
  z-index: 10006 !important; /* Above nav (nav is 10004) */
  transition: transform 0.3s ease;
}

.notification-board-name {
  font-weight: 600;
  flex: 1;
}

.save-notification.show {
  transform: translateY(0) !important;  /* Slide up from bottom */
}

.save-notification.error {
  background: #C7253E;
}

.notification-change {
  background: none !important;
  border: none !important;
  color: #2D5016 !important;  /* Forest green text */
  text-decoration: underline;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  margin-left: auto;  /* Push to far right */
  flex-shrink: 0;  /* Prevent button from shrinking */
}

.notification-change:hover {
  opacity: 0.7;
}

.notification-link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 600;
}

.notification-link:hover {
  opacity: 0.8;
}

/* Place Card Save Button */

.place-card-save {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.place-card-save:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.place-card-save.saved {
  border-color: #2D5016;
  color: #2D5016;
}

.place-card-save svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-600, #444444);
  stroke-width: 1.65;
  fill: none;
  transition: all 0.2s ease;
}

.place-card-save.saved svg {
  fill: #2D5016;
  stroke: #2D5016;
}

/* Mobile Responsive */

@media (max-width: 768px) {
  .board-modal {
    width: 95%;
    max-width: none;
  }
  
  .save-notification {
    bottom: 80px !important;  /* Adjust for mobile nav height */
    left: 16px !important;
    right: auto !important;
    z-index: 10006 !important;
    transform: translateY(100px) !important;
  }
  
  .save-notification.show {
    transform: translateY(0) !important;
  }
}

/* ==================== BREADCRUMBS ==================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  color: var(--gray-500, #666666);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.breadcrumb-link {
  color: var(--gray-500, #666666);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--green, #2D5016);
}

.breadcrumb-separator {
  color: var(--gray-300, #D4D4D4);
}

.breadcrumb-current {
  color: var(--black, #1A1A1A);
  font-weight: 600;
}

/* Hide tagline */

.destination-tagline,
.city-tagline {
  display: none !important;
}

/* ==================== CARD SYSTEM ==================== */

/* Universal borderless reset - override all conflicting styles */

/* CRITICAL: This must override React card styles and Tailwind utilities */

.board-card,
.template-card,
.flight-deal-card,
.place-card,
.destination-card,
a.board-card,
a.template-card,
a.flight-deal-card,
a.place-card,
a.destination-card {
  background: transparent !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Extra specificity for template cards to override any parent/grid styles */

/* The border rgb(235, 235, 235) = #EBEBEB = --gray-200 is coming from React card styles or Tailwind */

/* Using maximum specificity to override - MUST come after all other card styles */

a.template-card,
article.template-card,
div.template-card,
.template-card[class],
.template-card,
a.template-card[class],
article.template-card[class],
div.template-card[class],
a.template-card.card,
.template-card.card {
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left: none !important;
  /* Override any Tailwind border utilities */
  border-top-width: 0 !important;
  border-right-width: 0 !important;
  border-bottom-width: 0 !important;
  /* Override React card styles */
  border-left-width: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Specifically target template card children to remove any inherited borders */

.template-card .card-media,
.template-card .card-content,
a.template-card .card-media,
a.template-card .card-content {
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Minimum text size - nothing under 14px */

/* Exception: .card-category can be 12px (0.75rem) for labels */

.card-content,
.card-meta {
  font-size: max(0.875rem, 14px) !important; /* 14px minimum */
}

.card-category {
  font-size: 0.75rem; /* 12px - exception for labels, OK to be under 14px */
}

/* Content spacing */

.card-content {
  padding-top: 4px !important;
  padding-bottom: 2px !important;
}

/* Card base - borderless design */

/* Specific selectors to override components.css .card styles */

.board-card .card-media,
.destination-card .card-media,
.mood-card .card-media,
.place-card .card-media,
.template-card .card-media,
.create-card .card-media,
.flight-deal-card .card-media {
  border-radius: 2px !important;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Background explicitly NOT set here - gradient classes will set it */
  /* If no gradient class, fallback rule at end of file sets gray-100 */
}

.board-card .card-media:hover,
.destination-card .card-media:hover,
.mood-card .card-media:hover,
.place-card .card-media:hover,
.template-card .card-media:hover,
.create-card .card-media:hover,
.flight-deal-card .card-media:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Dusty rose overlay on all cards with photos */

.board-card .card-media::after,
.destination-card .card-media::after,
.mood-card .card-media::after,
.place-card .card-media::after,
.template-card .card-media:not(.card-create-media)::after,
.flight-deal-card .card-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #D4A5A5;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.board-card .card-media img,
.destination-card .card-media img,
.mood-card .card-media img,
.place-card .card-media img,
.template-card .card-media img,
.create-card .card-media img,
.flight-deal-card .card-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.board-card .card-content,
.destination-card .card-content,
.mood-card .card-content,
.place-card .card-content,
.template-card .card-content,
.create-card .card-content,
.flight-deal-card .card-content {
  padding: 14px 0 0;
  background: transparent !important;
  text-align: left;
}

/* Place card specific spacing */

.place-card .card-content {
  margin-top: 0;
}

.board-card .card-category,
.destination-card .card-category,
.mood-card .card-category,
.place-card .card-category,
.template-card .card-category,
.flight-deal-card .card-category,
.place-card-category {
  font-family: var(--font-lora);
  font-size: 0.75rem; /* 12px - exception for labels */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
  display: block;
}

.board-card .card-title,
.destination-card .card-title,
.mood-card .card-title,
.place-card .card-title,
.template-card .card-title,
.flight-deal-card .card-title {
  font-family: var(--font-playfair);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 2px;
  color: var(--black);
}

.board-card .card-subtitle,
.destination-card .card-subtitle,
.mood-card .card-subtitle,
.place-card .card-subtitle,
.template-card .card-subtitle,
.flight-deal-card .card-subtitle,
.place-card-neighborhood {
  font-family: var(--font-lora);
  font-size: 0.875rem; /* 14px minimum */
  color: var(--gray-600);
  margin-top: 2px;
  display: block;
}

.board-card .card-meta,
.destination-card .card-meta,
.mood-card .card-meta,
.place-card .card-meta,
.template-card .card-meta,
.flight-deal-card .card-meta,
.place-card-meta {
  font-family: var(--font-lora);
  font-size: 0.875rem; /* 14px minimum */
  color: var(--gray-400);
  margin-top: 4px;
}

/* Fallback letter */

.board-card .card-fallback-letter,
.destination-card .card-fallback-letter,
.mood-card .card-fallback-letter,
.place-card .card-fallback-letter,
.template-card .card-fallback-letter,
.flight-deal-card .card-fallback-letter {
  position: absolute !important;
  bottom: 12px !important;
  left: 16px !important;
  font-family: var(--font-playfair) !important;
  font-size: 64px !important; /* Increased from 48px to 4rem equivalent */
  font-weight: 400 !important;
  color: rgba(255,255,255,0.5) !important; /* Increased from 0.3 to 0.5 for better visibility */
  line-height: 1 !important;
  pointer-events: none !important;
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
          user-select: none !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2 !important; /* Increased from 1 to ensure visibility */
}

/* Smaller fallback letters for square/strip cards */

.board-card .card-media.aspect-1-1 .card-fallback-letter,
.place-card .card-media.aspect-1-1 .card-fallback-letter,
.board-card .card-media.aspect-3-2 .card-fallback-letter,
.place-card .card-media.aspect-3-2 .card-fallback-letter {
  font-size: 48px !important; /* Increased from 36px for better visibility */
}

/* Ensure fallback letters are visible when image fails or is missing */

.board-card .card-media .card-fallback-letter,
.destination-card .card-media .card-fallback-letter,
.mood-card .card-media .card-fallback-letter,
.place-card .card-media .card-fallback-letter,
.template-card .card-media .card-fallback-letter,
.flight-deal-card .card-media .card-fallback-letter {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Gradients - REMOVED duplicate rules - final override rules at end of file (line ~1567) */

/* These earlier rules were less specific and conflicted with the more specific rules later */

/* Save button */

.card-save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
  padding: 0;
}

.card-save-btn:hover {
  transform: scale(1.1);
}

.card-save-btn--active {
  color: var(--color-accent);
}

.card-save-btn--active svg {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

.card-save-btn svg,
.heart-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--color-text-secondary);
  stroke-width: 1.5;
}

/* Badge */

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-lora);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--color-surface-raised);
  padding: 8px 16px;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

.card-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--gray-600);
}

/* Create card */

.card-create-media {
  border: 1.5px dashed var(--gray-300);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
  background: var(--cream);
  cursor: pointer;
}

.card-create-media:hover {
  border-color: var(--gray-500);
  background: var(--gray-50);
}

.card-create-media svg {
  width: 24px;
  height: 24px;
  stroke: var(--gray-600, #444444);
  stroke-width: 1.65;
}

.card-create-text {
  font-family: var(--font-lora);
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Aspect ratios */

.aspect-4-3 {
  aspect-ratio: 4/3;
}

.aspect-1-1 {
  aspect-ratio: 1/1;
}

.aspect-16-9 {
  aspect-ratio: 16/9;
}

.aspect-3-2 {
  aspect-ratio: 3/2;
}

/* ==================== CITY GUIDE LAYOUT (SIDEBAR + MAIN) ==================== */

.city-guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  margin-top: 32px;
  background: var(--color-surface);
  color: var(--color-text-primary);
}

.category-sidebar {
  position: sticky;
  top: 80px;
  height: -moz-fit-content;
  height: fit-content;
}

.category-sidebar h3 {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--black, #1A1A1A);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200, #EBEBEB);
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  color: var(--gray-500, #666666);
  transition: all 0.15s ease;
}

.category-link:hover {
  background: var(--gray-100, #F5F5F3);
  color: var(--gray-600, #444444);
}

.category-link.active {
  background: var(--green-light, #E8F0E3);
  color: var(--green, #2D5016);
  font-weight: 500;
}

.category-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.category-link.active svg {
  opacity: 1;
}

.category-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--gray-400, #999999);
  font-family: var(--font-body, 'Lora', Georgia, serif);
}

.category-link.active .category-count {
  color: var(--green, #2D5016);
}

.city-guide-content {
  min-width: 0; /* Prevent grid blowout */
}

/* ==================== PLACES SECTION ==================== */

.places-section {
  margin-bottom: 48px;
}

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

.places-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200, #EBEBEB);
}

.places-section h2 {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--black, #1A1A1A);
  margin: 0;
}

.places-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sort-select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--gray-200, #EBEBEB);
  border-radius: 6px;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 13px;
  color: var(--gray-600, #444444);
  background: var(--white, #FFFFFF);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease;
}

.sort-select:hover {
  border-color: var(--gray-300, #D4D4D4);
}

.sort-select:focus {
  outline: none;
  border-color: var(--green, #2D5016);
}

/* Update Before You Go section */

.city-guide-basics,
.before-you-go {
  margin: 60px 0;
  padding: 40px;
  background: #F9F9F9;
  border-radius: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.basics-header,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #E8E8E8;
}

.basics-header-title,
.section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
}

.basics-header-toggle,
.toggle-collapse {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  display: flex;
  align-items: center;
  gap: 8px;
}

.basics-header-toggle:hover,
.toggle-collapse:hover {
  color: var(--color-accent);
}

.basics-item {
  /* NO card styling - just clean text blocks */
  padding: 0;
  background: none;
  border: none;
}

.basic-item-header {
  margin-bottom: 12px;
}

.basic-item-title,
.basics-item h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

.basic-item-short,
.basics-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin: 0 0 12px 0;
  display: block;
}

.basic-item-content p,
.basics-item p {
  font-family: 'Lora', Georgia, serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 0 12px 0;
}

.basic-item-content p:last-child,
.basics-item p:last-child {
  margin-bottom: 0;
}

/* ==================== HERO SECTION ==================== */

.city-guide {
  background: var(--cream, #FAF9F7);
  min-height: 100vh;
}

.city-guide-hero {
  background: var(--cream, #FAF9F7);
  background-size: cover;
  background-position: center;
  padding: 60px 24px 40px;
  border-bottom: 1px solid var(--gray-200, #EBEBEB);
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.city-guide-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.city-guide-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* When hero has background image, make text white */

.city-guide-hero[style*="background-image"] .city-guide-label {
  color: rgba(255, 255, 255, 0.85);
}

.city-guide-hero[style*="background-image"] .city-guide-title {
  color: #FFFFFF;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.city-guide-hero[style*="background-image"] .city-guide-country {
  color: rgba(255, 255, 255, 0.9);
}

.city-guide-hero[style*="background-image"] .city-guide-nav-pill {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
}

.city-guide-hero[style*="background-image"] .city-guide-nav-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Photo attribution */

.city-guide-hero-attribution {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.city-guide-hero-attribution a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

.city-guide-label {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400, #999999);
  margin: 0 0 12px;
}

.city-guide-title {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 400;
  color: var(--black, #1A1A1A);
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.city-guide-country {
  font-family: 'Lora', Georgia, serif;
  font-size: 20px;
  color: var(--color-text-secondary);
  margin: 0 0 24px;
}

/* Category Jump Pills */

.city-guide-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.city-guide-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-300, #D4D4D4);
  background: transparent;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-500, #666666);
  text-decoration: none;
  transition: all 0.15s ease;
}

.city-guide-nav-pill:hover {
  border-color: var(--green, #2D5016);
  background: rgba(45, 80, 22, 0.05);
}

.city-guide-nav-pill svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.65;
  stroke: var(--gray-600, #444444);
}

/* ==================== BEFORE YOU GO SECTION ==================== */

.city-guide-basics,
.before-you-go {
  margin: 64px 0;
  padding: 40px;
  background: var(--gray-50, #FAFAF9);
  border-radius: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.basics-header,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200, #EBEBEB);
  cursor: pointer;
}

.basics-header-title,
.section-header h2 {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--black, #1A1A1A);
  margin: 0;
}

.basics-header-toggle,
.toggle-collapse {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  color: var(--gray-500, #666666);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.basics-header-toggle:hover,
.toggle-collapse:hover {
  color: var(--green, #2D5016);
}

.basics-header-toggle svg {
  width: var(--icon-lg);
  height: var(--icon-lg);
  stroke-width: 1.65;
  stroke: var(--gray-600, #444444);
  transition: transform 0.3s ease;
}

.basics-header-toggle.expanded svg {
  transform: rotate(180deg);
}

.basics-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
}

/* Dark Callout Block - When to Visit */

.basics-callout {
  background: #1A1A1A;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.basics-callout-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.basics-callout-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-text-inverse);
  margin: 0;
}

/* ==================== BASICS GRID ==================== */

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

.basic-item,
.basics-item {
  display: flex;
  flex-direction: column;
  /* NO card styling - just clean text blocks */
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.basic-item-header {
  margin-bottom: 8px;
}

.basic-item-title,
.basics-item h3 {
  font-family: var(--font-playfair, 'Playfair Display', Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--black, #1A1A1A);
  margin: 0 0 8px 0;
}

.basic-item-short,
.basics-label {
  display: none; /* Remove sublabels as requested */
}

.basic-item-content {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-500, #666666);
  margin: 0;
}

.basics-item {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.basic-item-content p,
.basics-item p {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-500, #666666);
  margin: 0;
}

/* Empty state for missing data */

.basics-item p:empty::after {
  content: "Coming soon";
  color: var(--gray-400, #999999);
  font-style: italic;
}

/* ==================== PLACES SECTION ==================== */

.city-guide-places {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.category-section {
  margin-bottom: 48px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #E5E5E5;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.category-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--color-text-primary);
  margin: 0;
}

.category-count {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: var(--color-text-muted);
}

/* ==================== PLACES GRID ==================== */

.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--card-gap);
}

/* ==================== PLACE CARDS ==================== */

/* OLD PLACE CARD STYLES - Disabled for new borderless design */

/* These are kept for backwards compatibility but overridden by new system */

.place-card {
  /* Remove old border/background for new borderless cards */
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible;
  transition: none;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: none !important;
  margin-bottom: 0;
}

/* New place cards using .card-media don't need container styles */

.place-card .card-media {
  /* Override any old styles */
}

.place-card:hover {
  /* Remove hover effects from container - they're on .card-media now */
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

/* Old place-card-image - new system uses .card-media */

.place-card-image {
  /* Keep for backwards compatibility but prefer .card-media */
  aspect-ratio: 4/3;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--gray-100, #F5F5F3);
  isolation: isolate;
}

/* New system overrides - DO NOT set background here to allow gradient classes to work */

.place-card .card-media {
  /* Override old .place-card-image styles */
  aspect-ratio: 1/1 !important; /* Square for place cards */
  border-radius: 2px !important;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Background intentionally NOT set here - inherits from general .card-media rule above */
  /* Gradient classes (defined earlier) will override with !important */
}

.place-card .card-media.aspect-4-3 {
  aspect-ratio: 4/3;
}

.place-card .card-media:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.place-card-image img,
.place-card .card-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
  transition: none; /* Remove old scale transform */
}

/* Remove old hover scale effect */

.place-card:hover .place-card-image img {
  transform: none;
}

/* Old place-card-content - override for new system */

.place-card-content {
  /* New cards use .card-content which is defined above */
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* New card system uses .card-content */

.place-card .card-content {
  padding: 14px 0 0;
  background: transparent !important;
  border: none !important;
}

/* Old place-card-name - new system uses .card-title */

/* Updated to match standardized typography spec */

.place-card-name,
.place-card .card-title {
  font-family: var(--font-playfair);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
  margin: 0 0 2px 0;
}

/* Place card content - matches standard .card-content */

/* Backward compatibility: map .place-card-content to .card-content styles */

.place-card-content {
  padding-top: 14px;
  background: transparent !important;
  text-align: left;
}

/* Place card category - matches standard .card-category */

/* Backward compatibility: map .place-card-category to .card-category styles */

.place-card-category {
  font-family: var(--font-lora);
  font-size: 0.75rem; /* 12px - exception for labels */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
  display: block;
}

/* Backward compatibility: map .place-card-name to .card-title styles */

.place-card-name {
  font-family: var(--font-playfair);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.3;
  color: var(--black);
  margin: 0 0 2px 0;
}

/* Place card meta - matches standard .card-meta */

.place-card-meta {
  font-family: var(--font-lora);
  font-size: 0.875rem; /* 14px minimum */
  color: var(--gray-400);
  margin-top: 4px;
}

/* Place card image container - matches standard .card-media */

.place-card-image {
  border-radius: 2px !important;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--gray-100); /* Fallback if no gradient class */
}

/* New system uses .card-title */

.place-card .card-title {
  font-family: var(--font-playfair);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 2px;
  color: var(--black);
}

/* Old place-card-category - new system uses .card-category */

/* Updated to match standardized typography spec - DUPLICATE REMOVED */

/* See .place-card-category rule at line 1103 */

/* New system uses .card-category */

.place-card .card-category {
  font-family: var(--font-lora);
  font-size: 0.75rem; /* 12px - exception for labels */
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
  display: block;
}

/* Category-specific colors */

.place-card[data-category="Accommodations"] .place-card-category {
  color: #8B5A6B;
}

.place-card[data-category="Restaurants and Food"] .place-card-category {
  color: #C4784A;
}

.place-card[data-category="Coffee and Tea"] .place-card-category {
  color: #9A8570;
}

.place-card[data-category="Cultural and Artistic Venues"] .place-card-category {
  color: #A4697A;
}

.place-card[data-category="Bars and Rooftops"] .place-card-category {
  color: #C4784A;
}

.place-card[data-category="Markets and Shopping"] .place-card-category {
  color: #4682B4;
}

.place-card[data-category="Health and Wellness"] .place-card-category {
  color: #6B8E23;
}

.place-card[data-category="Bookstores and Libraries"] .place-card-category {
  color: #5F9EA0;
}

.place-card[data-category="Places to Work"] .place-card-category {
  color: #2D5016;
}

.place-card-description,
.place-card-summary {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-500, #666666);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient Placeholders */

.place-card-image[data-gradient="sage"] {
  background: linear-gradient(145deg, #5C7C4A 0%, #E8EDE5 100%);
}

.place-card-image[data-gradient="forest-butter"] {
  background: linear-gradient(145deg, #2D5016 0%, #F7F3E8 100%);
}

.place-card-image[data-gradient="dusty-rose"] {
  background: linear-gradient(145deg, #8B5A6B 0%, #A4697A 100%);
}

.place-card-image[data-gradient="blush"] {
  background: linear-gradient(145deg, #A4697A 0%, #E0D0E0 100%);
}

.place-card-image[data-gradient="stone"] {
  background: linear-gradient(145deg, #9A8570 0%, #E5DCC6 100%);
}

.place-card-image[data-gradient="butter"] {
  background: linear-gradient(145deg, #E5DCC6 0%, #F7F3E8 100%);
}

/* Heart - No circle background */

.place-card-save {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #FFFFFF;
  z-index: 10;
}

.place-card-save svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  transition: all 0.2s ease;
}

.place-card-save:hover svg {
  transform: scale(1.1);
}

.place-card-save.saved svg {
  fill: #2D5016;
  stroke: #2D5016;
}

.place-card-neighborhood {
  font-family: var(--font-lora, 'Lora', Georgia, serif);
  font-size: 14px;
  color: var(--gray-400, #999999);
  margin: 0;
}

/* Place Card - Feature Variant */

.place-card.feature {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
}

.place-card.feature .place-card-image {
  aspect-ratio: 2 / 1;
  position: relative;
  margin-bottom: 0;
  overflow: hidden;
}

.place-card.feature .place-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  background: rgba(26, 26, 26, 0.75);
  z-index: 1;
  pointer-events: none;
}

.place-card.feature .place-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  padding: 32px;
  z-index: 2;
  pointer-events: none;
}

.place-card.feature .place-card-name {
  color: #F7F3E8 !important;
}

.place-card.feature .place-card-category {
  margin-bottom: 8px;
}

.place-card.feature .place-card-summary {
  display: block !important;
}

.place-card.feature .place-card-save {
  z-index: 11;
}

/* Feature cards use gray text on dark overlay by default */

.place-card.feature:not([data-category="Accommodations"]) .place-card-category {
  color: #9B9B9B;
}

.place-card.feature .place-card-name {
  font-size: 28px;
  font-weight: 400;
  color: #F7F3E8;
  margin-bottom: 12px;
}

.place-card.feature .place-card-summary {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Accommodations category - dark grey text on gradient */

.place-card.feature[data-category="Accommodations"] .place-card-content {
  color: #333333;
}

.place-card.feature[data-category="Accommodations"] .place-card-category {
  color: #8B5A6B !important;
}

.place-card.feature[data-category="Accommodations"] .place-card-name {
  color: #1A1A1A !important;
}

.place-card.feature[data-category="Accommodations"] .place-card-summary {
  color: #4A4A4A !important;
}

.place-card.feature[data-category="Accommodations"] .place-card-image::before {
  background: rgba(255, 255, 255, 0.9);
}

/* ==================== RESPONSIVE ==================== */

/* Category Sidebar - becomes horizontal on tablet/mobile */

@media (max-width: 900px) {
  .city-guide-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .category-sidebar {
    position: relative;
    top: 0;
  }
  
  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .category-link {
    padding: 8px 16px;
    border: 1px solid var(--gray-200, #EBEBEB);
    border-radius: 100px;
  }
  
  .category-link.active {
    border-color: var(--green, #2D5016);
  }
  
  .category-count {
    display: none;
  }
}

/* Tablet */

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

  .places-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .place-card.feature {
    grid-column: span 2;
  }
}

/* Mobile */

@media (max-width: 768px) {
  .city-guide-hero {
    padding: 32px 20px 24px;
  }

  .city-guide-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .city-guide-country {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .city-guide-nav {
    gap: 6px;
  }

  .city-guide-nav-pill {
    padding: 8px 14px;
    font-size: 16px;
  }

  .city-guide-basics {
    padding: 40px 20px;
  }

  .basics-header-title {
    font-size: 26px;
  }

  .basics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .city-guide-places {
    padding: 0 20px 48px;
  }

  .category-title {
    font-size: 22px;
  }

  .places-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .place-card.feature {
    grid-column: span 2;
  }

  .place-card.feature .place-card-image {
    aspect-ratio: 4 / 5;
  }

  .place-card.feature .place-card-image::before {
    width: 100%;
    background: linear-gradient(transparent 40%, rgba(26, 26, 26, 0.85));
  }

  .place-card.feature .place-card-content {
    width: 100%;
    padding: 20px;
  }
}

/* Small Mobile */

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

  .place-card.feature {
    grid-column: span 1;
  }
}

/* ==================== EMPTY STATE ==================== */

.city-guide-empty {
  text-align: center;
  padding: 64px 24px;
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 12px;
  margin: 24px 0;
}

.city-guide-empty h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  color: #1A1A1A;
  margin: 0 0 8px;
}

.city-guide-empty p {
  font-family: 'Lora', Georgia, serif;
  font-size: 16px;
  color: #666666;
  margin: 0;
}

/* ==================== GRADIENT OVERRIDES - MUST BE LAST ==================== */

/* These rules MUST come after all other .card-media rules to ensure they override */

/* CRITICAL: These must override any background set on .card-media base rule */

/* Adding tag selectors for higher specificity */

.board-card .card-media.gradient-sand,
.destination-card .card-media.gradient-sand,
.mood-card .card-media.gradient-sand,
.place-card .card-media.gradient-sand,
.template-card .card-media.gradient-sand,
.flight-deal-card .card-media.gradient-sand,
a.board-card .card-media.gradient-sand,
a.destination-card .card-media.gradient-sand,
a.template-card .card-media.gradient-sand {
  background: var(--gradient-sand) !important;
  background-color: transparent !important;
  background-image: var(--gradient-sand) !important;
}

.board-card .card-media.gradient-sage,
.destination-card .card-media.gradient-sage,
.mood-card .card-media.gradient-sage,
.place-card .card-media.gradient-sage,
.template-card .card-media.gradient-sage,
.flight-deal-card .card-media.gradient-sage,
a.board-card .card-media.gradient-sage,
a.destination-card .card-media.gradient-sage,
a.template-card .card-media.gradient-sage {
  background: var(--gradient-sage) !important;
  background-color: transparent !important;
  background-image: var(--gradient-sage) !important;
}

.board-card .card-media.gradient-mauve,
.destination-card .card-media.gradient-mauve,
.mood-card .card-media.gradient-mauve,
.place-card .card-media.gradient-mauve,
.template-card .card-media.gradient-mauve,
.flight-deal-card .card-media.gradient-mauve,
a.board-card .card-media.gradient-mauve,
a.destination-card .card-media.gradient-mauve,
a.template-card .card-media.gradient-mauve {
  background: var(--gradient-mauve) !important;
  background-color: transparent !important;
  background-image: var(--gradient-mauve) !important;
}

.board-card .card-media.gradient-slate,
.destination-card .card-media.gradient-slate,
.mood-card .card-media.gradient-slate,
.place-card .card-media.gradient-slate,
.template-card .card-media.gradient-slate,
.flight-deal-card .card-media.gradient-slate,
a.board-card .card-media.gradient-slate,
a.destination-card .card-media.gradient-slate,
a.template-card .card-media.gradient-slate {
  background: var(--gradient-slate) !important;
  background-color: transparent !important;
  background-image: var(--gradient-slate) !important;
}

/* Fallback for cards without gradient class */

.board-card .card-media:not([class*="gradient-"]):not(.gradient-sand):not(.gradient-sage):not(.gradient-mauve):not(.gradient-slate),
.destination-card .card-media:not([class*="gradient-"]):not(.gradient-sand):not(.gradient-sage):not(.gradient-mauve):not(.gradient-slate),
.template-card .card-media:not([class*="gradient-"]):not(.gradient-sand):not(.gradient-sage):not(.gradient-mauve):not(.gradient-slate),
.flight-deal-card .card-media:not([class*="gradient-"]):not(.gradient-sand):not(.gradient-sage):not(.gradient-mauve):not(.gradient-slate) {
  background: var(--gray-100) !important;
}

/* ─── Shared card grid ─── */

.card-grid-compact {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--card-gap);
}

@media (max-width: 1024px) {
  .card-grid-compact {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--card-gap);
  }
}

@media (max-width: 600px) {
  .card-grid-compact {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--card-gap);
  }
}

/* ─── Shared card base (mood-card, board-card, template-card) ─── */

.mood-card,
.board-card,
.template-card {
  border: none;
  box-shadow: none;
  background: transparent;
  text-decoration: none;
  display: block;
  color: inherit;
}

.mood-card .card-media,
.board-card .card-media,
.template-card .card-media {
  aspect-ratio: 3/2;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mood-card:hover .card-media,
.board-card:hover .card-media,
.template-card:hover .card-media {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Warm tint overlay */

.mood-card .card-media::after,
.board-card .card-media::after,
.template-card .card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #D4A5A5;
  opacity: 0.1;
  pointer-events: none;
}

.mood-card .card-media img,
.board-card .card-media img,
.template-card .card-media img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

/* Homepage mood card heart — always visible in top-right corner of card */

.mood-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  z-index: 2;
}

.mood-card-heart:hover {
  background: var(--color-surface-raised);
}

.mood-card-heart svg {
  fill: none;
  stroke: var(--color-text-secondary);
  stroke-width: 1.5;
}

.mood-card-heart.saved svg,
.mood-card-heart:hover svg {
  fill: var(--color-accent);
  stroke: var(--color-accent);
}

/* Content below image */

.card-content {
  padding-top: 7px;
}

.card-category {
  font-family: 'Lora', Georgia, serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2D5016;
}

.card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.3;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  color: #777777;
  margin-top: 1px;
}

.card-meta {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #999999;
  margin-top: 2px;
}

/* Fallback letter (no image) */

.card-fallback-letter {
  position: absolute;
  bottom: 6px;
  left: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  color: rgba(255,255,255,0.3);
  line-height: 1;
  pointer-events: none;
}

/* Gradient classes */

.card-media.gradient-sand { background: var(--gradient-sand); }

.card-media.gradient-sage { background: var(--gradient-sage); }

.card-media.gradient-mauve { background: var(--gradient-mauve); }

.card-media.gradient-slate { background: var(--gradient-slate); }

/* Curated badge */

.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(3px);
  padding: 2px 7px;
  border-radius: 2px;
  font-family: 'Lora', Georgia, serif;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2D5016;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Create card */

.create-card .card-media.card-create-media {
  aspect-ratio: 3/2;
  border-radius: 2px;
  border: 1px dashed #D5D5D5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: var(--color-surface);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.create-card:hover .card-media.card-create-media {
  border-color: var(--color-accent);
  background: var(--color-surface-hover);
}

.create-card-icon {
  font-size: 22px;
  font-weight: 300;
  color: #999999;
  transition: color 0.2s ease;
}

.create-card:hover .create-card-icon {
  color: #2D5016;
}

.create-card-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  color: #999999;
  transition: color 0.2s ease;
}

.create-card:hover .create-card-label {
  color: #2D5016;
}

/* ─── Vibe section (homepage) ─── */

/* Parent selector raises specificity so spacing wins over Tailwind utilities (page layer vs utilities layer). */

.vibe-section-header .vibe-section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.vibe-section-header .vibe-chips-wrapper {
  margin-top: 12px;
  margin-bottom: 2rem;
}

.vibe-section-header .section-heading {
  margin-bottom: 20px;
}

.vibe-see-all-link {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  color: #2D5016;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.vibe-see-all-link:hover {
  text-decoration: underline;
}

/* Vibe chips: default and active (class toggled by vibe-filter controller so All is not highlighted when another chip is selected) */

.vibe-chip {
  background: transparent;
  color: #666666;
  border: 1.5px solid #D4D4D4;
}

.vibe-chip:hover {
  border-color: #1A1A1A;
  color: #1A1A1A;
}

[data-vibe-filter-target="chip"].active,
.vibe-chip.active {
  background: #1A1A1A !important;
  color: #FFFFFF !important;
  border-color: #1A1A1A !important;
}

/* ─── Boards section labels ─── */

.boards-section-label {
  font-family: 'Lora', Georgia, serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999999;
  margin-bottom: 14px;
}

/* Map pin popup styles */

.map-pin-popup {
  width: 280px;
  border-radius: 12px;
  background: var(--color-surface-raised);
  color: var(--color-text-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
}

.map-pin-popup .popup-image {
  width: 100%;
  height: 120px;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.map-pin-popup .popup-image-fallback {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-pin-popup .popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.map-pin-popup .popup-content {
  padding: 12px 14px;
}

.map-pin-popup .popup-category {
  font-family: 'Lora', Georgia, serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2D5016;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.map-pin-popup .popup-category .category-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.map-pin-popup .popup-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.3;
  margin-bottom: 2px;
}

.map-pin-popup .popup-meta {
  font-family: 'Lora', Georgia, serif;
  font-size: 12px;
  color: #999999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.map-pin-popup .popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid #F0F0F0;
}

.map-pin-popup .popup-save-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface-raised);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.15s ease;
}

.map-pin-popup .popup-save-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.map-pin-popup .popup-view-link {
  font-family: 'Lora', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  text-decoration: none;
}

.map-pin-popup .popup-view-link:hover {
  color: #2D5016;
}

/* Force transparent background on template cards - must be last to override templates_section.css */

a.template-card,
.template-card {
  background: transparent !important;
  background-color: transparent !important;
}

html, body {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
}

#main-content.main-content-area {
  background-color: var(--color-surface);
  color: var(--color-text-primary);
}

.after\:absolute::after{
  content: var(--tw-content);
  position: absolute;
}

.after\:left-\[2px\]::after{
  content: var(--tw-content);
  left: 2px;
}

.after\:top-\[2px\]::after{
  content: var(--tw-content);
  top: 2px;
}

.after\:h-5::after{
  content: var(--tw-content);
  height: 1.25rem;
}

.after\:w-5::after{
  content: var(--tw-content);
  width: 1.25rem;
}

.after\:rounded-full::after{
  content: var(--tw-content);
  border-radius: 9999px;
}

.after\:border::after{
  content: var(--tw-content);
  border-width: 1px;
}

.after\:border-gray-300::after{
  content: var(--tw-content);
  border-color: var(--gray-300);
}

.after\:bg-white::after{
  content: var(--tw-content);
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.after\:transition-all::after{
  content: var(--tw-content);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.after\:content-\[\'\'\]::after{
  --tw-content: '';
  content: var(--tw-content);
}

.last\:border-0:last-child{
  border-width: 0px;
}

.hover\:scale-\[1\.02\]:hover{
  --tw-scale-x: 1.02;
  --tw-scale-y: 1.02;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:border-\[\#A3A3A1\]:hover{
  --tw-border-opacity: 1;
  border-color: rgb(163 163 161 / var(--tw-border-opacity, 1));
}

.hover\:border-gray-300:hover{
  border-color: var(--gray-300);
}

.hover\:border-gray-400:hover{
  border-color: var(--gray-400);
}

.hover\:border-gray-900:hover{
  border-color: var(--gray-900);
}

.hover\:border-stone-200:hover{
  --tw-border-opacity: 1;
  border-color: rgb(231 229 228 / var(--tw-border-opacity, 1));
}

.hover\:border-stone-300:hover{
  --tw-border-opacity: 1;
  border-color: rgb(214 211 209 / var(--tw-border-opacity, 1));
}

.hover\:border-stone-400:hover{
  --tw-border-opacity: 1;
  border-color: rgb(168 162 158 / var(--tw-border-opacity, 1));
}

.hover\:bg-\[\#1a3009\]:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(26 48 9 / var(--tw-bg-opacity, 1));
}

.hover\:bg-\[\#525250\]:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(82 82 80 / var(--tw-bg-opacity, 1));
}

.hover\:bg-\[\#5C7C4A\]:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(92 124 74 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-700:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-100:hover{
  background-color: var(--gray-100);
}

.hover\:bg-gray-200:hover{
  background-color: var(--gray-200);
}

.hover\:bg-gray-300:hover{
  background-color: var(--gray-300);
}

.hover\:bg-gray-50:hover{
  background-color: var(--gray-50);
}

.hover\:bg-gray-600:hover{
  background-color: var(--gray-600);
}

.hover\:bg-gray-800:hover{
  background-color: var(--gray-800);
}

.hover\:bg-green-800:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(22 101 52 / var(--tw-bg-opacity, 1));
}

.hover\:bg-primary:hover{
  background-color: var(--color-accent);
}

.hover\:bg-primary-muted:hover{
  background-color: var(--green-500);
}

.hover\:bg-red-50:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.hover\:bg-red-700:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}

.hover\:bg-stone-100:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(245 245 244 / var(--tw-bg-opacity, 1));
}

.hover\:bg-stone-200:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(231 229 228 / var(--tw-bg-opacity, 1));
}

.hover\:text-\[\#5C7C4A\]:hover{
  --tw-text-opacity: 1;
  color: rgb(92 124 74 / var(--tw-text-opacity, 1));
}

.hover\:text-black:hover{
  color: var(--gray-900);
}

.hover\:text-gray-600:hover{
  color: var(--gray-600);
}

.hover\:text-gray-700:hover{
  color: var(--gray-700);
}

.hover\:text-gray-900:hover{
  color: var(--gray-900);
}

.hover\:text-primary-muted:hover{
  color: var(--green-500);
}

.hover\:text-red-600:hover{
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.hover\:text-red-800:hover{
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}

.hover\:text-stone-600:hover{
  --tw-text-opacity: 1;
  color: rgb(87 83 78 / var(--tw-text-opacity, 1));
}

.hover\:text-stone-700:hover{
  --tw-text-opacity: 1;
  color: rgb(68 64 60 / var(--tw-text-opacity, 1));
}

.hover\:text-white:hover{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.hover\:underline:hover{
  text-decoration-line: underline;
}

.hover\:opacity-90:hover{
  opacity: 0.9;
}

.hover\:shadow-\[0_4px_16px_rgba\(45\2c 80\2c 22\2c 0\.45\)\]:hover{
  --tw-shadow: 0 4px 16px rgba(45,80,22,0.45);
  --tw-shadow-colored: 0 4px 16px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-lg:hover{
  --tw-shadow: 0 8px 32px rgba(0,0,0,0.08);
  --tw-shadow-colored: 0 8px 32px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-md:hover{
  --tw-shadow: 0 4px 20px rgba(0,0,0,0.06);
  --tw-shadow-colored: 0 4px 20px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.focus\:border-\[\#2D5016\]:focus{
  --tw-border-opacity: 1;
  border-color: rgb(45 80 22 / var(--tw-border-opacity, 1));
}

.focus\:border-black:focus{
  border-color: var(--gray-900);
}

.focus\:border-blue-500:focus{
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.focus\:border-gray-900:focus{
  border-color: var(--gray-900);
}

.focus\:border-primary:focus{
  border-color: var(--color-accent);
}

.focus\:border-transparent:focus{
  border-color: transparent;
}

.focus\:bg-white:focus{
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.focus\:text-black:focus{
  color: var(--gray-900);
}

.focus\:outline-none:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-\[\#2D5016\]:focus{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(45 80 22 / var(--tw-ring-opacity, 1));
}

.focus\:ring-\[\#2D5016\]\/20:focus{
  --tw-ring-color: rgb(45 80 22 / 0.2);
}

.focus\:ring-black:focus{
  --tw-ring-color: var(--gray-900);
}

.focus\:ring-blue-500:focus{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

.focus\:ring-gray-900:focus{
  --tw-ring-color: var(--gray-900);
}

.focus\:ring-primary:focus{
  --tw-ring-color: var(--color-accent);
}

.focus\:ring-stone-500:focus{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(120 113 108 / var(--tw-ring-opacity, 1));
}

.focus\:ring-stone-900:focus{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(28 25 23 / var(--tw-ring-opacity, 1));
}

.focus\:ring-opacity-20:focus{
  --tw-ring-opacity: 0.2;
}

.disabled\:cursor-not-allowed:disabled{
  cursor: not-allowed;
}

.disabled\:bg-gray-100:disabled{
  background-color: var(--gray-100);
}

.disabled\:opacity-50:disabled{
  opacity: 0.5;
}

.disabled\:hover\:scale-100:hover:disabled{
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:text-gray-500{
  color: var(--gray-500);
}

.group:hover .group-hover\:text-stone-600{
  --tw-text-opacity: 1;
  color: rgb(87 83 78 / var(--tw-text-opacity, 1));
}

.peer:checked ~ .peer-checked\:bg-\[\#2D5016\]{
  --tw-bg-opacity: 1;
  background-color: rgb(45 80 22 / var(--tw-bg-opacity, 1));
}

.peer:checked ~ .peer-checked\:after\:translate-x-full::after{
  content: var(--tw-content);
  --tw-translate-x: 100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.peer:checked ~ .peer-checked\:after\:border-white::after{
  content: var(--tw-content);
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}

.peer:focus ~ .peer-focus\:outline-none{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.peer:focus ~ .peer-focus\:ring-4{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.peer:focus ~ .peer-focus\:ring-\[\#2D5016\]\/20{
  --tw-ring-color: rgb(45 80 22 / 0.2);
}

@media (min-width: 640px){

  .sm\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:flex-row{
    flex-direction: row;
  }

  .sm\:px-6{
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px){

  .md\:block{
    display: block;
  }

  .md\:flex{
    display: flex;
  }

  .md\:hidden{
    display: none;
  }

  .md\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:flex-row{
    flex-direction: row;
  }

  .md\:items-center{
    align-items: center;
  }

  .md\:justify-between{
    justify-content: space-between;
  }

  .md\:px-12{
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .md\:text-4xl{
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 1024px){

  .lg\:col-span-1{
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-2{
    grid-column: span 2 / span 2;
  }

  .lg\:grid{
    display: grid;
  }

  .lg\:grid-cols-3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:gap-8{
    gap: 2rem;
  }

  .lg\:px-8{
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
