/* Main colors: #30533b, #9ea896, #bfa391 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html, body { height: 100%; width: 100%; overflow: hidden; }
#map { height: 100%; width: 100%; }

#map button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}

#searchButton.search-btn--filled {
  background: #30533b;
  border: 2px solid #30533b;
  color: #ffffff;
}

#searchButton.search-btn--outline {
  background: #ffffff;
  border: 2px solid #30533b;
  color: #30533b;
}

body {
    width: 100%;
    font-family: Source Sans Pro, Arial;
}

.container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #9ea896 0%, #9ea896 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    overflow: hidden;
}

h1 {
    color: #9ea896;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    color: #999;
    text-align: center;
    font-size: 0.95em;
    margin-bottom: 40px;
}

.form-container {
    min-height: 200px;
}

.step {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leaflet-control {
    display: none;
}

.leaflet-popup {
  z-index: 10000 !important;
}

label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1em;
}

input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

input[type="number"]:focus {
    outline: none;
    border-color: #9ea896;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.option-btn,
button {
    padding: 14px 20px;
    border: 2px solid #0e0e0e;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
}

.option-btn:hover,
button:hover {
    border-color: #9ea896;
    color: #9ea896;
}

.option-btn:active {
    background: #9ea896;
    color: white;
    border-color: #9ea896;
}

.results {
    animation: slideIn 0.3s ease-out;
}

.hidden {
    display: none;
}

.results h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

#resultsList {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.activity-item {
    background: #f8f9fa;
    border-left: 4px solid #9ea896;
    padding: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(4px);
}

.activity-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.activity-description {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 6px;
}


.title-meta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 0 16px 0;
}


.title-meta-container h3 {
  flex: 1;
}

.activity-meta {
    color: #999;
    font-size: 0.85em;
    display: flex;
    gap: 16px;
    vertical-align: center;
}

.btn-restart {
    margin-top: 10px;
}

.loading {
    display: none;
    text-align: center;
}

.spinner {
    border: 3px solid #e0e0e0;
    border-top: 3px solid #9ea896;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    color: #666;
    margin-top: 16px;
}

@media (max-width: 600px) {
    .card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2em;
    }

    .options {
        grid-template-columns: 1fr;
    }
}






#app-body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

/* Top Bar */
.top-bar {
  background: #ffffff;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-toolbar {
  display: none;
}

.mobile-only-control {
  display: none;
}

.mobile-overlay {
  display: none;
}

/* Download buttons – Material filled */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #30533b;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.22), 0 2px 6px rgba(48,83,59,0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-download svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-download::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.18s ease;
  border-radius: inherit;
}

.btn-download:hover {
  background: #3d6b4c;
  box-shadow: 0 3px 8px rgba(0,0,0,0.22), 0 6px 16px rgba(48,83,59,0.2);
  transform: translateY(-1px);
}

.btn-download:active {
  background: #254530;
  box-shadow: 0 1px 2px rgba(0,0,0,0.18);
  transform: translateY(0) scale(0.97);
}

.btn-download:active::after {
  background: rgba(255,255,255,0.14);
}

/* More options button */
.more-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #30533b;
  padding: 0;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-more svg {
  width: 24px;
  height: 24px;
}

.btn-more:hover {
  background: rgba(48,83,59,0.09);
}

.btn-more:active {
  background: rgba(48,83,59,0.18);
}

/* Dropdown menu */
.more-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.1);
  z-index: 3000;
  overflow: hidden;
  animation: dropdownAppear 0.15s ease;
}

.more-dropdown.is-open {
  display: block;
}

@keyframes dropdownAppear {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.more-dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-radius: 0;
  text-align: left;
  font-size: 14px;
  color: #212121;
  cursor: pointer;
  transition: background 0.12s ease;
  box-shadow: none;
}

.more-dropdown-item:hover {
  background: #f5f5f5;
  color: #212121;
  border-color: transparent;
  box-shadow: none;
}

.more-dropdown-item:active {
  background: #eeeeee;
}

/* Privacy Policy Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.46);
  z-index: 4000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.18s ease;
}

.modal-overlay.is-open {
  display: flex;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-content {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 580px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  animation: modalSlideUp 0.18s ease;
  overflow: hidden;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #212121;
  margin: 0;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #212121;
}

.modal-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.privacy-updated {
  font-size: 12px;
  color: #999;
  margin-bottom: 18px;
}

.privacy-section {
  margin-bottom: 22px;
}

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

.privacy-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #30533b;
  margin-bottom: 8px;
}

.privacy-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 8px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section a {
  color: #30533b;
  text-decoration: underline;
}

.privacy-section code {
  background: #f3f3f3;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.92em;
}

/* Main Layout */
.main-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.main-container.pre-search .left-column,
.main-container.pre-search .middle-column {
  display: none;
}

