/* OurWayTrips V6.0.6 — site-wide clickable affordance audit */
:root{
  --owt-action:#c85f37;
  --owt-action-dark:#9e4327;
  --owt-action-soft:#fff3e7;
  --owt-action-soft2:#f8e6d4;
  --owt-action-line:#d6a078;
  --owt-action-line-strong:#bd7148;
  --owt-action-shadow:rgba(103,57,33,.16);
  --owt-action-shadow-strong:rgba(103,57,33,.24);
}

/* Universal interaction signal. */
:where(a[href],button,summary,select,input[type="checkbox"],input[type="radio"],label:has(input[type="checkbox"]),label:has(input[type="radio"]),[role="button"],[data-go],[data-day],[data-today-day],[data-map-day],[data-check-tab]){
  cursor:pointer;
  -webkit-tap-highlight-color:rgba(200,95,55,.17);
}
:where(a[href],button,summary,[role="button"]){
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background-color .16s ease,color .16s ease,opacity .16s ease;
}

/* Real buttons: every button should read as a control, even if old CSS made it flat. */
button:not(.today-stop-check):not(.menu-close):not(.modal-close),
.btn,
.small-btn{
  border-width:1.5px;
}
.btn.primary,.trip-adventure-btn,.adventure-buttons a,.adventure-full-route,
#reviewImportReservationBtn,#smartImportApplyBtn,
#tripPlanAddBtn,#addReservationProBtn,#addExpenseTopBtn,#addExpenseProBtn,#addChecklistItemBtn,#newTripBtn,#newTripBtnLegacy{
  box-shadow:0 7px 16px var(--owt-action-shadow),inset 0 1px 0 rgba(255,255,255,.24)!important;
  font-weight:850!important;
}
.btn.primary:hover,.trip-adventure-btn:hover,.adventure-buttons a:hover,.adventure-full-route:hover,
#reviewImportReservationBtn:hover,#smartImportApplyBtn:hover{
  transform:translateY(-2px);
  box-shadow:0 11px 22px var(--owt-action-shadow-strong),inset 0 1px 0 rgba(255,255,255,.28)!important;
}

/* Secondary actions get a visible button surface instead of plain text. */
.btn.ghost,.small-btn,.text-action,.button-link,
.adventure-close,.adventure-reset,.adventure-buttons button:not(.adventure-complete),
.weather-refresh-btn,.weather-custom-row button,.tool-card .btn,
.row-actions button,.custom-plan-head button,
#editDepartureBtn,#editHomeBaseProBtn,#importReservationBtn,#addGroupBtn,#addSettlementBtn,
#addTravelerBtn,#addTaskBtn,#addDecisionBtn,#addDecisionChoice,
#connectSyncBtn,#syncNowBtn,#installAppBtn,#exportDataBtn,#importDataBtn,#openSmartImportToolBtn,#shareTripBtn{
  background:#fffaf3!important;
  border:1.5px solid var(--owt-action-line)!important;
  color:#5b3524!important;
  box-shadow:0 3px 9px rgba(95,61,39,.09)!important;
  font-weight:800!important;
}
.btn.ghost:hover,.small-btn:hover,.text-action:hover,.button-link:hover,
.adventure-close:hover,.adventure-reset:hover,.weather-refresh-btn:hover,.weather-custom-row button:hover,
.tool-card .btn:hover,.row-actions button:hover,.custom-plan-head button:hover{
  background:var(--owt-action-soft)!important;
  border-color:var(--owt-action-line-strong)!important;
  transform:translateY(-1px);
  box-shadow:0 7px 15px rgba(95,61,39,.14)!important;
}

