/* Angeles Tours – colours and type follow the original site theme. */
:root {
  --white: #fff;
  --lilac: #cabdcd;          /* footer, duration box */
  --lilac-mid: #a08fa6;      /* vertical rules */
  --plum: #726277;           /* text, buttons */
  --plum-dark: #262027;
  --panel: #f4f2f5;          /* tour page panel */
  --rule: rgba(114, 98, 119, 0.4);

  --font-heading: "Raleway", sans-serif;
  --font-body: "Courier New", Courier, monospace;
  --font-button: "Basic", sans-serif;
  --font-logo: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --page-width: 980px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--plum);
  font: 14px/1.3 var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; }

.button {
  display: inline-block;
  min-width: 165px;
  padding: 4px 16px;
  border: 0;
  background: var(--plum);
  color: var(--white);
  font: 12px/1.3 var(--font-button);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.4s ease, color 0.4s ease;
}
.button:hover, .button:focus-visible { background: var(--lilac); color: var(--plum-dark); }

:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

/* Header */
.site-header {
  max-width: var(--page-width);
  margin: 0 auto;
  width: 100%;
  padding: 10px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 18px/1 var(--font-logo);
  letter-spacing: 0.02em;
}

/* Home hero */
.hero {
  position: relative;
  height: 273px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero picture, .hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__img { object-fit: cover; }
.hero__title {
  position: relative;
  color: var(--white);
  font: 700 52px/1.3 var(--font-heading);
  letter-spacing: 0.1em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(38, 32, 39, 0.55);
  padding: 0 var(--gutter);
}
.hero__bar { font-size: 60px; font-weight: 400; }

/* Home tour cards */
.tour-grid {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 24px var(--gutter) 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 6px;
}
.tour-card__image { display: block; aspect-ratio: 488 / 190; overflow: hidden; }
.tour-card__image picture, .tour-card__image img {
  width: 100%;
  height: 100%;
}
.tour-card__image img {
  object-fit: cover;
  object-position: var(--pos, center);
  transition: transform 0.4s ease;
}
.tour-card__image:hover img { transform: scale(1.03); }

.tour-card__body {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 10px;
}
.tour-card__icon { width: 40px; height: 40px; object-fit: contain; flex: none; margin-top: 4px; }
.tour-card__text {
  flex: 1;
  min-width: 0;
  border-left: 1px dashed var(--lilac-mid);
  padding-left: 10px;
}
.tour-card__title {
  font-size: 18px;
  line-height: 1.3;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.tour-card__title a { text-decoration: none; }
.tour-card__title a:hover { text-decoration: underline; }
.tour-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.tour-card__location {
  margin: 0;
  font: italic 18px/1.3 var(--font-body);
  letter-spacing: 0.05em;
}

/* Tour page */
.tour {
  max-width: var(--page-width);
  margin: 0 auto;
  background: var(--panel);
  padding: 8px 36px 32px;
}
.tour__title {
  font-size: 30px;
  line-height: 1.1;
  padding: 4px 0 10px;
  border-bottom: 1px solid var(--rule);
}
.tour__top {
  display: grid;
  grid-template-columns: minmax(0, 568px) 300px;
  justify-content: space-between;
  grid-template-rows: auto 1fr;
  gap: 0 24px;
  align-items: start;
  margin-top: 22px;
}
.tour__side { grid-column: 2; grid-row: 1 / span 2; }

.gallery { min-width: 0; }
.gallery__stage {
  position: relative;
  aspect-ratio: 568 / 320;
  background: var(--plum-dark);
  overflow: hidden;
}
.gallery__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  cursor: zoom-in;
}
.gallery__slide.is-active { opacity: 1; visibility: visible; }
.gallery__slide picture, .gallery__slide img { width: 100%; height: 100%; }
.gallery__slide img { object-fit: cover; }
.gallery__slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(38, 32, 39, 0.6);
  color: var(--white);
  font: 14px/1.3 var(--font-heading);
}
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 56px;
  border: 0;
  background: rgba(38, 32, 39, 0.45);
  color: var(--white);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.gallery__nav:hover { background: rgba(38, 32, 39, 0.75); }
