
.booking form {
  max-width: 520px;
  margin: 30px auto;
  padding: 30px;
  background: #fff;
  color: #142b29;
  border-radius: 16px;
  text-align: left;
  box-shadow: 0 12px 35px rgba(0,0,0,.12);
}

.booking label {
  display: block;
  margin: 16px 0 7px;
  font-size: 14px;
  font-weight: bold;
}

.booking input,
.booking select,
.booking textarea {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid #d5d9d6;
  border-radius: 7px;
  font: inherit;
  background: white;
  color: #142b29;
}

.booking input:focus,
.booking select:focus,
.booking textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #e9bb70;
  outline-offset: 2px;
}

.booking button {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-top: 25px;
}

.booking-note {
  font-size: 13px;
  opacity: .8;
}

.capacity-message {
  min-height: 1.25em;
  margin: 8px 0 0;
  color: #9c2f18;
  font-weight: 700;
  font-size: 14px;
}

/* Tour cards improvements */

.tour {
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.10);
  transition: transform 0.3s ease,
              box-shadow 0.3s ease;
}

.tour:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.16);
}

.tour img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
}

.tour-title-link {
  color: inherit;
  text-decoration: none;
}

.tour-title-link:hover,
.tour-title-link:focus-visible {
  color: #147d86;
  text-decoration: underline;
}

.tour-content {
  padding: 24px;
}

.tour-duration {
  display: inline-block;
  color: #147d86;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tour-price {
  font-size: 19px;
  font-weight: 700;
  color: #147d86;
  margin: 18px 0;
}

/* Lisbon-inspired tour catalogue */
#tours {
  background: radial-gradient(ellipse at 50% 0%, #f8edd9, #f8f6ef 32rem);
}

#tours > h2 {
  margin: 0 0 8px;
  font-size: clamp(27px, 5vw, 34px);
}

#tours > .subtitle {
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.5;
}

.tour-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  max-width: 424px;
  margin: 0 auto clamp(16px, 3vw, 22px);
  padding: 4px;
  border: 1px solid #e8e3da;
  border-radius: 12px;
  background: #f4f0e8;
}

.tab-btn {
  min-height: 44px;
  padding: 8px clamp(6px, 2vw, 14px);
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #174b59;
  font: 700 clamp(13px, 2.4vw, 15px)/1.25 Arial, sans-serif;
  cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
  background: #174b59;
  color: white;
}

#tourCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-top: clamp(16px, 3vw, 24px);
}

#tourCards .tour {
  display: flex;
  flex-direction: column;
}

#tourCards .tour-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(17px, 3vw, 28px);
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 12px;
}

.tour-meta .tour-duration {
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8ecd2;
  color: #604819;
  font-size: 13px;
}

.tour-meta .tour-vehicle {
  margin: 0;
  color: #335960;
  font-size: 13px;
  font-weight: 600;
}

#tourCards h3 {
  margin: 0 0 8px;
  color: #163d47;
  font: 700 clamp(24px, 3vw, 34px)/1.12 Georgia, serif;
}

.tour-description {
  margin: 0 0 18px;
}

#tourCards .tour-price {
  margin: auto 0 14px;
  padding-top: 12px;
  border-top: 1px solid #e8e3da;
  color: #164c53;
  font-size: 15px;
}

.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tour-actions .btn,
.tour-actions .tour-details-button {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
}

.tour-actions .tour-details-button {
  color: #184855;
  border-color: #bac9c6;
}

.tour-actions .tour-details-button:hover {
  background: #eaf2ef;
  color: #184855;
}

@media (max-width: 750px) {
  #tourCards {
    grid-template-columns: 1fr;
  }
}

/* Lisbon-inspired colours */
.tab-btn.active {
  background: #17556b;
  border-color: #17556b;
  color: white;
}

#tourCards .tour {
  border: 1px solid #e8e3da;
  background: #fffdf9;
}

