/* Page shell */
.ag-container{
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 14px 88px;
}
.ag-breadcrumb a{ text-decoration:none; }
.ag-breadcrumb{ margin-bottom: 10px; }
.ag-title{ margin: 6px 0 0; line-height:1.15; letter-spacing: -0.01em; }
.ag-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top: 8px;
  color:#6b7280;
  font-size: 14px;
}
.ag-meta__sep{ opacity:.7; }
.ag-meta strong{ color:#111827; font-weight: 600; }

.ag-activity-rating{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 10px;
  position: relative;
}
.ag-rating-stars{
  position: relative;
  font-size: 18px;
  line-height: 1;
  color: #e5e7eb;
  letter-spacing: 1px;
}
.ag-rating-stars .base{ color:#e5e7eb; }
.ag-rating-stars .fill{
  position: absolute;
  inset: 0;
  color: #f59e0b;
  overflow:hidden;
  width: var(--rating, 0%);
}
.ag-rating-stars--small{ font-size: 16px; }
.ag-rating-meta{
  display:flex;
  align-items:center;
  gap:10px;
}
.ag-rating-value{
  font-weight: 600;
  color:#111827;
}
.ag-rating-count{
  border: 0;
  background: none;
  padding: 0;
  color:#2563eb;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 10px;
}
.ag-rating-count:focus-visible{
  outline: 2px solid rgba(37,99,235,.4);
  outline-offset: 2px;
}
.ag-rating-hint{
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 12px;
  color:#475569;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
  max-width: 360px;
}
.ag-activity-rating:hover .ag-rating-hint,
.ag-activity-rating:focus-within .ag-rating-hint{
  opacity: 1;
  transform: translateY(0);
}
.ag-rating-list{
  display:flex;
  flex-direction: column;
  gap:12px;
  margin-top: 10px;
}
.ag-rating-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:10px;
}
.ag-rating-who{
  display:flex;
  align-items:center;
  gap:10px;
  color:#111827;
  text-decoration:none;
}
.ag-rating-who img{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
}
.ag-rating-reasons{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top: 6px;
}
.ag-rating-chip{
  font-size: 11px;
  font-weight: 600;
  color:#0f172a;
  border:1px solid #e5e7eb;
  border-radius:999px;
  padding:3px 8px;
  background:#f8fafc;
}

/* Rating modal (match profile modal style) */
.ag-activity-ratings-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.ag-activity-ratings-modal.is-open{ display: flex; }
.ag-activity-ratings-modal[hidden]{ display:none !important; }
.ag-activity-ratings-modal .ag-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.ag-activity-ratings-modal .ag-modal__dialog{
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: calc(100% - 28px);
  margin: 14px auto;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ag-activity-ratings-modal .ag-modal__close{
  position: absolute;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  z-index: 3;
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 22px;
  line-height: 40px;
  cursor: pointer;
}
.ag-activity-ratings-modal .ag-modal__body{
  padding: 16px 18px 20px;
}

.ag-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top: 12px;
}
.ag-author{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top: 10px;
}
.ag-author__avatar{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow:hidden;
  border: 1px solid #e5e7eb;
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0f172a;
  font-weight: 600;
  text-decoration:none;
}
.ag-author__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ag-author__info{
  display:flex;
  flex-direction: column;
  gap:4px;
}
.ag-author__name{
  font-weight: 600;
  color:#111827;
  text-decoration:none;
}
.ag-author__handle{
  font-size: 12px;
  color:#6b7280;
}
.ag-action-btn{
  border: 1px solid #e5e7eb;
  background: #fff;
  color:#111827;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.ag-action-btn[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.ag-action-btn:focus-visible{
  outline: 2px solid rgba(37,99,235,.4);
  outline-offset: 2px;
}
.ag-action-status{
  font-size: 12px;
  color:#6b7280;
  min-height: 14px;
}
@media (max-width: 520px){
  .ag-actions{ flex-direction: row; align-items: flex-start; }
}

.ag-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(17,24,39,.35);
}
.ag-link:hover{
  color:#111827;
  border-bottom-color: rgba(17,24,39,.7);
}

