/* ============================================================
   TRIP PLANNER — TRIP PLAN GUIDE MODAL
   ------------------------------------------------------------
   Guide preview modal (profile, reviews, calendar, booking).

   Split out of styles/trip-plan.css (contiguous slice, so the cascade order is
   unchanged). Imported/linked right after it.
   ============================================================ */

/* ============================================================
   GUIDE PREVIEW MODAL
   Reusable in-page modal for inspecting and booking a guide
   without leaving the trip-plan page.
   ============================================================ */
.guide-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.guide-modal-overlay.open {
    display: flex;
}
.guide-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    padding: 1.5rem;
}
.guide-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.guide-modal-close:hover {
    background: var(--accent);
    color: var(--ink);
}
.guide-modal-loading {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem;
}

/* Hero */
.guide-modal-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}
.guide-modal-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-deep), var(--accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    flex: 0 0 72px;
    overflow: hidden;
}
.guide-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.guide-modal-hero-info {
    flex: 1;
    min-width: 0;
}
.guide-modal-hero-info h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.guide-modal-hero-info p {
    margin: 0.15rem 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    border-radius: 50%;
    background: #1d9bf0;
    color: #fff;
    font-size: 0.7em;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    cursor: help;
}
.guide-modal-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}
.gm-stat {
    text-align: center;
}
.gm-stat .num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ink);
}
.gm-stat .lbl {
    font-size: 0.7rem;
    color: var(--muted);
}

/* Tabs */
.guide-modal-tabs {
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1rem;
}
.gm-tab {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.gm-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.gm-panel {
    display: none;
}
.gm-panel.active {
    display: block;
}

/* Overview */
.gm-section {
    margin-bottom: 1rem;
}
.gm-section h4 {
    margin: 0 0 0.4rem;
    font-size: 0.95rem;
    color: var(--ink);
}
.gm-bio {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.9rem;
}
.gm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.gm-tags span {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.gm-trust-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}
.gm-trust-num {
    font-size: 1.6rem;
    font-weight: 800;
}
.gm-trust-num.green { color: #2ecc71; }
.gm-trust-num.blue { color: #1d9bf0; }
.gm-trust-num.orange { color: #e67e22; }
.gm-trust-bar {
    flex: 1;
    height: 10px;
    border-radius: 999px;
    background: var(--bg);
    overflow: hidden;
}
.gm-trust-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.6s ease;
}
.gm-trust-fill.green { background: #2ecc71; }
.gm-trust-fill.blue { background: #1d9bf0; }
.gm-trust-fill.orange { background: #e67e22; }
.gm-reliability {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gm-reliability li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    color: var(--ink);
    font-size: 0.9rem;
}
.gm-reliability li .check {
    color: #2ecc71;
    font-weight: 800;
}

/* Reviews */
.gm-reviews-list {
    max-height: 260px;
    overflow-y: auto;
}
.gm-review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
}
.gm-review-card:last-child {
    margin-bottom: 0;
}
.gm-review-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    flex-wrap: wrap;
}
.gm-review-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex: 0 0 30px;
    overflow: hidden;
}
.gm-review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gm-review-name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9rem;
}
.gm-review-stars {
    color: #f4a261;
    font-size: 0.85rem;
}
.gm-review-date {
    color: var(--muted);
    font-size: 0.75rem;
    margin-left: auto;
}
.gm-review-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Availability calendar */
.gm-calendar {
    margin-bottom: 0.6rem;
}
.gm-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.gm-calendar-head button {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
    font: inherit;
}
.gm-calendar-head .cal-title {
    font-weight: 700;
    color: var(--ink);
}
.gm-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}
.gm-cal-dow {
    text-align: center;
    color: var(--muted);
    font-size: 0.7rem;
    padding: 0.2rem 0;
}
.gm-cal-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: default;
    border: 1px solid transparent;
}
.gm-cal-day.available {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    cursor: pointer;
}
.gm-cal-day.available:hover {
    border-color: #2ecc71;
}
.gm-cal-day.unavailable {
    background: var(--bg);
    color: var(--muted);
}
.gm-cal-day.booked {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}
.gm-cal-day.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--ink);
    font-weight: 700;
}
.gm-cal-day.blank {
    visibility: hidden;
}
.gm-cal-legend {
    display: flex;
    gap: 1rem;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.gm-cal-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.gm-cal-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}