/* Simpatic Tours header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 6%;
  background: #123f4a;
}

.site-header .logo {
  color: white;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}

.site-header .logo span {
  color: #f2c15d;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.main-nav .nav-book {
  padding: 8px 16px;
}

.booking-cta:is(a, button) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 44px;
  border: 1px solid #b88b49;
  border-radius: 9px;
  background: #e9c892;
  color: #17343b;
  box-shadow: 0 2px 5px #2a241519;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.booking-cta:is(a, button):hover { background: #f3d8a8; }
.booking-cta:is(a, button):active { background: #dbb579; }
.booking-cta:is(a, button):focus-visible {
  outline: 2px solid #174d59;
  outline-offset: 3px;
}

:is(.site-header, .tour-detail-booking) .booking-cta:focus-visible { outline-color: #f3d8a8; }

.tour-actions .booking-cta { flex-grow: 1.35; }

@media (prefers-reduced-motion: no-preference) {
  .booking-cta:is(a, button) { transition: background-color 160ms ease, box-shadow 160ms ease; }
}

@media (max-width: 600px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
    gap: 18px;
  }
}

/* SIMPATIC TOURS - Premium Brand */

.site-header .brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-crown {
  width: 55px;
  height: auto;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-header .brand-title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.1;
  color: #ffffff;
}

.site-header .brand-title span {
  color: #d9b66f;
}

.brand-subtitle {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #d7dee0;
}

@media (max-width: 600px) {
  .brand-crown {
    width: 45px;
  }

  .site-header .brand-title {
    font-size: 19px;
  }

  .brand-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
  }
}

.brand-stars {
  display: block;
  width: fit-content;
  color: #edc780;
  font: 10px/1 Arial, sans-serif;
  letter-spacing: .28em;
  white-space: nowrap;
}

.brand-stars--accent {
  margin-bottom: 10px;
  color: #805919;
  font-size: 13px;
}

.booking .brand-stars--accent {
  color: #edc780;
}

/* Main Lisbon hero image */

.hero {
  background-image:
    linear-gradient(
      rgba(10, 30, 38, 0.45),
      rgba(10, 30, 38, 0.60)
    ),
    url("images/lisboa-hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 550px;
}

/* The catalogue uses a consistent crop. Detail galleries show full photos. */
.tour-photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  overflow: hidden;
}

.tour-photo-frame .tour-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 45%;
}

@media (max-width: 600px) {
  .hero {
    min-height: 470px;
    background-position: center;
  }
}



/* SIMPATIC TOURS - PREMIUM PACKAGE BUILDER */

.packages {
  padding: 80px 20px;
  background: #f5f7f6;
}

.packages .container {
  max-width: 1050px;
  margin: 0 auto;
}

.packages h2 {
  font-family: Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #123f4a;
  text-align: center;
  margin-bottom: 20px;
}

.packages .container > p {
  text-align: center;
  color: #52646a;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.package-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 25px;
  margin: 30px auto 40px;
  max-width: 800px;
}

.package-benefits p {
  color: #123f4a;
  font-size: 15px;
  margin: 0;
}

#packageBuilder {
  background: white;
  border: 1px solid #e4e9e7;
  border-radius: 18px;
  padding: 35px;
  box-shadow: 0 12px 35px rgba(18, 63, 74, 0.07);
}

#packageBuilder h3 {
  font-family: Georgia, serif;
  color: #123f4a;
  font-size: 26px;
  margin-bottom: 12px;
}

#packageBuilder > p {
  color: #64757a;
  margin-bottom: 25px;
}

.package-tour {
  background: #fafbf9;
  border: 1px solid #e1e8e5;
  border-radius: 14px;
  padding: 24px;
  margin: 20px 0;
}

.package-tour h4 {
  color: #123f4a;
  font-size: 19px;
  margin: 0 0 18px;
}

#packageBuilder label {
  display: block;
  font-weight: 600;
  color: #274b53;
  margin: 16px 0 7px;
}

#packageBuilder select,
#packageBuilder input[type="date"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd7d4;
  border-radius: 9px;
  background: white;
  color: #183e46;
  font-size: 15px;
  box-sizing: border-box;
}

#packageBuilder select:focus,
#packageBuilder input:focus {
  outline: 2px solid #d9b66f;
  outline-offset: 1px;
}

#addPackageTour {
  width: 100%;
  padding: 15px;
  border: 1px dashed #b79a5d;
  border-radius: 10px;
  background: #fffdf7;
  color: #123f4a;
  font-weight: 600;
  cursor: pointer;
  margin: 12px 0 25px;
}