.main-container.pre-search .right-column {
  width: 100%;
  flex: 1;
}

@keyframes panelAppear {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.main-container.reveal-panels .left-column,
.main-container.reveal-panels .middle-column {
  animation: panelAppear 2s ease-out;
}

/* Left Column: Overview */
.left-column {
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  padding: 4px;
  width: 320px;
  min-width: 260px;
  max-width: 380px;
  overflow-x: hidden;
}

.itinerary-button {
  background: #30533b;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.itinerary-button .chevron {
  font-size: 12px;
}

.saved-itineraries-panel {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d7ddd3;
  border-radius: 10px;
  background: #ffffff;
}

.saved-itineraries-panel h3 {
  margin-bottom: 8px;
  color: #30533b;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.saved-itineraries-panel input,
.saved-itineraries-panel select {
  width: 100%;
  border: 1px solid #cdd8c6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 8px;
  background: #ffffff;
}

.saved-itineraries-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.saved-itineraries-actions button {
  width: 100%;
  border: 1px solid #30533b;
  background: #30533b;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.saved-itineraries-actions button:hover {
  color: #ffffff;
  border-color: #3f6b4b;
  background: #3f6b4b;
}

#new-itinerary-btn {
  background: #ffffff;
  color: #30533b;
}

#new-itinerary-btn:hover {
  background: #eef4ea;
  color: #30533b;
}

#share-itinerary-btn {
  background: #f7fbf4;
  color: #30533b;
}

#share-itinerary-btn:hover {
  background: #eaf4e3;
  color: #30533b;
}

.saved-itinerary-status {
  min-height: 18px;
  margin: 0;
  color: #30533b;
  font-size: 12px;
}

.saved-itinerary-status--error {
  color: #9b2c2c;
}

/* Style for day items in the left column */
.day-item {
  cursor: pointer;
  padding: 12px;
  margin: 5px 0;
  color: #777;
}

.day-item:hover {
  color: #222;
}

.day-item.active {
  border-radius: 12px;
  color: #222;
  border: 1px solid #30533b;
}


.day-item.active .day-title {
  font-weight: bold;
}