.gm-cal-legend .dot.green { background: #2ecc71; }
.gm-cal-legend .dot.gray { background: var(--muted); }
.gm-cal-legend .dot.red { background: #e74c3c; }
.gm-avail-msg {
    font-size: 0.85rem;
    margin-top: 0.4rem;
}
.gm-avail-msg.ok { color: #2ecc71; }
.gm-avail-msg.bad { color: #e74c3c; }

/* Booking form */
.gm-booking {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.gm-booking h4 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
    color: var(--ink);
}
.gm-form-field {
    margin-bottom: 0.8rem;
}
.gm-form-field label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.85rem;
}
.gm-form-field select,
.gm-form-field textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}
.gm-form-field textarea {
    resize: vertical;
    min-height: 60px;
}
.gm-booked-note {
    margin-top: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.5;
}
.gm-booked-note .gm-booked-date {
    font-weight: 700;
    color: #2ecc71;
}

@media (max-width: 480px) {
    .guide-modal {
        padding: 1rem;
    }
    .guide-modal-hero {
        flex-direction: column;
        text-align: center;
    }
    .guide-modal-stats {
        justify-content: center;
    }
}




/* Carried by the page's inline style attributes. */
.tp-intro-card {
  text-align: center;
  background: var(--surface);
}
.tp-intro-title {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-top: 0;
}
.tp-intro-lead {
  max-width: 60ch;
  margin: 0.8rem auto;
  color: var(--muted);
  font-size: 1.1rem;
}
.tp-duration-info {
  margin:0.5rem 0 1rem;
  color:var(--muted);
}
.tp-tier-row {
  display:flex;
  gap:1rem;
  justify-content:center;
  margin:0.5rem 0;
}
.tp-tier-chip {
  cursor:default;
  border-color:var(--accent);
}
.tp-confirmation-box {
  background:var(--bg);
  border-radius:12px;
  padding:1.2rem;
  margin:1rem 0;
}
.tp-confirmation-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0.5rem;
}
.tp-spinner {
  width:40px;
  height:40px;
  border-width:4px;
  margin:1rem auto;
}
.tp-container-wide {
  max-width:960px;
}
.tp-action-row {
  display:flex;
  gap:0.8rem;
  flex-wrap:wrap;
  margin-top:1.5rem;
}
.tp-disclaimer {
  margin-top:1.5rem;
  text-align:center;
  font-size:0.9rem;
  color:var(--muted);
}
.tp-spinner-sm {
  width:36px;
  height:36px;
  border-width:4px;
  margin:1rem auto;
}
.tp-dialog-backdrop {
  position:fixed;
  inset:0;
  z-index:9998;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
  background:rgba(17,9,6,0.6);
}
.tp-dialog-panel {
  background:var(--surface-strong);
  color:var(--ink);
  width:min(100%, 480px);
  border-radius:1rem;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.tp-dialog-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1rem 1.25rem;
  border-bottom:1px solid var(--line);
}
.tp-dialog-title {
  display:flex;
  align-items:center;
  gap:0.5rem;
}
.tp-dialog-icon {
  width:1.1rem;
  height:1.1rem;
  color:var(--accent-deep);
}
.tp-dialog-close {
  background:none;
  border:none;
  cursor:pointer;
  color:var(--muted);
  font-size:1.4rem;
  line-height:1;
}
.tp-dialog-body {
  padding:1.25rem;
}
.tp-dialog-label {
  display:block;
  margin-bottom:0.4rem;
  font-size:0.9rem;
  color:var(--muted);
}
.tp-dialog-textarea {
  width:100%;
  min-height:7rem;
  resize:vertical;
  padding:0.6rem 0.7rem;
  border:1px solid var(--line);
  border-radius:0.6rem;
  background:var(--surface);
  color:var(--ink);
  font:inherit;
}
.tp-dialog-actions {
  margin-top:1rem;
  display:flex;
  justify-content:flex-end;
  gap:0.6rem;
}
.tp-inline-icon {
  width:1rem;
  height:1rem;
  margin-right:0.35rem;
  vertical-align:-0.15rem;
}