#addPackageTour:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#packageSummary {
  background: #f1f6f4;
  border: 1px solid #d9e5e0;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  color: #123f4a;
  line-height: 1.8;
}

#packageSummary h3 {
  margin-top: 0;
}

#requestPackageButton {
  display: block;
  width: 100%;
  padding: 17px 20px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

#packageBookingError {
  color: #a32d2d;
  font-size: 14px;
  margin-top: 12px;
}

.payment-options {
  display: grid;
  gap: 10px;
  margin: 22px 0 14px;
  padding: 0;
  border: 0;
}

.payment-options legend {
  margin-bottom: 11px;
  color: #123f4a;
  font-size: 17px;
  font-weight: 750;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #cbd7d4;
  border-radius: 10px;
  background: #fffdfa;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.payment-option:has(input:checked) {
  border-color: #b88b49;
  background: #fff6e5;
  box-shadow: inset 3px 0 #d9b66f;
}

.payment-option input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #174d59;
  flex: 0 0 auto;
}

.payment-option strong,
.payment-option small {
  display: block;
}

.payment-option strong {
  color: #123f4a;
  font-size: 15px;
}

.payment-option small {
  margin-top: 4px;
  color: #52676a;
  font-size: 13px;
  line-height: 1.45;
}

.payment-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid #d9e5e0;
  border-radius: 10px;
  background: #f1f6f4;
  color: #173f47;
}

.payment-summary:empty {
  display: none;
}

.payment-summary h4 {
  margin: 0 0 2px;
  font-size: 16px;
}

.payment-summary p {
  margin: 0;
  line-height: 1.45;
}

.payment-summary .payment-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 4px;
}

.payment-summary .payment-amounts span {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: #52676a;
}

.payment-summary .payment-amounts strong {
  color: #123f4a;
  font-size: 15px;
}

.payment-policy-note,
.cancellation-notice {
  margin: -4px 0 18px;
  color: #52676a;
  font-size: 13px;
  line-height: 1.55;
}

.payment-policy-note a {
  color: #174d59;
  font-weight: 700;
  text-underline-offset: 3px;
}

.cancellation-notice:not(:empty) {
  padding: 10px 12px;
  border-left: 3px solid #c39046;
  background: #fff8ea;
  color: #564326;
}

.policy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) clamp(16px, 5vw, 42px);
  color: #173f47;
}

.policy-page h1 {
  margin: 8px 0 12px;
  font: 700 clamp(38px, 6vw, 64px)/1.06 Georgia, serif;
}

