/* v1.3 interaction states and responsive safeguards. Typography stays in typography.css. */
.recovery-dialog {
  width: min(580px, calc(100% - 32px));
  padding: 32px;
  color: var(--ink);
}
.recovery-dialog label {
  display: block;
  margin: 20px 0;
}
.dialog-close {
  float: right;
  background: #edf6ee;
  color: var(--green);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.recovery-dialog .btn {
  margin: 10px 0;
}
.offline-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #fff6d9;
  color: #59471c;
  border-top: 1px solid #e8d79b;
  flex-wrap: wrap;
}
.offline-banner button {
  background: #fff;
  border: 1px solid #d4c38f;
  border-radius: 6px;
  padding: 8px 12px;
  color: #59471c;
}
.offline-banner span:first-child {
  flex: 1;
  min-width: 220px;
}
.phone-text {
  white-space: nowrap;
}
.poster-status {
  text-align: center;
  max-width: 640px;
  margin: 16px auto;
}
.poster-recovery {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}
#image-dialog[aria-busy="true"] {
  min-width: min(500px, 90vw);
  min-height: 180px;
}
.asset-error {
  padding: 12px;
  background: #f3f7f1;
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.asset-error button {
  color: var(--green);
  background: white;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 6px;
}
.field-error {
  display: block;
  color: #a13232;
  min-height: 1.4em;
  margin-top: 5px;
}
[aria-invalid="true"] {
  border-color: #b53e3e;
  box-shadow: 0 0 0 1px #b53e3e;
}
.validation-summary {
  border-left: 3px solid #b53e3e;
  background: #fff1ee;
  padding: 12px;
  color: #8f2929;
}
.draft-status {
  color: #536a60;
}
.filter-panel label {
  min-width: 0;
}
.card-tools {
  flex-wrap: wrap;
  gap: 8px;
}
.btn,
.card-tools button,
.catalog-tabs > a,
.tabs button {
  min-height: 40px;
}
.card-heading h3,
.hotel-info b {
  overflow-wrap: anywhere;
}
.hero-actions {
  flex-wrap: wrap;
}
.category-nav .wrap {
  overflow: auto;
}
.benefit-strip > div {
  min-width: 0;
}
.hotel-info,
.food-line,
.card-price > small,
.duration {
  min-height: 0;
}
@media (max-width: 1000px) {
  .header-cta {
    display: none;
  }
  .menu-toggle {
    display: grid;
    place-items: center;
    background: #f1f7f1;
    border: 1px solid var(--line);
    border-radius: 7px;
    width: 36px;
    height: 36px;
    order: 5;
    color: var(--green);
  }
  #nav {
    display: none;
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    padding: 18px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px #103e2710;
  }
  #nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }
}
@media (max-width: 700px) {
  #nav {
    top: 72px;
    padding: 18px 20px;
  }
  .offline-banner {
    bottom: 64px;
    max-height: 45vh;
    overflow: auto;
    gap: 8px;
    padding: 12px 16px;
  }
  .category-card p {
    min-height: 0;
  }
  .home-search form {
    gap: 16px;
  }
  .card-tools label {
    flex-basis: auto;
  }
  .hero-visual {
    margin-top: 10px;
  }
  .room-prices {
    gap: 2px;
  }
}
/* Scoped Ajwa review component: only /semakan-ajwa.html uses these rules. */
.ajwa-review-controls {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 28px;
}
.ajwa-review-controls label {
  width: 260px;
  flex-shrink: 0;
}
.ajwa-review-controls p {
  max-width: 620px;
}
.ajwa-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.ajwa-card {
  border: 1px solid #dfe7e2;
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px #163a3010;
  min-width: 0;
}
.ajwa-card > .ajwa-header {
  position: static;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  background: linear-gradient(110deg, #087558, #00503f);
  color: #fff;
  padding: 25px 24px;
  border: 0;
}
.ajwa-header h2 {
  font-size: var(--type-card-title);
  margin: 5px 0 8px;
  color: #fff;
  letter-spacing: -0.5px;
}
.ajwa-header > div > span {
  font-size: var(--type-caption);
  color: #c5e7db;
}
.ajwa-header p {
  color: #d4eee5;
  margin: 0;
  font-size: var(--type-small);
  display: flex;
  align-items: center;
  gap: 7px;
}
.ajwa-start {
  text-align: right;
  flex-shrink: 0;
}
.ajwa-start strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.5;
}
.ajwa-start small {
  color: #c5e7db;
  display: block;
  font-size: var(--type-caption);
}
.ajwa-body {
  padding: 24px;
}
.ajwa-pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 30px;
  padding: 6px 11px;
  font-size: var(--type-small);
  line-height: 1.5;
}
.pill .icon {
  width: 15px;
  height: 15px;
}
.pill.amber {
  color: #88540d;
  background: #fffae9;
  border-color: #efd995;
}
.pill.peach {
  color: #934417;
  background: #fff4e9;
  border-color: #f6dcc6;
}
.meal-pill {
  margin: 15px 0;
  max-width: 100%;
  border-radius: 12px;
}
.ajwa-prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 5px;
}
.ajwa-prices > div {
  padding: 12px 8px;
  text-align: center;
  border-radius: 9px;
  background: #e5f1ec;
  color: #145640;
}
.ajwa-prices > div:first-child {
  background: #087558;
  color: #fff;
}
.ajwa-prices > div:nth-child(2) {
  background: #c4e0d5;
}
.ajwa-prices span {
  display: block;
  font-size: var(--type-small);
}
.ajwa-prices strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 3px;
}
.ajwa-season,
.ajwa-hotel-note {
  font-size: var(--type-caption);
  color: #5e7166;
  margin: 10px 0 17px;
}
.ajwa-hotels {
  margin: 19px 0 8px;
}
.ajwa-hotels > div {
  display: flex;
  align-items: start;
  gap: 9px;
  margin: 11px 0;
}
.ajwa-hotels .icon {
  color: #087558;
  margin-top: 4px;
  width: 17px;
  height: 17px;
}
.ajwa-hotels p {
  margin: 0;
  font-size: var(--type-body);
  line-height: 1.75;
}
.distance-chip {
  display: inline-block;
  background: #ecf9f1;
  color: #086142;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: var(--type-small);
  margin: 3px 0;
}
.ajwa-accordion {
  border-top: 1px solid #e5ece6;
  margin-top: 12px;
}
.ajwa-accordion summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  color: #09634c;
  font-size: var(--type-body);
  font-weight: 600;
}
.ajwa-accordion summary::-webkit-details-marker {
  display: none;
}
.chevron {
  margin-left: auto;
  transition: transform 0.18s;
}
.ajwa-accordion[open] .chevron {
  transform: rotate(180deg);
}
.accordion-content {
  padding: 2px 0 18px;
}
.date-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.date-chip {
  background: #eff6ff;
  border: 1px solid #c8ddf9;
  border-radius: 6px;
  color: #275fa4;
  padding: 8px 10px;
  font-size: var(--type-small);
  line-height: 1.5;
  min-height: 40px;
  text-align: left;
}
.date-chip[aria-pressed="true"] {
  background: #145fa5;
  color: #fff;
  border-color: #145fa5;
}
.accordion-note,
.date-selection {
  font-size: var(--type-small);
  line-height: 1.7;
}
.date-selection {
  color: #09634c;
  font-weight: 600;
}
.inclusion-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.inclusion-columns h3 {
  font-size: var(--type-body);
  margin: 10px 0 16px;
}
.included-title {
  color: #087558;
}
.excluded-title {
  color: #a13636;
}
.inclusions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.inclusions li {
  display: flex;
  gap: 8px;
  align-items: start;
  font-size: var(--type-small);
  line-height: 1.7;
  margin-bottom: 12px;
  color: #435d50;
}
.inclusions .icon {
  width: 16px;
  height: 16px;
  color: #087558;
  margin-top: 4px;
}
.excluded li > span:first-child {
  color: #a13636;
  font-weight: 700;
}
.optional-note {
  background: #fffaed;
  border: 1px solid #eee0b9;
  border-radius: 8px;
  padding: 13px;
  margin-top: 20px;
  font-size: var(--type-small);
}
.optional-note p {
  font-size: var(--type-small);
  margin-bottom: 0;
}
.ajwa-actions {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 10px;
  border-top: 1px solid #e5ece6;
  padding-top: 20px;
  margin-top: 10px;
}
.ajwa-actions .btn {
  font-size: var(--type-small);
  padding: 13px 10px;
  gap: 7px;
}
.ajwa-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.ajwa-tools label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: var(--type-small);
}
.ajwa-tools input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #087558;
}
.ajwa-tools button {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #496756;
  background: transparent;
  padding: 8px 0;
  font-size: var(--type-small);
}
.ajwa-tools .icon {
  width: 15px;
  height: 15px;
}
.ajwa-tools [aria-pressed="true"] {
  color: #087558;
  font-weight: 700;
}
@media (max-width: 1000px) {
  .ajwa-review-grid {
    grid-template-columns: 1fr;
    max-width: 740px;
    margin: auto;
  }
}
@media (max-width: 560px) {
  .ajwa-review-controls {
    display: block;
  }
  .ajwa-review-controls label {
    width: 100%;
    display: block;
  }
  .ajwa-card > .ajwa-header {
    padding: 22px 18px;
    gap: 10px;
  }
  .ajwa-header h2 {
    font-size: 1.25rem;
  }
  .ajwa-start strong {
    font-size: 1.35rem;
  }
  .ajwa-header > div > span,
  .ajwa-header p,
  .ajwa-start small {
    font-size: 0.8125rem;
  }
  .ajwa-body {
    padding: 20px 18px;
  }
  .inclusion-columns {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ajwa-actions {
    grid-template-columns: 1fr;
  }
  .ajwa-prices strong {
    font-size: 1rem;
  }
  .ajwa-tools {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chevron {
    transition: none;
  }
}
/* v1.4 rollout: readable cards on actual catalogue/category/home/saved listings. */
.package-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}
.package-card.ajwa-card {
  transform: none;
}
.package-card.ajwa-card .ajwa-header {
  min-height: 140px;
}
.ajwa-header h2 a {
  color: inherit;
}
.package-card.ajwa-card .ajwa-prices > div {
  background: #e5f1ec;
  color: #145640;
}
.package-card.ajwa-card .ajwa-prices > div.selected {
  background: #087558;
  color: #fff;
}
.package-card.ajwa-card .enquire-link {
  background: var(--green);
  color: white;
}
.package-card.ajwa-card .card-detail {
  background: white;
  color: var(--green);
}
.package-card.ajwa-card .ajwa-actions .btn {
  justify-content: center;
  white-space: normal;
}
.child-rates-note {
  background: #f2f7f2;
  border-radius: 8px;
  padding: 13px;
  margin-top: 15px;
  font-size: var(--type-small);
}
.child-rates-note p {
  font-size: inherit;
  margin-bottom: 0;
}
.ajwa-tools {
  justify-content: flex-start;
  column-gap: 18px;
}
@media (max-width: 1000px) {
  .package-grid {
    grid-template-columns: 1fr;
    max-width: 740px;
    margin-inline: auto;
  }
}
@media (max-width: 560px) {
  .package-card.ajwa-card .ajwa-header {
    min-height: 0;
  }
}