.gallery__nav--prev { left: 0; }
.gallery__nav--next { right: 0; }

.gallery__thumbs {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 4px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery__thumbs a {
  display: block;
  width: 96px;
  aspect-ratio: 3 / 2;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.gallery__thumbs a:hover, .gallery__thumbs a[aria-current="true"] { opacity: 1; }
.gallery__thumbs a[aria-current="true"] { outline: 2px solid var(--plum); outline-offset: -2px; }
.gallery__thumbs picture, .gallery__thumbs img { width: 100%; height: 100%; }
.gallery__thumbs img { object-fit: cover; }

.tour__side { display: grid; gap: 14px; align-content: start; min-width: 0; }

.price {
  align-self: start;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px 0 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.price__amount {
  flex: 1;
  text-align: center;
  border-right: 1px dashed var(--lilac-mid);
  padding: 4px 6px 0 0;
}
.price__value {
  margin: 0;
  font: 29px/1.3 var(--font-body);
  letter-spacing: 0.05em;
}
.price__note { margin: 2px 0 0; font: 14px/1.2 var(--font-heading); }
.price__duration {
  margin: 4px 0 0;
  width: 64px;
  align-self: start;
  padding: 10px 4px;
  background: rgba(202, 189, 205, 0.5);
  text-align: center;
  font: 20px/1.1 var(--font-body);
}

.tour__details { grid-column: 1; max-width: 575px; margin-top: 32px; }
.tour__details h2 { font-size: 18px; line-height: 1.3; margin-top: 20px; }
.tour__details h2:first-child { margin-top: 0; }
.tour__details p { margin: 6px 0 14px; }
.tour__details ul { list-style: none; margin: 0; padding: 0; }
.tour__details ul.ideas { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.tour__details ul.ideas li { margin-bottom: 4px; }
.includes li { line-height: 1.3; }

/* Message form */
.message-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 420px;
}
.message-form label { display: grid; gap: 4px; font: 14px/1.3 var(--font-heading); }
.message-form input, .message-form textarea {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--lilac-mid);
  background: var(--white);
  color: var(--plum-dark);
  font: 14px/1.3 var(--font-body);
}
.message-form textarea { resize: vertical; }
.message-form .button { justify-self: start; padding: 7px 16px; font-size: 13px; }
.message-form__thanks { font: 18px/1.3 var(--font-heading); }

/* Booking and payment */
.booking {
  --booking-title: #9a8aa0;
  --field-border: #b9b3bb;
  --submit-bg: #ffcb05;
  --submit-text: #0088cb;
  --req: #d6453d;

  background: var(--white);
  border: 1px solid var(--plum);
  border-radius: 10px;
  padding: 22px 16px 26px;
  font: 13px/1.4 "Open Sans", Arial, sans-serif;
  color: #4f4552;
}
.booking__step:focus { outline: none; }
.booking__title {
  color: var(--booking-title);
  font: 400 30px/1.3 "Open Sans", Arial, sans-serif;
  margin-bottom: 26px;
}
.booking__form { display: grid; gap: 14px; }
.booking__label {
  font-weight: 700;
  font-size: 15px;
  color: #4f4552;
  margin-bottom: -8px;
  padding: 0;
}
.req { color: var(--req); }
.booking input[type="text"],
.booking input[type="email"],
.booking input[type="tel"],
.booking input[type="date"],
.booking select,
.booking textarea {
  width: 100%;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--field-border);
  border-radius: 5px;
  background: var(--white);
  color: #4f4552;
  font: 12px/1.4 "Open Sans", Arial, sans-serif;
}
.booking textarea { resize: vertical; min-height: 50px; }
.booking ::placeholder { color: #9a949c; }
.booking input:focus, .booking select:focus, .booking textarea:focus {
  outline: none;
  border-color: var(--plum);
  box-shadow: 0 0 0 2px rgba(114, 98, 119, 0.2);
}
.booking__phone { display: grid; grid-template-columns: 92px 1fr; gap: 6px; }
.booking fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.booking fieldset label { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; }
.booking fieldset input { width: 15px; height: 15px; margin: 0; accent-color: var(--plum); }
.booking__pickup { margin-top: 8px !important; }
.booking fieldset legend.booking__label { margin-bottom: 14px; }

.booking__submit {
  justify-self: center;
  margin-top: 16px;
  min-width: 84px;
  padding: 10px 14px;
  border: 1px solid #c9a200;
  border-radius: 3px;
  background: var(--submit-bg);
  color: var(--submit-text);
  font: 700 14px/1 "Open Sans", Arial, sans-serif;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.booking__submit:hover { filter: brightness(1.05); }
.booking__pay { display: block; width: 100%; margin-top: 20px; padding: 13px 14px; }
.booking__pay.is-processing { cursor: progress; opacity: 0.75; }
.booking__pay.is-processing::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  vertical-align: -1px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.booking__back {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  color: var(--plum);
  font: 13px/1.4 "Open Sans", Arial, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}
.booking__summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 16px;
}
.booking__summary dt { font-weight: 600; }
.booking__summary dd { margin: 0; overflow-wrap: anywhere; }
.booking__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 18px;
  padding-top: 12px;
  border-top: 1px solid #e3dde4;
  font-size: 15px;
}
.booking__total strong { font-size: 22px; color: var(--plum-dark); }
.booking__methods { margin-top: 4px !important; }
.booking__thanks { margin: 0 0 12px; font-size: 14px; }
.booking__ref { margin: 0 0 16px; }
.booking__ref strong { letter-spacing: 0.08em; color: var(--plum-dark); }

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(96vw, 1600px);
  max-height: 96vh;
}
.lightbox::backdrop { background: rgba(38, 32, 39, 0.88); }
.lightbox img { max-width: 100%; max-height: calc(96vh - 44px); margin: 0 auto; }
.lightbox__caption { margin: 8px 0 0; color: var(--white); text-align: center; font: 16px/1.3 var(--font-heading); }
.lightbox__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  border: 0;
  background: rgba(38, 32, 39, 0.6);
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
.site-footer { background: var(--lilac); margin-top: 0; }
.site-footer__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 28px var(--gutter) 56px;
}
.footer-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--plum);
  text-decoration: none;
  font: 38px/1.1 var(--font-logo);
}

.footer-contact {
  margin: 14px 0 0 80px;
  font: normal 11px/1.5 var(--font-button);
  color: var(--white);
}
.footer-contact a { color: var(--white); }

/* Not found */
.not-found { max-width: var(--page-width); margin: 0 auto; padding: 48px var(--gutter); }
.not-found h1 { font-size: 30px; margin-bottom: 16px; }

/* Responsive */
@media (max-width: 860px) {
  .tour { padding: 8px var(--gutter) 28px; }
  .tour__top { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 24px; }
  .tour__side { grid-column: 1; grid-row: auto; max-width: 420px; }
  .tour__details { margin-top: 8px; }
}

@media (max-width: 640px) {
  .hero { height: 180px; }
  .hero__title { font-size: clamp(22px, 8vw, 34px); letter-spacing: 0.06em; }
  .hero__bar { font-size: 1.15em; }
  .tour-grid { grid-template-columns: 1fr; gap: 28px; }
  .tour-card__title { font-size: 16px; }
  .tour-card__location { font-size: 15px; }
  .button { min-width: 120px; }
  .tour__title { font-size: 24px; }
  .footer-brand { font-size: 30px; }
  .footer-brand img { width: 56px; height: auto; }
}