.policy-lead { max-width: 58ch; margin: 0 0 30px; color: #52676a; font-size: 18px; line-height: 1.6; }

.policy-card {
  margin-top: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #e0ded5;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 7px 24px #1a373b0a;
}

.policy-card h2 { margin: 0 0 8px; color: #123f4a; font: 700 clamp(21px, 3vw, 28px)/1.2 Georgia, serif; }
.policy-card p, .policy-legal-note p { margin: 0; line-height: 1.65; color: #405b60; }

.policy-legal-note {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid #d8c69e;
  background: #fff6e5;
}

.policy-legal-note strong { display: block; margin-bottom: 7px; color: #735321; }

@media (max-width: 480px) {
  .payment-summary .payment-amounts { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .packages {
    padding: 50px 15px;
  }

  .package-benefits {
    grid-template-columns: 1fr;
  }

  #packageBuilder {
    padding: 20px;
  }

  .package-tour {
    padding: 18px;
  }
}


/* SIMPATIC TOURS - PACKAGE CUSTOMER NAME */

#packageCustomerName {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid #cbd7d4;
  border-radius: 9px;
  background: #ffffff;
  color: #183e46;
  font-size: 15px;
  margin-bottom: 20px;
}

#packageCustomerName:focus {
  outline: 2px solid #d9b66f;
  outline-offset: 1px;
}


/* SIMPATIC TOURS - PACKAGE PRICE SUMMARY */

.package-price-summary {
  width: 100%;
}

.package-summary-heading {
  margin-bottom: 22px;
}

.package-summary-heading h3 {
  font-family: Georgia, serif;
  color: #123f4a;
  font-size: 24px;
  margin: 0 0 6px;
}

.package-summary-heading p {
  color: #667b7c;
  font-size: 14px;
  margin: 0;
}

.package-price-row,
.package-total-row,
.package-person-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}

.package-price-row {
  border-bottom: 1px solid #dce7e3;
}

.package-price-row span,
.package-person-row span {
  color: #52646a;
}

.package-price-row strong,
.package-person-row strong {
  color: #123f4a;
  white-space: nowrap;
}

.package-discount strong {
  color: #287650;
}

.package-total-row {
  border-top: 2px solid #d9b66f;
  margin-top: 14px;
  padding-top: 20px;
  font-weight: 700;
  color: #123f4a;
}

.package-total-row strong {
  font-size: 26px;
  color: #123f4a;
  white-space: nowrap;
}

.package-person-row {
  padding-top: 4px;
}

.package-availability {
  margin: 18px 0 0;
  font-size: 12px;
  color: #6b7b7b;
}

@media (max-width: 600px) {
  .package-total-row strong {
    font-size: 22px;
  }

  .package-price-row,
  .package-total-row,
  .package-person-row {
    font-size: 14px;
  }
}


/* SIMPATIC TOURS - Why Choose Us */

.why-us {
  padding: 85px 20px;
  background: #f7f9f8;
  text-align: center;
}

.why-us h2 {
  font-family: Georgia, serif;
  font-size: 36px;
  color: #123f4a;
  margin-bottom: 15px;
}

.why-us > .container > p {
  color: #66777b;
  font-size: 17px;
  margin-bottom: 40px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.why-us-item {
  background: #ffffff;
  padding: 35px 25px;
  border-radius: 14px;
  border-top: 3px solid #d9b66f;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.why-us-item h3 {
  color: #123f4a;
  font-size: 21px;
  margin-bottom: 15px;
}

.why-us-item p {
  color: #66777b;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .why-us h2 {
    font-size: 29px;
  }

  .why-us {
    padding: 55px 15px;
  }
}


/* SIMPATIC TOURS - Experience Gallery */

.experience-gallery {
  padding: 75px 20px;
  background: #ffffff;
  text-align: center;
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
}

.experience-gallery h2 {
  font-family: Georgia, serif;
  font-size: 36px;
  color: #123f4a;
  margin-bottom: 12px;
}

.experience-gallery p {
  color: #66777b;
  font-size: 17px;
  margin-bottom: 35px;
}

.gallery-slider {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 0 20px;
  -webkit-overflow-scrolling: touch;
}

.gallery-slider img {
  flex: 0 0 auto;
  width: 310px;
  height: 390px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: start;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
  .experience-gallery {
    padding: 50px 15px;
  }

  .experience-gallery h2 {
    font-size: 28px;
  }

  .gallery-slider img {
    width: 82%;
    height: 350px;
  }
}


/* SIMPATIC TOURS - Gallery Navigation */

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 15px;
}

.gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: #123f4a;
  color: #d9b66f;
  border: 2px solid #d9b66f;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.gallery-arrow:hover {
  background: #d9b66f;
  color: #123f4a;
}

.gallery-arrow:focus-visible {
  outline: 3px solid #d9b66f;
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .gallery-controls {
    justify-content: center;
  }
}

/* Golden arrows for tour photo galleries */

.tour {
  position: relative;
}

.tour-photo-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.tour-photo-arrow {
  pointer-events: auto;
  background: rgba(0, 55, 60, 0.85);
  color: #d4af37;
  border: 1px solid #d4af37;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 20px;
  cursor: pointer;
}

.tour-photo-arrow:hover {
  background: #d4af37;
  color: #00383c;
}


/* SIMPATIC TOURS - Tour Details */

.tour-details-button {
  display: block;
  width: 100%;
  margin: 14px 0;
  padding: 12px 18px;
  background: transparent;
  color: #a67c2d;
  border: 1px solid #c9a34e;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tour-details-button:hover {
  background: #c9a34e;
  color: #ffffff;
}

.tour-details-panel {
  white-space: pre-line;
  background: #f8f7f3;
  border-left: 3px solid #c9a34e;
  border-radius: 6px;
  padding: 18px;
  margin: 12px 0 20px;
  color: #344b50;
  line-height: 1.8;
  font-size: 14px;
}

.tour-details-panel[hidden] {
  display: none;
}