/* Main layout */
.ag-layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 22px;
  align-items:start;
  margin-top: 14px;
}
@media (max-width: 980px){
  .ag-layout{ grid-template-columns: 1fr; }
  .ag-aside{ position: static !important; }
}
.ag-aside{
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

/* Cards / sections */
.ag-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.ag-section{ margin-top: 14px; }
.ag-section h3{
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ag-section h4{
  margin: 12px 0 8px;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.ag-card--tight{ padding: 12px; }

/* Sticky section nav */
.ag-section-nav{
  display:none;
}
@media (min-width: 981px){
  .ag-section-nav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    position: sticky;
    top: 10px;
    z-index: 2;
    padding: 8px 10px;
    margin-bottom: 12px;
    border:1px solid #e5e7eb;
    background:#fff;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
  }
  .ag-section-nav a{
    text-decoration:none;
    font-size: 13px;
    font-weight: 600;
    color:#475569;
    padding:6px 10px;
    border-radius:999px;
    border:1px solid transparent;
  }
  .ag-section-nav a:focus-visible{
    outline: 2px solid rgba(37,99,235,.4);
    outline-offset: 2px;
  }
  .ag-section-nav a.is-active{
    color:#111827;
    border-color:#dbe2ea;
    background:#f8fafc;
  }
}
.ag-anchor{ scroll-margin-top: 90px; }

/* Hero + gallery */
.ag-hero{
  border-radius: 16px;
  overflow:hidden;
  background: #f6f7f9;
  border: 1px solid #e5e7eb;
}
.ag-hero img{ display:block; width:100%; height:auto; }
.ag-hero-caption{ margin-top: 8px; color:#6b7280; font-size: 13px; }

.ag-gallery-slider{
  margin-top: 10px;
  border-radius: 16px;
  border:1px solid #e5e7eb;
  background:#fff;
  position: relative;
  padding-block: 8px 4px;
}
.ag-gallery-viewport{
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: 6px;
}
.ag-gallery-track{
  display:flex;
}
.ag-gallery-slide{
  flex: 0 0 calc(100% / 3);
  padding: 8px;
  scroll-snap-align: start;
}
.ag-gallery-slide img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:12px;
  display:block;
  background:#f6f7f9;
}
.ag-gallery-control{
  position: absolute;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size: 18px;
  font-weight: 600;
  color:#111827;
  box-shadow: 0 4px 14px rgba(15,23,42,.08);
}
.ag-gallery-control:focus-visible{
  outline: 2px solid rgba(37,99,235,.4);
  outline-offset: 2px;
}
.ag-gallery-control[data-gallery-prev]{
  inset-inline-start: 8px;
}
.ag-gallery-control[data-gallery-next]{
  inset-inline-end: 8px;
}
.ag-gallery-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  padding-block: 6px 8px;
}
.ag-gallery-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  border:1px solid #cbd5f5;
  background:#e2e8f0;
  cursor:pointer;
}
.ag-gallery-dot[aria-selected="true"]{
  background:#2563eb;
  border-color:#2563eb;
}
@media (max-width: 980px){
  .ag-gallery-slide{ flex: 0 0 calc(100% / 2); }
}
@media (max-width: 520px){
  .ag-gallery-slide{ flex: 0 0 100%; }
}
@media (prefers-reduced-motion: reduce){
  .ag-gallery-viewport{ scroll-behavior: auto; }
}
@media (max-width: 520px){
  .ag-gallery-control{ display: none; }
  .ag-gallery-viewport{
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ag-gallery-viewport::-webkit-scrollbar{ display: none; }
}

/* Chips */
.ag-chiprow{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 12px;
}
.ag-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 13px;
  line-height: 1;
  color:#111827;
  white-space: nowrap;
}
.ag-chip--muted{ color:#6b7280; }

/* KV blocks */
.ag-kv{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 520px){ .ag-kv{ grid-template-columns: 1fr; } }
.ag-kv__item{
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
}
.ag-kv__item--full{ grid-column: 1 / -1; }
.ag-kv__k{ font-size: 12px; color:#6b7280; }
.ag-kv__v{ font-size: 14px; margin-top: 2px; color:#111827; }

/* Two-column content blocks */
.ag-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 980px){ .ag-grid2{ grid-template-columns: 1fr; } }

/* Tables */
.ag-table-wrap{
  overflow:auto;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  height: 300px;
}
@media (max-width: 600px){
  .ag-table-wrap{ -webkit-overflow-scrolling: touch; }
  .ag-table th, .ag-table td{ font-size: 12px; padding: 8px 10px; }
}
.ag-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
  background:#fff;
}
.ag-table th, .ag-table td{
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  font-size: 13px;
}
.ag-col-date{ width: 22%; }
.ag-col-status{ width: 18%; }
.ag-col-price{ width: 18%; }
.ag-col-capacity{ width: 14%; }
.ag-table th{
  position: sticky;
  top: 0;
  background: #f9fafb;
  font-weight: 600;
  color:#111827;
  z-index: 1;
}
.ag-table tr:last-child td{ border-bottom: none; }
.ag-table td{ color:#111827; }
.ag-muted{ color:#6b7280; }

/* Notes / long text */
.ag-note{ white-space: pre-line; color:#111827; }
.ag-note--muted{ color:#6b7280; }
/* Mobile text overflow safety */
.ag-card, .ag-section, .ag-kv__v, .ag-note {
  overflow-wrap: break-word;
  word-break: break-word;
}
.ag-m0{ margin: 0; }
.ag-fw-900{ font-weight: 600; }
.ag-heading-compact{ margin: 0 0 10px; }
.ag-mt-6{ margin-top: 6px; }
.ag-mt-8{ margin-top: 8px; }
.ag-mt-10{ margin-top: 10px; }
.ag-mt-12{ margin-top: 12px; }
.ag-mt-14{ margin-top: 14px; }

/* Collapsible */
.ag-collapsible{
  position: relative;
}
.ag-collapsible__body{
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: max-height .2s ease;
}
.ag-collapsible__toggle{
  margin-top: 8px;
  border:0;
  background:none;
  color:#2563eb;
  font-weight: 600;
  font-size: 13px;
  cursor:pointer;
  padding:0;
}
.ag-collapsible__toggle:focus-visible{
  outline: 2px solid rgba(37,99,235,.4);
  outline-offset: 2px;
}

/* Aside */
.ag-hr{ border:none; border-top:1px solid #e5e7eb; margin: 14px 0; }

/* Price breakdown */
.ag-pricebox{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding: 14px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}
.ag-price-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.ag-price-row strong{ font-weight: 600; color:#111827; }
.ag-price-small{ font-size: 13px; color:#6b7280; }
.ag-price-total{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px dashed #e5e7eb;
}
.ag-price{
  font-size: 22px;
  font-weight: 600;
  color:#111827;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: end;
}
.ag-price-sub{ margin-top: 0; font-size: 13px; color:#6b7280; line-height: 1.35; }

/* Buttons (safe fallback if theme doesn’t style btn--primary) */
.btn--primary{
  background:linear-gradient(145deg, var(--primary), var(--accent));
  border:solid 0.1px white;
  color:#fff;
}
.btn--primary:hover{ filter: brightness(.97); color:#fff; }
.btn--primary:focus{ box-shadow: 0 0 0 3px rgba(37,99,235,.22); }

/* Form polish */
.ag-form .form-label{ font-size: 13px; font-weight: 600; color:#111827; }
.ag-form .form-control{ border-radius: 14px; }
.ag-form .btn{ border-radius: 14px; }
.ag-form{ flex-wrap: wrap; }
.mb-2{ width: 100%; }

.ag-btnrow {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
  position: sticky;
  bottom: -16px;
  background: #fff;
  padding: 16px 0;
  z-index: 10;
  border-top: 1px solid #e5e7eb;
}
.ag-alert{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  padding:10px 12px;
  border-radius:14px;
  margin-top: 12px;
  font-size: 13px;
  color:#111827;
}
.ag-alert.is-hidden{ display:none; }
.ag-result-note{
  margin-top: 6px;
  color:#6b7280;
}
.ag-alert--warn{
  border-color:#fde68a;
  background:#fffbeb;
}
.ag-alert--ok{
  border-color:#bbf7d0;
  background:#f0fdf4;
}

/* Participants stepper */
.ag-stepper{
  display:flex;
  align-items:stretch;
  gap:10px;
}
.ag-stepper .ag-stepper-btn{
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid #e5e7eb;
  background:#fff;
  border-radius: 14px;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  color:#111827;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .08s ease, box-shadow .08s ease, background .08s ease;
  user-select:none;
}
.ag-stepper .ag-stepper-btn:hover{
  background:#f9fafb;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.ag-stepper .ag-stepper-btn:active{
  transform: translateY(0);
  box-shadow:none;
}
.ag-stepper .ag-stepper-btn[disabled]{
  cursor:not-allowed;
  opacity:.45;
  transform:none;
  box-shadow:none;
}
.ag-stepper input[type="number"]{
  flex: 1 1 auto;
  height: 44px;
  text-align:center;
  font-weight: 600;
  letter-spacing: .01em;
}
/* Hide spinners (improves UX inside the stepper) */
.ag-stepper input[type="number"]::-webkit-outer-spin-button,
.ag-stepper input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance: none;
  margin: 0;
}
.ag-stepper input[type="number"]{ -moz-appearance: textfield; }

/* Participant fields */
.ag-participants{
  margin-top: 12px;
  padding: 14px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
.ag-participants h5{
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color:#111827;
  letter-spacing: -0.01em;
}
.ag-participants .ag-help{
  margin: 0 0 12px;
  font-size: 13px;
  color:#6b7280;
  line-height: 1.4;
}
/* In the sidebar, keep participant cards full-width; inside each card show 2-column fields */
.ag-participant-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}
.ag-participant-card{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px 12px;
  background: #fafafa;
}
.ag-participant-card .ag-participant-title{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size: 12px;
  color:#111827;
  margin: 0 0 10px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.ag-participant-fields-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px){
  .ag-participant-fields-row{ grid-template-columns: 1fr; }
}
.ag-participant-card .ag-field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}
.ag-participant-card label{
  font-size: 12px;
  color:#6b7280;
  font-weight: 600;
}
.ag-participant-card input{
  width:100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  outline:none;
  background:#fff;
}
.ag-participant-card input:focus{
  border-color: rgba(17,24,39,.45);
  box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}

.ag-host-card{
  display:flex;
  align-items:center;
  gap:12px;
}
.ag-host-card__avatar{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow:hidden;
  border: 1px solid #e5e7eb;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f9fafb;
}
.ag-host-card__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ag-host-card__avatar--fallback{
  font-weight: 600;
  color:#111827;
}
.ag-host-card__info{
  display:flex;
  flex-direction: column;
  gap:4px;
}
.ag-host-card__name{
  font-weight: 600;
  color:#111827;
  text-decoration:none;
}
.ag-host-card__handle{
  font-size: 12px;
  color:#6b7280;
}
.ag-host-card__badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size: 11px;
  font-weight: 600;
  color:#0f172a;
  background:#e0f2fe;
  border-radius:999px;
  padding: 4px 8px;
}

.ag-saved-travelers{
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #e5e7eb;
  background: #f9fafb;
}
.ag-saved-travelers__header{
  display:flex;
  align-items:center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color:#111827;
  margin-bottom: 8px;
}
.ag-saved-travelers__controls{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items:center;
}
@media (max-width: 520px){
  .ag-saved-travelers__controls{ grid-template-columns: 1fr; }
}
.ag-saved-travelers__save{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top: 10px;
  font-size: 12px;
  color:#111827;
}
.ag-link-button{
  border: 0;
  background: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.ag-link-button:focus-visible{
  outline: 2px solid rgba(37,99,235,.4);
  outline-offset: 2px;
}
.ag-edit-link{
  display:flex;
  justify-content:flex-end;
  margin-top:-6px;
}
.btn--ghost{
  border: 1px solid #e5e7eb;
  background: #fff;
  color:#111827;
}
.btn--ghost:hover{
  background: #f9fafb;
}

/* Date/fields validation */
.ag-inline-error{
  display:none;
  margin-top: 10px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  padding: 10px 12px;
  border-radius:14px;
  font-size: 13px;
  color:#111827;
}
.ag-inline-error.is-visible{ display:block; }
.ag-invalid{
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12) !important;
}

/* Preview table rows are clickable */
.ag-av-row{
  cursor:pointer;
  outline:none;
}
.ag-av-row:hover td{
  background:#f9fafb;
}
.ag-av-row:focus td{
  box-shadow: inset 0 0 0 2px rgba(37,99,235,.25);
  background:#f8fafc;
}
.ag-av-row.is-selected td{
  background: #eff6ff;
}
.ag-av-row.is-selected td:first-child{
  font-weight: 600;
}
.ag-av-row.is-bookable td:first-child{
  border-inline-start: 4px solid #16a34a;
}
.ag-av-row.is-unavailable td:first-child{
  border-inline-start: 4px solid #ef4444;
}

/* “Disabled” button state that still allows hover tooltip (do NOT use the disabled attribute) */
.ag-btn-disabled{
  opacity:.55;
  cursor:not-allowed !important;
}
button#agCheckBtn{background-color:#e5e7eb61}
button#agBookBtn.btn.btn--primary.w-100.ag-btn-disabled:hover{background-color:#0e265a}

/* Mobile booking bar */
.ag-mobile-bookbar{
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 10px 16px;
  z-index: 100;
  box-shadow: 0 -8px 24px rgba(15,23,42,.12);
}
.ag-mobile-bookbar__meta{
  display:grid;
  gap:4px;
  font-size: 12px;
  color:#475569;
}
.ag-mobile-bookbar__row{
  display:flex;
  gap:6px;
  align-items:center;
}
.ag-mobile-bookbar__total{
  display:grid;
  gap:4px;
  text-align: end;
  font-size: 12px;
  color:#475569;
}
.ag-mobile-bookbar__label{
  font-weight: 600;
  color:#0f172a;
}
@media (max-width: 980px){
  .ag-container{ padding-block-end: 120px; }
  .ag-mobile-bookbar{ display:flex; }
}

/* ActivGate palette overrides */
.ag-container{
  color:var(--text);
}
.ag-title{
  color:var(--heading);
  font-family:var(--font-serif);
}
.ag-breadcrumb a{
  color:var(--primary-strong);
}
.ag-meta{
  color:var(--muted);
}
.ag-meta strong{
  color:var(--heading);
}
.ag-rating-stars .fill{
  color:#f4b45c;
}
.ag-rating-value{
  color:var(--heading);
}
.ag-rating-count{
  color:var(--primary-strong);
}
.ag-rating-count:focus-visible{
  outline-color:rgba(46,116,184,.35);
}
.ag-rating-hint{
  border-color:var(--line);
  background:var(--surface);
  color:var(--muted);
  box-shadow:var(--shadow-soft);
}
.ag-rating-chip{
  border-color:var(--line);
  background:var(--surface-alt);
  color:var(--heading);
}
.ag-action-btn{
  border-color:var(--line);
  background:rgba(255,255,255,.75);
  color:var(--heading);
}
.ag-action-btn:hover{
  background:rgba(46,116,184,.08);
  border-color:rgba(46,116,184,.25);
}
.ag-action-btn:focus-visible{
  outline-color:rgba(46,116,184,.35);
}
.ag-action-status{ color:var(--muted); }
.ag-link{
  color:var(--heading);
  border-bottom-color:rgba(46,116,184,.35);
}
.ag-link:hover{
  color:var(--primary-strong);
  border-bottom-color:rgba(46,116,184,.6);
}
.ag-card{
  background:var(--surface);
  border-color:rgba(46,116,184,.18);
  box-shadow:var(--shadow-soft);
}
.ag-section h3,
.ag-section h4{
  color:var(--heading);
}
.ag-section-nav{
  border-color:rgba(46,116,184,.18);
  background:rgba(255,255,255,.85);
  box-shadow:var(--shadow-soft);
}
.ag-section-nav a{ color:var(--muted); }
.ag-section-nav a.is-active{
  color:var(--heading);
  border-color:rgba(46,116,184,.2);
  background:rgba(46,116,184,.12);
}
.ag-section-nav a:focus-visible{
  outline-color:rgba(46,116,184,.35);
}
.ag-hero{
  background:var(--surface-alt);
  border-color:rgba(46,116,184,.18);
}
.ag-hero-caption{ color:var(--muted); }
.ag-gallery-slider{
  background:rgba(255,255,255,.9);
  border-color:rgba(46,116,184,.18);
}
.ag-gallery-slide img{
  background:var(--surface-alt);
}
.ag-gallery-control{
  border-color:rgba(46,116,184,.2);
  background:rgba(255,255,255,.9);
  color:var(--heading);
}
.ag-gallery-control:focus-visible{
  outline-color:rgba(46,116,184,.35);
}
.ag-gallery-dot{
  border-color:rgba(46,116,184,.25);
  background:rgba(46,116,184,.08);
}
.ag-gallery-dot[aria-selected="true"]{
  background:var(--primary);
  border-color:var(--primary);
}
.ag-chip{
  background:var(--surface-alt);
  border-color:rgba(46,116,184,.15);
  color:var(--heading);
}
.ag-kv__item{
  border-color:rgba(46,116,184,.18);
  background:var(--surface);
}
.ag-kv__k{ color:var(--muted); }
.ag-kv__v{ color:var(--heading); }
.ag-table-wrap{ border-color:var(--line); }
.ag-table th{
  background:var(--surface-alt);
  color:var(--heading);
}
.ag-table th, .ag-table td{ border-bottom-color:var(--line); }
.ag-table td{ color:var(--heading); }
.ag-note{ color:var(--text); }
.ag-note--muted{ color:var(--muted); }
.ag-collapsible__toggle{
  color:var(--primary-strong);
}
.ag-collapsible__toggle:focus-visible{
  outline-color:rgba(46,116,184,.35);
}
.ag-hr{ border-top-color:var(--line); }
.ag-pricebox{
  background:var(--surface-alt);
  border-color:rgba(46,116,184,.18);
}
.ag-price-row strong,
.ag-price{
  color:var(--heading);
}
.ag-price-sub,
.ag-price-small{ color:var(--muted); }
.ag-price-total{ border-top-color:rgba(46,116,184,.2); }
.btn--primary{
  background:linear-gradient(145deg, var(--primary), var(--accent));
  color:#fff;
  border:solid 0.1px white;
}
.btn--primary:focus{
  box-shadow:0 0 0 3px rgba(46,116,184,.2);
}
.btn--ghost{
  border-color:rgba(46,116,184,.18);
  background:var(--surface);
  color:var(--heading);
}
.btn--ghost:hover{
  background:rgba(46,116,184,.08);
}
.ag-form .form-label{
  color:var(--heading);
}
.ag-alert{
  border-color:rgba(46,116,184,.15);
  background:rgba(255,255,255,.8);
  color:var(--heading);
}
.ag-alert--warn{
  border-color:rgba(241,89,74,.4);
  background:rgba(241,89,74,.08);
}
.ag-alert--ok{
  border-color:rgba(46,116,184,.4);
  background:rgba(46,116,184,.08);
}
.ag-stepper .ag-stepper-btn{
  border-color:var(--line);
  background:var(--surface);
  color:var(--heading);
}
.ag-stepper .ag-stepper-btn:hover{
  background:rgba(46,116,184,.08);
}
.ag-participants{
  border-color:rgba(46,116,184,.18);
  background:var(--surface);
}
.ag-participant-card{
  border-color:rgba(46,116,184,.18);
  background:var(--surface-alt);
}
.ag-participant-card .ag-participant-title{
  border-color:rgba(46,116,184,.18);
  background:var(--surface);
}
.ag-participant-card input:focus{
  border-color:rgba(46,116,184,.4);
  box-shadow:0 0 0 3px rgba(46,116,184,.12);
}
.ag-host-card__avatar{
  border-color:rgba(46,116,184,.18);
  background:var(--surface-alt);
}
.ag-host-card__badge{
  background:rgba(46,116,184,.12);
  color:var(--primary-strong);
}
.ag-saved-travelers{
  border-color:rgba(46,116,184,.2);
  background:rgba(46,116,184,.05);
}
.ag-link-button{
  color:var(--primary-strong);
}
.ag-link-button:focus-visible{
  outline-color:rgba(46,116,184,.35);
}
.ag-inline-error{
  border-color:rgba(241,89,74,.4);
  background:rgba(241,89,74,.08);
}
.ag-invalid{
  border-color:rgba(241,89,74,.6) !important;
  box-shadow:0 0 0 3px rgba(241,89,74,.2) !important;
}
.ag-av-row:hover td{
  background:rgba(46,116,184,.05);
}
.ag-av-row:focus td{
  box-shadow: inset 0 0 0 2px rgba(46,116,184,.25);
  background:rgba(46,116,184,.08);
}
.ag-av-row.is-selected td{
  background:rgba(46,116,184,.08);
}
.ag-av-row.is-bookable td:first-child{
  border-inline-start-color:#1a9e67;
}
.ag-av-row.is-unavailable td:first-child{
  border-inline-start-color:#f1594a;
}
button#agCheckBtn{
  background-color:rgba(46,116,184,.12);
  border-color:rgba(46,116,184,.2);
  color:#fff;
}
button#agBookBtn.btn.btn--primary.w-100.ag-btn-disabled:hover{
  background-color:var(--primary-strong);
}
.ag-mobile-bookbar{
  background:rgba(255,255,255,.96);
  border-top-color:rgba(46,116,184,.18);
  box-shadow:0 -10px 30px rgba(46,116,184,.12);
}
.ag-mobile-bookbar__label{
  color:var(--heading);
}

/* Room cards (stays detail) */
.ag-room-grid{
  display:grid;
  gap:16px;
}
.ag-room-card{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:16px;
  border:1px solid var(--line, #e5e7eb);
  border-radius:12px;
  padding:14px;
  transition: border-color .15s, box-shadow .15s;
}
.ag-room-card.is-selected{
  border-color:var(--primary, #2563eb);
  box-shadow:0 0 0 2px rgba(37,99,235,.2);
}
.ag-room-card__media{
  border-radius:8px;
  overflow:hidden;
  aspect-ratio:4/3;
  background:var(--surface-alt, #f8fafc);
}
.ag-room-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.ag-room-card__placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  font-weight:700;
  color:var(--muted, #6b7280);
  background:var(--surface-alt, #f8fafc);
}
.ag-room-card__title{
  font-weight:600;
  font-size:15px;
  margin-bottom:6px;
}
.ag-room-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px;
}
.ag-room-card__desc{
  margin-bottom:8px;
}
.ag-room-card__footer{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:auto;
}
.ag-room-card__price{
  font-weight:600;
}
.ag-room-card__select{
  margin-left:auto;
}
@media(max-width:520px){
  .ag-room-card{
    grid-template-columns:1fr;
  }
  .ag-room-card__media{
    aspect-ratio:16/9;
    max-height:160px;
  }
}

/* ========================================
 * MOBILE RESPONSIVE FIXES
 * ======================================== */
@media (max-width: 767px) {
  .ag-container {
    padding-inline: 12px;
    overflow-x: hidden;
  }
  .ag-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }
  .ag-layout > * {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .ag-aside {
    position: static !important;
  }
  .ag-gallery-viewport {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ag-table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 12px;
  }
  .ag-table th,
  .ag-table td {
    padding: 8px 6px;
    font-size: 12px;
  }
  .ag-chiprow {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ag-chiprow::-webkit-scrollbar {
    display: none;
  }
  .ag-mobile-bookbar {
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .ag-detail-kv {
    grid-template-columns: 1fr;
  }
}