.day-activity {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-selection {
  margin-top: 16px;
}

.day-selection h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

/* Middle Column: Program Details */
.middle-column {
  flex: 1;
  background: #ffffff;
  overflow-y: auto;
  border-right: 1px solid #e0e0e0;
  min-width: 320px;
}

/* Scrollable container for activities */
.activity-scroll-container {
  max-height: 1000vh; /* Adjust as needed */
  overflow-y: auto;
}

/* Style for day headers */
.day-header {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0;
  color: #212529;
  line-height: 1.2;
  display: inline-block;
  padding-left: 40px;
  position: relative; /* Required for absolute positioning of the child */
  z-index: 2;
  margin-bottom: 12px;;
}

.day-header-bg {
  background-color: #edf5e6;
  height: 0.67em;
  width: 90%; /* Match the width of the parent (text width) */
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
}

.activity-card {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  cursor: grab;
}

.activity-card:hover {
  background: #eeeeee;
  border-radius: 10px;
}

.activity-card:active {
  cursor: grabbing;
}

.activity-card--dragging {
  opacity: 0.45;
}

.activity-card--drop-target {
  outline: 2px dashed #30533b;
  outline-offset: 2px;
}

.day-section {
  padding-bottom: 8px;
}

.day-activities {
  min-height: 32px;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.day-activities--dragover {
  background: rgba(48, 83, 59, 0.08);
}

.suggested-activities {
  margin: 10px 0 22px 0;
  padding: 12px;
  border: 1px solid #e3eadf;
  border-radius: 12px;
  background: #f6faf3;
}

.suggested-activities--hidden {
  display: none;
}

.suggested-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #30533b;
  margin-bottom: 10px;
}

.suggested-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.suggested-scroll--empty {
  min-height: 72px;
  align-items: center;
}

.suggested-empty-state {
  width: 100%;
  border: 1px dashed #bdd0b6;
  border-radius: 10px;
  padding: 12px;
  color: #476155;
  font-size: 13px;
  text-align: center;
  background: #fcfffa;
}

.suggested-activities--dragover {
  outline: 2px dashed #30533b;
  outline-offset: 3px;
  border-radius: 10px;
}

.activity-card--suggested {
  min-width: 250px;
  max-width: 250px;
  margin-bottom: 0;
  padding: 12px;
}

.activity-card--suggested .activity-content {
  gap: 10px;
}

.activity-card--suggested .activity-details h3 {
  font-size: 16px;
}

.activity-card--suggested .activity-image {
  width: 84px;
}

.remove-activity-btn {
  background: none;
  border: none;
  color: #9ea896;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  padding: 4px 8px;
  margin-right: 8px;
}

.activity-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.activity-details {
  flex: 1;
  min-width: 0; /* Prevents overflow issues */
}

.activity-details h3 {
  font-size: 18px;
  color: #333;
}

.activity-description {
  margin: 0 0 8px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

.activity-tags {
  margin: 0 0 8px 0;
  color: #999;
  font-size: 12px;
}

.show-more-btn {
  background: none;
  border: none;
  color: #9ea896;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 8px;
  margin-left: 8px;
}

.show-more-btn:hover {
  text-decoration: underline;
}

.view-on-map-btn {
  display: none;
  margin-top: 6px;
  background: #ffffff;
  color: #30533b;
  border: 1px solid #30533b;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
}

.view-on-map-btn:hover {
  background: #eef4ea;
  color: #30533b;
}

.touch-move-controls {
  display: none;
}

.touch-move-btn,
.touch-add-btn {
  background: #f7fbf4;
  color: #30533b;
  border: 1px solid #b9cab3;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
}

.touch-move-btn:disabled {
  opacity: 0.45;
}

.activity-price,
.activity-duration {
  margin: 4px 0;
  color: #555;
  font-size: 14px;
}

.marker-teardrop {
  pointer-events: none; /* Ensures clicks pass through to the map */
}

.marker-teardrop div {
  width: 100%;
  height: 100%;
  border-radius: 50% 50% 0 50%;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.marker-teardrop span {
  transform: rotate(-45deg);
  display: inline-block;
  font-weight: bold;
  font-size: 1rem;
}

.activity-image {
  flex-shrink: 0;
  width: 200px;
  vertical-align: center;
}

.activity-image img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  vertical-align: center;
}

.activity-meta-condensed {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: #555;
  align-items: center;
  margin-left: auto; /* Pushes meta to the right */
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-icon {
  width: 16px;
  height: 16px;
}

.tags-container {
  display: flex;          /* Align tags horizontally */
  gap: 8px;               /* Space between tags */
  flex-wrap: wrap;        /* Allow tags to wrap to the next line if needed */
  margin: 8px 0;          /* Vertical spacing around the container */
}

.tag {
  background: #f0f0f0;   /* Light gray background */
  color: #555;           /* Dark gray text */
  padding: 4px 12px;     /* Horizontal and vertical padding */
  border-radius: 16px;   /* Rounded corners */
  font-size: 12px;       /* Small font size */
  font-weight: 500;      /* Medium font weight */
  white-space: nowrap;   /* Prevent tags from breaking into multiple lines */
}

/* Right Column: Map */
.right-column {
  width: 42%;
  min-width: 340px;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

#regionQuestion {
  width: min(420px, calc(100% - 28px));
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .left-column {
    width: 280px;
    min-width: 240px;
  }

  .right-column {
    width: 40%;
    min-width: 300px;
  }

  .middle-column {
    min-width: 280px;
  }
}

@media (max-width: 900px) {
  .top-bar {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }

  .mobile-toolbar {
    display: flex;
    gap: 8px;
    width: 100%;
  }

  .mobile-only-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-download {
    flex: 1 1 140px;
    min-height: 42px;
    justify-content: center;
    border-radius: 10px;
  }

  .more-dropdown {
    right: 0;
    left: auto;
    min-width: 190px;
  }

  .main-container {
    position: relative;
    flex-direction: column;
  }

  .main-container.reveal-panels .left-column,
  .main-container.reveal-panels .middle-column {
    animation: none;
  }

  .left-column {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 360px);
    max-width: none;
    min-width: 0;
    border-right: 1px solid #e0e0e0;
    border-bottom: none;
    z-index: 2500;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    padding: 10px;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.14);
  }

  body:not(.mobile-ui-ready) .left-column {
    display: none;
  }

  body.app-mobile-menu-open .left-column {
    transform: translateX(0);
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.34);
    z-index: 2400;
  }

  body.app-mobile-menu-open .mobile-overlay {
    display: block;
  }

  .middle-column {
    width: 100%;
    min-width: 0;
    max-width: none;
    order: 1;
    flex: 1;
    min-height: 0;
    border-right: none;
    padding-bottom: 8px;
  }

  .right-column {
    display: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    order: 1;
    flex: 1;
    min-height: 0;
    border-bottom: none;
  }

  body.app-mobile-map-open .middle-column {
    display: none;
  }

  body.app-mobile-map-open .right-column {
    display: block;
  }

  body.app-mobile-map-open .mobile-map-open-btn {
    display: none;
  }

  body.app-mobile-map-open .mobile-map-close-btn {
    display: inline-flex;
  }

  .main-container.pre-search .right-column {
    display: block !important;
    width: 100%;
    min-width: 0;
    height: 100%;
  }

  .main-container.pre-search .middle-column {
    display: none;
  }

  .saved-itineraries-actions button,
  .itinerary-button {
    min-height: 42px;
  }

  .day-selection {
    max-height: 28dvh;
    overflow: auto;
  }

  #regionQuestion {
    max-width: calc(100% - 20px) !important;
    left: 10px !important;
    right: 10px;
    padding: 8px 10px !important;
  }

  #searchButton {
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    bottom: 8px;
    font-size: 14px;
    padding: 10px 12px;
  }

  .day-header {
    font-size: 1.65rem;
    padding-left: 18px;
  }

  .day-header-bg {
    width: 96%;
  }

  .activity-card {
    padding: 12px;
    margin-bottom: 10px;
  }

  .activity-card--touch {
    cursor: default;
  }

  .view-on-map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
  }

  body.app-mobile-map-open .view-on-map-btn {
    display: none;
  }

  .touch-move-controls {
    display: flex;
    gap: 8px;
    margin: 6px 0;
  }

  .touch-move-btn,
  .touch-add-btn {
    flex: 1;
    min-height: 38px;
  }

  .touch-add-btn {
    width: 100%;
    margin-top: 8px;
  }

  .activity-content {
    flex-direction: column;
    gap: 10px;
  }

  .activity-image {
    width: 100%;
  }

  .activity-image img {
    max-height: 220px;
    object-fit: cover;
  }

  .title-meta-container {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }

  .activity-meta-condensed {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .suggested-activities {
    margin: 6px 0 16px 0;
    padding: 10px;
  }

  .activity-card--suggested {
    min-width: 220px;
    max-width: 220px;
  }
}

