/* Photo fallbacks, custom dropdowns, home search and listing filters. Loaded after site.css. */

/* ── Photo fallbacks ─────────────────────────────────────── */
.ph-note { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.9); color: var(--navy-900); font-size: 12px; font-weight: 700; line-height: 16px; }
.ph-note i { font-size: 12px; color: var(--terracotta-700); }
.dest-tile .ph-note, .cat-tile .ph-note, .hero-media .ph-note { display: none; }
.article-hero .ph-note { left: 16px; bottom: 16px; }
.ill-tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--radius-pill); background: rgba(23,59,58,.84); color: #fff; font-size: 12px; font-weight: 600; line-height: 16px; }
.ill-tag i { font-size: 12px; opacity: .85; }
.gallery-main { position: relative; }

/* ── Custom dropdowns (enhance <select>) ─────────────────── */
.dd { position: relative; width: 100%; }
.dd > select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer;
  min-height: 48px; padding: 10px 14px; background: var(--white); border: 1px solid var(--neutral-300); border-radius: var(--radius-sm);
  font-size: 15px; line-height: 22px; color: var(--charcoal-900); transition: border-color var(--t), box-shadow var(--t); }
.dd-btn:hover { border-color: var(--navy-800); }
.dd-btn:focus-visible, .dd.is-open .dd-btn { outline: none; border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(23,59,58,.14); }
.dd-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-caret { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--navy-900); border-bottom: 2px solid var(--navy-900); transform: translateY(-3px) rotate(45deg); transition: transform var(--t); }
.dd.is-open .dd-caret { transform: translateY(2px) rotate(-135deg); }
.dd-menu { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--border-200); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-4px); visibility: hidden; transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 140ms; }
.dd.is-open .dd-menu { opacity: 1; transform: none; visibility: visible; }
.dd.is-up .dd-menu { top: auto; bottom: calc(100% + 6px); }
.dd-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 15px; line-height: 20px; color: var(--charcoal-900); }
.dd-opt.is-active { background: var(--neutral-100); }
.dd-opt[aria-selected="true"] { font-weight: 700; color: var(--navy-900); }
.dd-opt[aria-selected="true"]::after { content: ""; flex: none; width: 6px; height: 11px; border-right: 2px solid var(--terracotta-700); border-bottom: 2px solid var(--terracotta-700); transform: rotate(45deg) translate(-2px, -2px); }
.dd-menu::-webkit-scrollbar { width: 8px; }
.dd-menu::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 8px; }

/* ── Home search ─────────────────────────────────────────── */
.search-field > div { flex: 1; min-width: 0; }
.search-field > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--neutral-100); font-size: 16px; color: var(--terracotta-700); flex: none; }
.search-field label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-600); line-height: 16px; margin-bottom: 1px; }
.search-field .dd-btn { min-height: 26px; padding: 2px 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 15px; font-weight: 600; color: var(--charcoal-900); }
.search-field .dd-btn:focus-visible { outline: 3px solid var(--sand-500); outline-offset: 4px; border-radius: 4px; }
.search-field .dd-menu { left: -56px; right: auto; min-width: 280px; top: calc(100% + 18px); }
.search-field .dd.is-up .dd-menu { top: auto; bottom: calc(100% + 18px); }
.search-field input[type=date] { font-size: 15px; font-weight: 600; color: var(--charcoal-900); font-family: inherit; }
.search-field input[type=date]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.search-field:hover { background: rgba(23,59,58,.03); }
.search .btn { border-radius: var(--radius-md); padding-inline: 28px; }
@media (min-width: 900px) {
  .search { padding: 8px; }
  .search-field { padding: 12px 20px; border-radius: var(--radius-md); }
}

/* ── Listing filters ─────────────────────────────────────── */
.filters { gap: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters-head h2 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.filters-head h2 i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--neutral-100); color: var(--terracotta-700); font-size: 14px; }
.filters-reset { font-size: 13px; font-weight: 600; color: var(--terracotta-700); text-decoration: none; }
.filters-reset:hover { text-decoration: underline; color: var(--terracotta-700); }
.filters .field label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-600); }
.filters .field .hint { font-size: 12px; }
.filters .btn { width: 100%; justify-content: center; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--stone-600); pointer-events: none; font-size: 14px; }
.input-icon .input { padding-left: 40px; }
.filters-toggle { display: none; }
@media (max-width: 959px) {
  .filters-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px; background: var(--white); border: 1px solid var(--border-200); border-radius: var(--radius-md); font-weight: 700; cursor: pointer; }
  .filters.is-collapsed { display: none; }
}
.chips .btn--sm { border-radius: var(--radius-pill); }
.listing-top { padding-bottom: 14px; border-bottom: 1px solid var(--border-200); }
.listing { padding-top: 32px; padding-bottom: 72px; }

/* ── WhatsApp floating button ─────────────────────────────── */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 18px 0 16px;
  border-radius: var(--radius-pill); background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; justify-content: center;
  box-shadow: 0 8px 22px rgba(18,140,70,.38); transition: transform var(--t), box-shadow var(--t), background var(--t); }
.wa-float i { font-size: 28px; line-height: 1; }
.wa-float span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; margin-left: -10px; transition: max-width 220ms ease-out, opacity 160ms, margin 220ms; }
.wa-float:hover, .wa-float:focus-visible { background: #1EBE5A; color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,140,70,.45); }
.wa-float:hover span, .wa-float:focus-visible span { max-width: 140px; opacity: 1; margin-left: 0; }
.wa-float:focus-visible { outline: 3px solid var(--sand-500); outline-offset: 3px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25D366; opacity: 0; animation: wa-pulse 2.8s ease-out 2s 3; pointer-events: none; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } .wa-float, .wa-float span { transition: none; } }
@media (max-width: 999px) { body.has-book-bar .wa-float { bottom: 92px; } }
@media (max-width: 600px) { .wa-float { right: 14px; bottom: 14px; height: 52px; min-width: 52px; padding: 0 14px; } .wa-float span { display: none; } body.has-book-bar .wa-float { bottom: 88px; } }
.consent ~ .wa-float { bottom: 96px; }