/* Main Adventure CTA. */
.trip-adventure-btn{
  position:relative;
  background:linear-gradient(135deg,#c85f37,#df7b49)!important;
  border-color:#a64a2c!important;
  color:#fff!important;
  min-height:46px!important;
  padding:11px 18px!important;
}
.trip-adventure-btn::after{content:'›';font-size:1.35em;line-height:1;margin-left:9px;vertical-align:-1px}

/* Card-like links: add depth + a persistent chevron so they cannot be mistaken for static cards. */
:where(.quick-card,.action-tile,.trip-summary-card,.tool-hub-card,.map-stop-button,.weather-search-result){
  position:relative;
  border:1.5px solid var(--owt-action-line)!important;
  box-shadow:0 5px 13px rgba(91,57,36,.10)!important;
  background-color:#fffaf3;
  overflow:hidden;
}
:where(.quick-card,.action-tile,.trip-summary-card,.tool-hub-card):after{
  content:'›';
  position:absolute;
  right:12px;
  bottom:10px;
  width:24px;height:24px;border-radius:999px;
  display:grid;place-items:center;
  background:var(--owt-action-soft2);
  border:1px solid #e4bea2;
  color:var(--owt-action-dark);
  font-size:18px;font-weight:900;line-height:1;
}
:where(.quick-card,.action-tile,.trip-summary-card,.tool-hub-card,.map-stop-button,.weather-search-result):hover{
  transform:translateY(-2px);
  border-color:var(--owt-action-line-strong)!important;
  box-shadow:0 10px 20px rgba(91,57,36,.16)!important;
  background:#fff6ee!important;
}

/* Day / tab selectors must look like segmented controls. */
:where(.trip-day-switcher,.today-day-switcher,.map-day-tabs,.checklist-tabs,.weather-unit-switch){
  gap:7px!important;
}
:where(.trip-day-switcher button,.today-day-switcher button,.map-day-tabs button,.checklist-tabs button,.weather-unit-btn){
  border:1.5px solid #d4a17e!important;
  background:#fffaf3!important;
  color:#573727!important;
  box-shadow:0 3px 9px rgba(91,57,36,.08)!important;
  font-weight:800!important;
}
:where(.trip-day-switcher button,.today-day-switcher button,.map-day-tabs button,.checklist-tabs button,.weather-unit-btn):hover{
  border-color:var(--owt-action-line-strong)!important;
  background:var(--owt-action-soft)!important;
  transform:translateY(-1px);
}
:where(.trip-day-switcher button.active,.today-day-switcher button.active,.map-day-tabs button.active,.checklist-tabs button.active,.weather-unit-btn.active){
  background:linear-gradient(135deg,#bf5a34,#d87545)!important;
  color:#fff!important;
  border-color:#9f472a!important;
  box-shadow:0 7px 15px rgba(167,73,38,.22)!important;
}

/* Accordion heads and mission rows. */
.acc-head,.adventure-mission summary,.adventure-next{
  border-radius:12px;
}
.acc-head{
  border:1.5px solid #d8b394!important;
  background:#fffaf3!important;
  box-shadow:0 3px 9px rgba(91,57,36,.07)!important;
}
.acc-head:hover,.adventure-mission summary:hover,.adventure-next:hover{
  background:#fff3e6!important;
  border-color:#c98258!important;
}
.adventure-mission summary{position:relative;}
.adventure-mission:not([open]) summary::after{
  content:'Open ›';position:absolute;right:38px;bottom:7px;font-size:9px;font-weight:900;letter-spacing:.03em;color:#9f4b2c;
}
.adventure-mission[open] summary::after{
  content:'Close';position:absolute;right:38px;bottom:7px;font-size:9px;font-weight:900;color:#7b6758;
}
.adventure-next{
  border:1.5px solid #d39a72!important;
  box-shadow:0 7px 17px rgba(119,65,35,.13)!important;
}
.adventure-next::after{content:'Tap to jump to next ›';display:block;margin-top:7px;font-size:9px;font-weight:900;letter-spacing:.03em;color:#a95635;text-align:right}

/* Plain-looking navigational controls. */
.back-link,.menu-all-trips{
  display:inline-flex!important;align-items:center;gap:6px;
  min-height:38px;padding:8px 11px!important;
  border:1px solid rgba(190,126,84,.45)!important;
  border-radius:999px!important;
  background:rgba(255,250,243,.78)!important;
  color:#5b3524!important;
  box-shadow:0 2px 7px rgba(83,52,33,.07)!important;
  font-weight:800!important;text-decoration:none!important;
}
.back-link:hover,.menu-all-trips:hover{background:#fff1e4!important;border-color:#c98258!important;transform:translateY(-1px)}

/* Form controls: selects and checkbox rows should look actionable. */
select{
  border:1.5px solid #d0a17f!important;
  background-color:#fffdf8!important;
  box-shadow:inset 0 1px 1px rgba(71,45,29,.04),0 2px 6px rgba(91,57,36,.05)!important;
}
select:hover,select:focus{border-color:#ba7048!important;box-shadow:0 0 0 3px rgba(200,95,55,.10)!important}
label:has(input[type="checkbox"]),label:has(input[type="radio"]){
  border-radius:9px;
}
label:has(input[type="checkbox"]):hover,label:has(input[type="radio"]):hover{background:#fff3e8}

/* Map / today controls. */
.map-stop-button b{color:var(--owt-action)!important;font-size:1.25em!important}
.today-stop-check{
  box-shadow:0 3px 8px rgba(91,57,36,.12)!important;
  border:1.5px solid #c9855f!important;
}
.today-stop-check:hover{transform:scale(1.06);box-shadow:0 5px 12px rgba(91,57,36,.17)!important}
.today-stop-route a,.drive-chip a,.detail-nav,.map-popup a{
  display:inline-flex!important;align-items:center;gap:4px;
  padding:5px 8px!important;border-radius:8px!important;
  border:1px solid #dfb38f!important;background:#fff5e9!important;
  color:#9b492c!important;font-weight:800!important;text-decoration:none!important;
}
.today-stop-route a:hover,.drive-chip a:hover,.detail-nav:hover,.map-popup a:hover{background:#ffe9d6!important;border-color:#c77c51!important}

/* Tool rows: user sees immediately that the right-side control is the action. */
.tool-card{transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.tool-card:has(button:hover){border-color:#d59f79!important;box-shadow:0 8px 18px rgba(91,57,36,.10)!important;background:#fffaf3!important}

/* Nav and icon controls. */
.icon-btn,.menu-close,.modal-close{
  border:1px solid #d5a784!important;
  background:#fffaf3!important;
  color:#5b3524!important;
  box-shadow:0 2px 7px rgba(91,57,36,.10)!important;
}
.icon-btn:hover,.menu-close:hover,.modal-close:hover{background:#fff0e1!important;border-color:#c77b50!important}
.mobile-home-shortcut{border:1px solid #d9b18f!important;border-radius:10px;background:#fffaf3!important;box-shadow:0 2px 7px rgba(91,57,36,.08)!important}

/* Bottom navigation remains compact but gives a clear active/touch state. */
.mobile-bottom-nav a{border-radius:10px;transition:background .16s ease,color .16s ease,transform .16s ease}
.mobile-bottom-nav a:hover{background:#fff1e5;transform:translateY(-1px)}
.mobile-bottom-nav a.active{background:#f4ddca!important;color:#963f24!important;font-weight:850!important}

/* Keyboard focus + press feedback. */
:where(button,a[href],[role="button"],summary,select,input):focus-visible{
  outline:3px solid rgba(200,95,55,.40)!important;
  outline-offset:3px!important;
}
:where(button,a[href],summary,[role="button"]):active{transform:translateY(1px) scale(.985)}

@media(max-width:620px){
  .trip-adventure-btn{width:100%!important;justify-content:center!important;text-align:center!important}
  :where(.quick-card,.action-tile,.trip-summary-card,.tool-hub-card):after{right:9px;bottom:9px;width:22px;height:22px;font-size:16px}
  .adventure-mission:not([open]) summary::after,.adventure-mission[open] summary::after{display:none}
  .back-link{min-height:40px}
}
@media(hover:none){
  :where(a[href],button,summary,[role="button"]):hover{transform:none}
}

/* V6.0.7 — stronger desktop hover color feedback */
@media (hover:hover) and (pointer:fine){
  /* Primary CTA: visibly deepen terracotta on hover */
  .btn.primary:hover,.trip-adventure-btn:hover,.adventure-buttons a:hover,.adventure-full-route:hover,
  #reviewImportReservationBtn:hover,#smartImportApplyBtn:hover,#tripPlanAddBtn:hover,#addReservationProBtn:hover,
  #addExpenseTopBtn:hover,#addExpenseProBtn:hover,#addChecklistItemBtn:hover,#newTripBtn:hover,#newTripBtnLegacy:hover{
    background:linear-gradient(135deg,#a94b2c,#c86238)!important;
    border-color:#8f3b23!important;
    color:#fff!important;
  }

  /* Secondary buttons: warm cream becomes clearly tinted on hover */
  .btn.ghost:hover,.small-btn:hover,.text-action:hover,.button-link:hover,
  .adventure-close:hover,.adventure-reset:hover,.adventure-buttons button:not(.adventure-complete):hover,
  .weather-refresh-btn:hover,.weather-custom-row button:hover,.tool-card .btn:hover,
  .row-actions button:hover,.custom-plan-head button:hover,
  #editDepartureBtn:hover,#editHomeBaseProBtn:hover,#importReservationBtn:hover,#addGroupBtn:hover,#addSettlementBtn:hover,
  #addTravelerBtn:hover,#addTaskBtn:hover,#addDecisionBtn:hover,#addDecisionChoice:hover,
  #connectSyncBtn:hover,#syncNowBtn:hover,#installAppBtn:hover,#exportDataBtn:hover,#importDataBtn:hover,#openSmartImportToolBtn:hover,#shareTripBtn:hover{
    background:#f6dfca!important;
    border-color:#bb6841!important;
    color:#7f321d!important;
  }

  /* Card-like controls: stronger warm tint so cursor feedback is unmistakable */
  :where(.quick-card,.action-tile,.trip-summary-card,.tool-hub-card,.map-stop-button,.weather-search-result):hover{
    background:#f8e5d2!important;
    border-color:#bb6841!important;
  }
  :where(.quick-card,.action-tile,.trip-summary-card,.tool-hub-card):hover::after{
    background:#c85f37!important;
    color:#fff!important;
    border-color:#a94b2c!important;
  }

  /* Tabs / day selectors */
  :where(.trip-day-switcher button,.today-day-switcher button,.map-day-tabs button,.checklist-tabs button,.weather-unit-btn):not(.active):hover{
    background:#f3dcc6!important;
    border-color:#b85f3a!important;
    color:#7a301d!important;
  }

  /* Accordion / adventure rows */
  .acc-head:hover,.adventure-mission summary:hover,.adventure-next:hover{
    background:#f6dfc9!important;
    border-color:#bd6c44!important;
  }

  /* Small navigation / map links */
  .back-link:hover,.menu-all-trips:hover,.today-stop-route a:hover,.drive-chip a:hover,.detail-nav:hover,.map-popup a:hover,
  .icon-btn:hover,.menu-close:hover,.modal-close:hover{
    background:#f2d8c0!important;
    border-color:#ba6841!important;
    color:#7d331f!important;
  }

  /* Tool cards respond when hovering the action inside */
  .tool-card:has(button:hover){
    background:#f9eadb!important;
    border-color:#c47a50!important;
  }
}