@media (max-width: 600px) {
  html, body {
    overflow: auto;
  }

  .container {
    align-items: flex-start;
    padding: 14px;
  }

  .card {
    width: 100%;
    padding: 24px 16px;
    border-radius: 16px;
  }

  .subtitle {
    margin-bottom: 24px;
  }

  .left-column {
    width: min(92vw, 360px);
  }

  .day-header {
    font-size: 1.45rem;
  }

  .saved-itineraries-panel h3 {
    font-size: 12px;
  }

  .saved-itineraries-panel input,
  .saved-itineraries-panel select {
    font-size: 14px;
  }
}

/* Budget – compact left-column summary */
.budget-summary-panel {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #d7ddd3;
  border-radius: 10px;
  background: #ffffff;
}

.app-version {
  margin-top: auto;
  padding: 8px 4px 4px;
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.03em;
  user-select: none;
}

.budget-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.budget-summary-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.budget-summary-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #30533b;
}

.budget-voir-btn {
  flex-shrink: 0;
  background: #30533b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease;
}

.budget-voir-btn:hover {
  background: #3d6b4c;
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

/* Budget – full view in middle column */
.budget-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 24px 32px 32px;
}

.budget-view[hidden] {
  display: none;
}

.budget-view-header {
  margin-bottom: 8px;
}

.budget-view-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #212529;
  margin-bottom: 20px;
}

.budget-persons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eef2ec;
}

.budget-persons-label {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.budget-persons-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.budget-persons-stepper button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #cdd8c6;
  border-radius: 50%;
  background: #f7fbf4;
  color: #30533b;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
  flex: none;
}

.budget-persons-stepper button:hover {
  background: #edf5e6;
  border-color: #30533b;
  color: #30533b;
  box-shadow: none;
}

.budget-persons-stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

#budget-persons-value {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  min-width: 20px;
  text-align: center;
  display: inline-block;
}

.budget-view-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 16px;
  border-bottom: 2px solid #d7ddd3;
  margin-bottom: 4px;
}

.budget-view-total-row span {
  font-size: 15px;
  color: #555;
}

.budget-total-amount {
  font-size: 22px;
  font-weight: 700;
  color: #30533b;
}

/* Expense list – Material List */
.budget-expense-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.budget-expense-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.budget-expense-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
  padding-right: 16px;
}

.budget-expense-title {
  font-size: 14px;
  font-weight: 500;
  color: #212121;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.budget-expense-day {
  font-size: 12px;
  color: #9e9e9e;
}

.budget-expense-price {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  flex-shrink: 0;
}

.budget-expense-empty {
  padding: 32px 0;
  font-size: 14px;
  color: #bdbdbd;
  text-align: center;
}

/* DEBUG */
#regionSelectionSummary {
  display: none;
}
