/* --- BASE --- */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #212529;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background:
    linear-gradient(to bottom, rgba(255,255,255,1.0), rgba(255,255,255,0.9)),
    url('../images/water_background.jpg') center center / cover no-repeat;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* --- HANDWRITTEN HERO HIGHLIGHT --- */
.hero-section .highlight {
  font-family: 'Caveat', cursive;
  font-size: 1.3em;
  letter-spacing: 1.5px;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  color: #fff;
  text-shadow: 0 4px 26px #08394e, 0 2px 6px #073053;
  position: relative;
  display: inline-block;
}
/* Remove underline squiggle for hero highlight */
.hero-section .highlight::after {
  display: none;
}

/* --- HEADER --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  color: #134664;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 2px 24px 0 #c2e2ef66;
  margin: 0 0 0em 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}

.faros-logo {
  display: none;
}

nav {
  display: flex;
  gap: 2.2em;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  margin: 0;
  width: 100%;
}
nav a {
  color: #24678e;
  background: none;
  padding: 0.45em 0.7em;
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.09em;
  letter-spacing: 0.25px;
  box-shadow: none;
  margin: 0 0.11em;
  border-bottom: 2.5px solid transparent;
  transition: color 0.17s, border-bottom 0.19s;
  position: relative;
}
nav a.active,
nav a:hover {
  color: #2c9ad8;
  border-bottom: 2.5px solid #2c9ad8;
}
@media (max-width: 700px) {
  header {
    flex-direction: column;
    min-height: 52px;
    margin: 0 0 1.2em 0;
    padding: 0.3em 0.4em;
    border-radius: 0 0 12px 12px;
  }
  nav { gap: 0.7em; }
  nav a { padding: 0.64em 0.3em; font-size: 1em; }
}

/* --- FOOTER --- */
footer {
  background: #fff;
  color: #24678e;
  box-shadow: 0 -1px 16px #d1e7ef3a;
  border-radius: 16px 16px 0 0;
  margin: 6em auto 0 auto;
  padding: 2em 0 1.2em 0;
  position: relative;
  text-align: center;
  max-width: 100vw;
  font-size: 1.09em;
  font-family: inherit;
}
footer::before {
  display: none;
}
footer p {
  margin: 0;
  font-family: inherit;
  font-size: 1.09em;
  color: #1787c8;
  letter-spacing: 0.5px;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 340px;
  background: linear-gradient(120deg, #47b0d7 30%, #d3f8fd 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 3.5em 1.4em 2.2em 1.4em;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
  overflow: hidden;
  box-shadow: 0 5px 38px #1c6d8d22;
  margin-bottom: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(0deg,rgba(0,36,54,0.47) 0%,rgba(12,64,96,0.28) 100%),
    url('../images/img1.jpg') center/cover no-repeat;
  opacity: 1;
  filter: brightness(0.94) blur(0.2px);
  transition: background 0.18s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  padding: 1em 0;
}
.hero-section h1 {
  font-size: 2.8em;
  color: #044a68;
  font-weight: 800;
  margin: 0 0 0.25em 0;
  letter-spacing: -1px;
  line-height: 1.12;
}

/* --- INTRO GALLERY / FEATURE BLOCKS --- */
.intro-gallery {
  margin: 0 auto 2em auto;
  max-width: 1100px;
  padding: 0 1.2em;
}
.intro-block {
  display: flex;
  align-items: center;
  gap: 2.6em;
  background: #fff;
  border-radius: 26px;
  margin: 1.2em 0;
  box-shadow: 0 2px 14px #3db7c312;
  padding: 2.5em 2.2em;
  position: relative;
  border: 2.5px dashed #b3f0e5;
}
.intro-block img {
  width: 250px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 8px #0699a12a;
}
.intro-block.left-img img { order: 1; }
.intro-block.left-img > div { order: 2; }
.intro-block.right-img { flex-direction: row-reverse; }
.intro-block.center-img {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1em;
  background: linear-gradient(95deg,#cff3fe 0%,#f8fffd 90%);
}
.intro-block h2 {
  font-size: 2em;
  margin: 0 0 0.3em 0;
  color: #038690;
  font-weight: 700;
  font-family: 'Caveat', cursive, Arial, sans-serif;
  letter-spacing: 1.1px;
}
.intro-block p {
  font-size: 1.15em;
  color: #126169;
  margin: 0.2em 0 0.1em 0;
}

/* --- MAIN/YACHTS --- */
main {
  max-width: 1200px;
  margin: 2em auto 2em auto;
  padding: 0 1.2em;
}

#yacht-list {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  max-width: 1150px;
  width: 98vw;
  margin: 0 auto;
  padding: 0 1.2em;
}

.yacht-field {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 18px rgba(44, 86, 115, 0.16);
  border-radius: 33px;
  margin-bottom: 2em;
  display: flex;
  align-items: center;
  padding: 2em 2.4em;
  min-height: 380px;
  gap: 3em;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  opacity: 0;
  border: 2.2px solid #e8fafd;
  transform: translateY(32px);
  animation: yachtfade 0.8s ease-in-out forwards;
}

.yacht-field:nth-child(1) { animation-delay: 0.05s; }
.yacht-field:nth-child(2) { animation-delay: 0.14s; }
.yacht-field:nth-child(3) { animation-delay: 0.23s; }
.yacht-field:nth-child(4) { animation-delay: 0.32s; }
.yacht-field:nth-child(5) { animation-delay: 0.41s; }

@keyframes yachtfade {
  to { opacity: 1; transform: none; }
}

.yacht-image img {
  max-width: 480px;
  min-width: 240px;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(34, 54, 68, 0.12);
  display: block;
  transition: box-shadow 0.19s, transform 0.18s;
}
.yacht-image img:hover {
  box-shadow: 0 8px 32px 0 #57e6e0b8;
  transform: scale(1.04) rotate(-1deg);
}

.yacht-details {
  flex: 1;
}

.yacht-details h2 {
  margin-top: 0;
  font-size: 1.7em;
  margin-bottom: 0.2em;
  color: #026873;
  letter-spacing: 0.02em;
  font-family: 'Caveat', cursive, Arial, sans-serif;
}

.book-button {
  display: inline-block;
  background: linear-gradient(88deg,#00d894 0%, #07c6b4 100%);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 0.95em 2.8em;
  font-size: 1.15em;
  cursor: pointer;
  margin-top: 1em;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 14px #1eaea430;
  transition: background 0.15s, box-shadow 0.17s, transform 0.13s;
  position: relative;
}
.book-button[style*="pointer-events: none"] {
  opacity: 0.47 !important;
  filter: grayscale(60%) blur(0.5px);
  cursor: not-allowed !important;
  background: #c7dadb !important;
  color: #6b7c7e !important;
  box-shadow: none !important;
  transition: opacity 0.13s, background 0.13s, color 0.13s;
}
.book-button:hover {
  background: linear-gradient(90deg,#fd7657 0%, #00d8d4 100%);
  box-shadow: 0 7px 22px #57ebf780;
  transform: scale(1.11) rotate(-2deg);
  color: #fff;
  animation: bounce 0.32s cubic-bezier(.75,1.8,.65,1.2);
}
@keyframes bounce {
  0%   { transform: scale(1.04) rotate(-1deg);}
  60%  { transform: scale(1.17) rotate(-3deg);}
  100% { transform: scale(1.11) rotate(-2deg);}
}

.calendar-slot {
  min-width: 400px;
  margin-left: auto;
}

.calendar {
  background: #f7fbfe;
  padding: 1em;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(34,54,68,0.08);
  max-width: 400px;
  transition: box-shadow 0.2s;
}
.calendar:hover {
  box-shadow: 0 8px 34px #54e1e08a;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.7em;
  color: #03607d;
}
.calendar-title {
  flex: 1;
  text-align: center;
  font-size: 1.09em;
  letter-spacing: 0.03em;
}
.nav-btn {
  background: #aee6e6;
  border: none;
  border-radius: 6px;
  width: 2em;
  height: 2em;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  margin: 0 0.2em;
  color: #06777b;
  transition: background 0.12s, color 0.13s;
}
.nav-btn:hover {
  background: #53ffc1;
  color: #065c59;
}
.calendar-days {
  display: flex;
}
.calendar-day {
  width: 3.2em;
  height: 2.7em;
  line-height: 2em;
  margin: 0.07em;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  background: #d4fbec;
  font-size: 1em;
  font-weight: 500;
  user-select: none;
  transition: background 0.13s, color 0.13s, transform 0.14s;
}
.calendar-day.empty {
  background: none !important;
  cursor: default;
  color: #b2b2b2;
}
.calendar-day.free {
  background: #c2f0c2;
  color: #176020;
  box-shadow: 0 0px 0px #0000;
}
.calendar-day.booked {
  background: #fd7657 !important;
  color: #fff !important;
  pointer-events: none;
  opacity: 0.87;
  box-shadow: 0 2px 8px #fd765739;
}
.calendar-day.past {
  background: #e7e8ea !important;
  color: #aaa !important;
  pointer-events: none;
}
.calendar-day.selected,
.calendar-day.between {
  background: linear-gradient(89deg, #20a894 0%, #72fae0 100%) !important;
  color: #fff !important;
  font-weight: bold;
  border: 0px solid #09afba;
  box-shadow: 0 2px 7px #00c7ff40;
  z-index: 1;
  transform: scale(1.05);
}
.calendar-day:hover {
  filter: brightness(0.97);
  transform: scale(1.08);
  z-index: 1;
}

.legend {
  margin-top: 0.8em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.legend-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 4px;
  margin-left: 12px;
  border: 1px solid #bbb;
  box-sizing: border-box;
  transition: border 0.18s, background 0.18s;
}
.legend-dot.free {
  background: #c2f0c2;
  border-color: #72cc72;
}
.legend-dot.booked {
  background: #fd7657;
  border-color: #b53427;
}

.status {
  margin: 1em 0 0 0;
  color: #14821b;
  font-weight: 600;
}

.booking-section {
  max-width: 480px;
  margin: 2em auto;
  background: #f8fffd;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(44,86,115,0.08);
  padding: 2em;
  animation: fadein 1.05s;
}
@keyframes fadein {
  from { opacity: 0; transform: scale(0.96);}
  to   { opacity: 1; transform: none;}
}
.booking-form label {
  display: block;
  margin-bottom: 1em;
  font-size: 1.11em;
  font-weight: 500;
  color: #03607d;
}
.booking-form input[type="text"],
.booking-form input[type="email"] {
  width: 100%;
  padding: 0.72em;
  margin-top: 0.4em;
  border-radius: 5px;
  border: 1.5px solid #ace9e7;
  font-size: 1em;
  box-sizing: border-box;
  background: #eef8fa;
  transition: border 0.14s;
}
.booking-form input[type="text"]:focus,
.booking-form input[type="email"]:focus {
  border-color: #05c3c7;
}
.booking-form button {
  margin-top: 1em;
  background: linear-gradient(88deg,#00d894 0%, #07c6b4 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.9em 2em;
  font-size: 1em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, box-shadow 0.14s;
  box-shadow: 0 2px 8px #1eaea43a;
}
.booking-form button:hover {
  background: linear-gradient(90deg,#fd7657 0%, #00d8d4 100%);
  box-shadow: 0 5px 16px #37e3e0a7;
}

/* --- Booking Overview (overview.html) --- */
.faros-overview main {
  max-width: 820px;
  margin: 2.3em auto 2em auto;
  padding: 0 1em;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 1.1em;
  margin: 1.5em 0 1.5em 0;
  background: linear-gradient(98deg, #e5fdff 20%, #b9fff3 90%);
  padding: 0.8em 1.8em;
  border-radius: 16px;
  box-shadow: 0 2px 16px #2ec6c43a;
  font-size: 1.18em;
  letter-spacing: 0.2px;
}
.step-num {
  font-family: 'Caveat', cursive;
  color: #0ea392;
  font-size: 2.3em;
  font-weight: bold;
  margin-right: 0.1em;
}
.step-desc {
  color: #016e70;
  font-size: 1.25em;
  font-weight: 700;
  margin-right: 1em;
}
.step-extra {
  color: #5bb7c7;
  font-size: 1em;
  font-family: inherit;
  margin-left: auto;
  font-weight: 500;
}

.booking-summary-card {
  display: flex;
  gap: 1.5em;
  align-items: center;
  background: #f8fffc;
  border-radius: 18px;
  box-shadow: 0 2px 16px #22c1b02a;
  padding: 2.2em 2.4em;
  margin-bottom: 2.2em;
}
.summary-img img {
  width: 170px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 3px 10px #3fd3d12b;
  cursor: pointer;
}
.summary-content {
  flex: 1;
  min-width: 0;
}
.summary-title {
  font-family: 'Caveat', cursive;
  font-size: 2em;
  margin-bottom: 0.2em;
  color: #026873;
  line-height: 1.12;
}
.summary-detail {
  font-size: 1.05em;
  margin-bottom: 0.24em;
  color: #18747b;
}
.icon {
  font-size: 1.18em;
  margin-right: 0.25em;
  vertical-align: middle;
}

/* --- Modal for gallery --- */
.modal-gallery {
  position: fixed;
  z-index: 9000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.68);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  position: relative;
  background: #fff;
  padding: 0.6em 1.3em 1.3em 1.3em;
  border-radius: 12px;
  box-shadow: 0 2px 30px rgba(34,54,68,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-content img {
  max-width: 75vw;
  max-height: 68vh;
  border-radius: 8px;
  margin: 0.8em 0;
}
.close-modal {
  position: absolute;
  top: 0.5em;
  right: 1em;
  font-size: 2em;
  color: #444;
  cursor: pointer;
  font-weight: bold;
  z-index: 10;
}
.modal-controls {
  display: flex;
  gap: 2em;
  justify-content: center;
}
.modal-controls button {
  background: #eee;
  border: none;
  border-radius: 50%;
  font-size: 1.6em;
  padding: 0.15em 0.42em;
  cursor: pointer;
  margin: 0 0.5em;
  color: #333;
  box-shadow: 0 2px 8px rgba(34,54,68,0.08);
}
.modal-controls button:hover {
  background: #c2f0c2;
  color: #009e60;
}

/* --- Addons area --- */
#addons-area {
  margin-bottom: 2.2em;
}
.addon-title {
  font-family: 'Caveat', cursive;
  color: #008e80;
  font-size: 1.35em;
  font-weight: 700;
  margin-bottom: 0.8em;
  display: inline-block;
  padding: 0.30em 1.2em;
  background: linear-gradient(91deg, #e2fdff 10%, #e5fff3 90%);
  border-radius: 1.5em;
  box-shadow: 0 2px 8px #23e2c51e;
  border: 2px solid #8de9e6;
}

.addon-list-flex {
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
}
.addon-pill {
  background: linear-gradient(95deg,#e4fcf8 0%,#e8fdff 90%);
  border: 2px solid #a0e5df;
  border-radius: 1.4em;
  box-shadow: 0 2px 10px #3dc6b018;
  padding: 1.1em 1.6em 0.7em 1.6em;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  position: relative;
  font-size: 1.06em;
  cursor: pointer;
  transition: box-shadow 0.14s, border 0.14s, background 0.17s;
}

.addon-pill:hover, .addon-pill:focus-within {
  border-color: #12b7ad;
  background: #e1fcf7;
  box-shadow: 0 5px 18px #1fd1c530;
}

/* Highlight entire pill if checked */
.addon-checkbox:checked ~ .addon-label-main,
.addon-checkbox:checked ~ .addon-label-desc,
.addon-checkbox:checked ~ .addon-price {
  color: #01846c;
}
.addon-checkbox:checked ~ .addon-label-main {
  font-weight: 700;
}

.addon-pill:has(.addon-checkbox:checked) {
  background: linear-gradient(96deg, #a7ffeb 0%, #e3fff9 100%);
  border-color: #22d0d3;
  box-shadow: 0 6px 22px #8ae9e98a;
}
.addon-checkbox {
  width: 1.2em;
  height: 1.2em;
  opacity: 0;
  margin-right: -1.2em;
  margin-left: 0;
  pointer-events: none;
  position: absolute;
  left: 12px;
  top: 20px;
}

/* Add a custom checkmark indicator in pill when selected */
.addon-pill:has(.addon-checkbox:checked)::after {
  content: '✓';
  position: absolute;
  top: 45px;
  left: 25px;
  font-size: 1.5em;
  color: #04aa88;
  background: none;
  z-index: 2;
  font-family: Arial, sans-serif;
}

/* Prevent label text from shifting due to checkmark overlay */
.addon-label-main {
  color: #066879;
  font-weight: 700;
  font-size: 1.1em;
}
.addon-label-desc,
.addon-price {
  margin-left: 1.9em;
}

.overview-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.7em;
  margin-top: 2.1em;
}
.back-btn {
  background: linear-gradient(90deg,#d6f7ff 0%, #b4fffa 100%);
  color: #0d556b;
  border: 2.5px solid #22d0d3;
  border-radius: 1.5em;
  padding: 0.8em 2.4em;
  font-size: 1.13em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px #8ae9e98a;
  transition: border 0.14s, color 0.16s, background 0.14s, box-shadow 0.18s;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.back-btn:hover, .back-btn:focus {
  background: linear-gradient(90deg,#befcff 0%, #a3f2e7 100%);
  border: 2.5px solid #189ca7;
  color: #0a4347;
  box-shadow: 0 6px 22px #9befe0ba;
}
.back-btn::before {
  content: "←";
  display: inline-block;
  margin-right: 0.45em;
  font-size: 1.3em;
  font-weight: bold;
}
.continue-btn {
  background: linear-gradient(88deg,#00d894 0%, #07c6b4 100%);
  color: #fff;
  border: none;
  border-radius: 2em;
  padding: 1em 2.8em;
  font-size: 1.14em;
  font-weight: 700;
  box-shadow: 0 2px 14px #1eaea430;
  cursor: pointer;
  transition: background 0.13s, box-shadow 0.15s, transform 0.13s;
}
.continue-btn:hover {
  background: linear-gradient(90deg,#fd7657 0%, #00d8d4 100%);
  box-shadow: 0 7px 22px #57ebf780;
  transform: scale(1.09) rotate(-2deg);
  color: #fff;
}
.summary-error {
  background: #fee7e6;
  color: #ae191a;
  border-radius: 9px;
  padding: 2em 2em;
  margin: 2.5em 0 2.2em 0;
  font-size: 1.18em;
  text-align: center;
  box-shadow: 0 2px 12px #fba9a931;
}

@media (max-width: 800px) {
  .yacht-field, .intro-block {
    flex-direction: column;
    gap: 1em;
    padding: 1.4em 1em;
    text-align: center;
    align-items: flex-start;
  }
  .yacht-field {
    padding: 1.5em 0.8em;
  }
  .calendar-slot {
    min-width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-top: 1em;
    padding: 0;
  }
  .intro-block img { width: 95vw; }
  .hero-section { padding: 2em 0.4em; min-height: 230px; }
}
@media (max-width: 700px) {
  .booking-summary-card { flex-direction: column; padding: 1.1em 0.4em; }
  .summary-img img { width: 95vw; height: 36vw; min-height: 100px; }
  .gallery-thumb-bar { margin-top: 0.4em; }
  .overview-actions { flex-direction: column; gap: 1.3em; }
  .addon-list-flex { gap: 0.55em; }
  .addon-pill { min-width: 99vw; }
}
@media (max-width: 550px) {
  .calendar, .calendar-slot { min-width: 100vw; max-width: 100vw; padding: 0; }
  .intro-block, .yacht-field, main { padding: 0.7em 0.15em !important; }
  .intro-block img { width: 98vw; }
}

/* Dropdown nav styles */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 145%;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 2px 22px #15808025;
  border-radius: 18px;
  z-index: 10;
  padding: 0.6em 0.3em;
}
.dropdown-content a {
  color: #22888b;
  padding: 0.73em 1.2em;
  text-decoration: none;
  display: block;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.09em;
  transition: background 0.14s, color 0.14s;
}
.dropdown-content a:hover {
  background: #e8fcf6;
}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.yacht-field {
  scroll-margin-top: 90px;
}

/* --- SERVICES --- */
.services-title {
  text-align: center;
  font-size: 2.8em;
  font-family: 'Caveat', cursive;
  color: #02ab99;
  margin: 1.7em 0 1.2em 0;
  letter-spacing: 1.2px;
}

.service-pill {
  display: flex;
  align-items: center;
  background: #f8fffd;
  border-radius: 22px;
  box-shadow: 0 4px 32px #13b8bb27;
  margin: 2em auto;
  max-width: 830px;
  padding: 1.7em 2.3em;
  gap: 2em;
  transition: box-shadow 0.2s;
}
.service-pill:hover {
  box-shadow: 0 8px 40px #13b8bb33;
}
.service-img img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 2px 12px #1fc5aa22;
  background: #e9fcf7;
}
.service-info h2 {
  font-size: 2em;
  margin-bottom: 0.15em;
  color: #12ad91;
  font-family: 'Caveat', cursive;
}
.service-info p {
  margin-bottom: 0.8em;
  color: #17617b;
  font-size: 1.13em;
  font-weight: 400;
}
.service-btn {
  background: #02ab99;
  color: #fff;
  border: none;
  border-radius: 13px;
  padding: 0.7em 1.7em;
  font-weight: 600;
  font-size: 1.05em;
  text-decoration: none;
  transition: background 0.18s;
  box-shadow: 0 2px 10px #03f3dc28;
  cursor: pointer;
}
.service-btn:hover {
  background: #159b84;
}
@media (max-width: 800px) {
  .service-pill { flex-direction: column; gap: 1.1em; padding: 1.4em 0.7em; }
  .service-img img { width: 90vw; max-width: 250px; height: 20vw; min-height: 96px; }
  .services-title { font-size: 2em; }
}

.service-preview {
  flex: 1 1 160px;
  padding-left: 2em;
  min-width: 130px;
  display: flex;
  align-items: center;
}
.service-preview ul {
  list-style-type: disc;
  margin: 0;
  padding-left: 1em;
  color: #0e868a;
  font-size: 2.02em;
  line-height: 1.5;
}
.service-preview li {
  margin-bottom: 0em;
  font-size: 1.01em;
  border-left: 2.5px solid #a3e4d7;
  padding-left: 0.7em;
}
@media (max-width: 900px) {
  .service-preview {
    display: none;
  }
}

/* --- NAV PILL LINKS --- */
.nav-pill-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(90deg, #e7fdff 30%, #c3fbe5 100%);
  border-radius: 19px;
  box-shadow: 0 2px 18px #14e7f325;
  padding: 1.4em 1.2em 1em 1.2em;
  margin: 0 0.1em;
  font-size: 1.18em;
  font-weight: 600;
  color: #1688a1;
  text-decoration: none;
  min-width: 135px;
  min-height: 90px;
  transition: box-shadow 0.13s, background 0.18s, transform 0.14s, color 0.15s;
  border: 2.2px solid #c4f5e8;
  position: relative;
  cursor: pointer;
}
.nav-pill-link:hover, .nav-pill-link:focus {
  background: linear-gradient(90deg, #81f0ec 0%, #b7ffd4 100%);
  box-shadow: 0 6px 30px #20b5c980;
  color: #049baa;
  transform: translateY(-5px) scale(1.045);
  z-index: 2;
  outline: none;
}
.nav-pill-icon {
  font-size: 2.1em;
  margin-bottom: 0.37em;
  line-height: 1;
  text-shadow: 0 1px 8px #0ff4fc12;
  display: block;
}
.nav-pill-title {
  font-family: 'Caveat', cursive, Arial, sans-serif;
  font-size: 1.09em;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: inherit;
}

@media (max-width: 900px) {
  .service-pill { flex-wrap: wrap; }
  .nav-pill-link {
    min-width: 130px;
    min-height: 74px;
    font-size: 1em;
    padding: 1em 0.7em 0.8em 0.7em;
  }
}
@media (max-width: 700px) {
  .service-pill {
    flex-direction: column;
    gap: 0.7em;
    align-items: stretch;
  }
  .nav-pill-link {
    width: 95vw;
    min-width: 0;
    margin: 0 auto;
    font-size: 1em;
    text-align: center;
  }
}

/* --- ABOUT --- */
.about-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2em 2em;
  justify-content: center;
  max-width: 1140px;
  margin: 3.1em auto;
}
.about-pill {
  flex: 1 1 230px;
  min-width: 255px;
  max-width: 260px;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  padding: 2em 1.2em 1.2em 1.2em;
}
.about-pill-icon {
  font-size: 2.3em;
  margin-bottom: 0.5em;
  line-height: 1;
  display: block;
}
.about-pill h3 {
  margin: 0 0 0.55em 0;
  font-size: 1.13em;
  font-weight: 700;
}
.about-pill p {
  font-size: 1.05em;
  color: #17647b;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .about-info-pills { gap: 1em 0.6em; }
  .about-pill { min-width: 170px; max-width: 99vw; min-height: 220px; padding: 1.4em 0.4em 1em 0.4em; }
}
@media (max-width: 700px) {
  .about-info-pills { flex-direction: column; gap: 1em; }
  .about-pill { min-width: 0; width: 97vw; max-width: 99vw; min-height: 150px; }
}

.about-main-field {
  background: #f8fffd;
  border-radius: 26px;
  box-shadow: 0 4px 32px #13b8bb27;
  padding: 2.3em 2.8em 2em 2.8em;
  max-width: 700px;
  margin: 0.4em auto 0.2em auto;
  text-align: center;
  position: relative;
  z-index: 2;
  font-size: 1.37em;
  color: #13617b;
  font-weight: 400;
  line-height: 1.64;
}
.about-main-field h2 {
  font-size: 2.1em;
  color: #02ab99;
  font-family: 'Caveat', cursive;
  margin-bottom: 0.5em;
}

/* Clickable yacht image */
.yacht-image a.yacht-link {
  display: block;
}
.yacht-image a.yacht-link:focus img {
  outline: 3px solid rgba(7, 198, 180, 0.55);
  outline-offset: 4px;
}

/* Spec cards (boat.html) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1em;
}
.spec-card {
  background: #f4fffd;
  border-radius: 14px;
  padding: 0.9em 1em;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.spec-k {
  font-size: 0.85em;
  color: #06777b;
  font-weight: 600;
}
.spec-v {
  font-size: 1.15em;
  font-weight: 700;
  color: #024f52;
}

/* ==========================
   BOAT PAGE ONLY: no sideways scroll
   (boat.html uses <main class="yachts-container">)
   ========================== */
.yachts-container {
  overflow-x: hidden;
}
.yachts-container .yacht-field {
  box-sizing: border-box;
  max-width: 100%;
}
.yachts-container img {
  max-width: 100%;
  height: auto;
}



/* boat.html hero subtitle readability */
.boat-hero-subtitle {
  max-width: 920px;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 10px rgba(0,0,0,0.55);
  font-weight: 600;
  font-size: 1.05em;
}

/* boat.html: clickable main image */
.boat-image-button {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.boat-image-button img {
  width: 100%;
  display: block;
}
.boat-image-button:focus img {
  outline: 3px solid rgba(7, 198, 180, 0.55);
  outline-offset: 4px;
}

.boat-image-hint {
  margin-top: 0.5em;
  font-size: 0.95em;
  color: #0b6b79;
  opacity: 0.85;
}

/* =====================================================================
   PUBLII THEME ADDITIONS
   ===================================================================== */

/* ---- Navigation generated by the Publii menu (ul > li > a, submenus) ---- */
.site-header nav { width: 100%; }
.site-header ul.menu { display: flex; gap: 2.2em; align-items: center; justify-content: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header ul.menu > li { position: relative; }
.site-header nav li.active > a,
.site-header nav li.active-parent > a { color: #2c9ad8; border-bottom: 2.5px solid #2c9ad8; }
.site-header ul.submenu {
  display: none; position: absolute; left: 0; top: 100%;
  min-width: 210px; background: #fff; box-shadow: 0 2px 22px #15808025;
  border-radius: 18px; z-index: 20; padding: 0.6em 0.3em; list-style: none; margin: 0;
}
.site-header li:hover > ul.submenu,
.site-header li:focus-within > ul.submenu { display: block; }
.site-header ul.submenu a {
  color: #22888b; padding: 0.73em 1.2em; display: block; border-radius: 10px;
  font-weight: 600; font-size: 1.09em; border-bottom: none; margin: 0;
}
.site-header ul.submenu a:hover { background: #e8fcf6; color: #22888b; border-bottom: none; }
.site-header ul.submenu li.active > a { background: #e8fcf6; border-bottom: none; }
@media (max-width: 700px) { .site-header ul.menu { gap: 0.4em 0.8em; } .site-header ul.submenu { position: static; box-shadow: none; padding: 0 0 0 .8em; } }

.site-footer ul { list-style: none; display: flex; gap: 1.4em; justify-content: center; margin: 0 0 .8em; padding: 0; flex-wrap: wrap; }
.site-footer ul a { color: #24678e; text-decoration: none; font-weight: 600; }
.site-footer p { margin: 0; }

/* ---- Generic content pages ---- */
.page-main { max-width: 1200px; margin: 2em auto; padding: 0 1.2em; }
.about-main-wide { text-align: left; max-width: 1150px; font-size: 1.3em; margin: 2.5em auto 0.4em auto; }
.about-main-wide h1, .about-main-wide h2, .about-main-wide h3 { font-family: 'Caveat', cursive; color: #02ab99; }
.about-main-wide h2 { font-size: 2.1em; margin: 0 0 .5em 0; }
.about-main-wide h3 { font-size: 1.6em; }
.about-main-wide a { color: #1787c8; }
.keep-lines { white-space: pre-line; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content figure { margin: 1em 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content .gallery, .entry-content .photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

.photo-showcase { max-width: 1200px; margin: 24px auto 48px; padding: 0 16px; }
.photo-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photo-showcase-grid img { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; }
@media (max-width: 800px) { .photo-showcase-grid { grid-template-columns: 1fr; } .photo-showcase-grid img { height: 200px; } .about-main-wide { font-size: 1.1em; padding: 1.5em 1em; } }

/* Activities price table (typed in the Publii editor) */
.price-table-wrap { max-width: 1020px; display: block; padding: 0; background: #f7fcff; overflow: hidden; }
.price-table-wrap table { min-width: 720px; width: 100%; border-collapse: collapse; font-size: 1.13em; background: #f7fcff; }
.price-table-wrap th { background: #eaf8fc; text-align: center; padding: 16px 20px; border-bottom: 2px solid #bce5fa; }
.price-table-wrap th:first-child { text-align: left; }
.price-table-wrap td { text-align: center; padding: 16px 20px; }
.price-table-wrap td:first-child { text-align: left; }
.price-table-wrap tr + tr td { border-top: 1px solid #e3f1f7; }

/* ---- Home ---- */
.home-hero-bg { position: absolute; inset: 0; z-index: 0; filter: brightness(0.96) blur(0.3px); }
.home-hero-section {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 340px; padding: 3.5em 1.4em 2.2em 1.4em; overflow: hidden; border-radius: 44px; box-shadow: 0 6px 40px #0e2b3575; margin-bottom: 0;
}
.home-hero-content { z-index: 1; position: relative; color: #fff; text-align: center; margin-top: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.home-hero-content h1 { font-family: 'Caveat', cursive; font-size: 5em; line-height: 1.05; letter-spacing: 2.5px; margin: 0 0 .1em; color: #fff; text-shadow: 0 12px 54px #05354577, 0 3px 15px #02141c96; }
.browse-btn-hero {
  position: static; display: inline-block; margin: 1.6em auto 0; transform: none;
  background: #02ab99; color: #fff; font-size: 1.5rem; font-weight: 600; padding: 16px 34px; border-radius: 50px;
  text-decoration: none; box-shadow: 0 4px 20px rgba(0,0,0,0.25); transition: background .25s, transform .25s; white-space: nowrap; text-align: center;
}
.browse-btn-hero:hover { background: #029784; transform: translateY(2px); }
.home-hero-content h1 { padding-left: 2.5px; } /* balances the letter-spacing so the title is optically centred */
@media (max-width: 800px) { .home-hero-content h1 { font-size: 2.8em; } .browse-btn-hero { font-size: 1.1rem; padding: 12px 26px; margin-top: 1.2em; } }

/* ---- Contact ---- */
.contact-container { max-width: 900px; margin: 2em auto; padding: 2em; background: #f8fffd; border-radius: 26px; box-shadow: 0 4px 32px #13b8bb27; color: #13617b; font-size: 1.1em; }
.contact-container h2 { font-family: 'Caveat', cursive; font-size: 2.2em; color: #02ab99; margin: 0 0 .5em; }
.contact-form { display: grid; gap: 1em; margin-top: 1em; }
.contact-form input, .contact-form textarea { padding: .8em; font-size: 1em; border: 1px solid #b8e2e0; border-radius: 8px; outline: none; font-family: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #02ab99; }
.contact-form button { background: #02ab99; color: #fff; padding: .9em; font-size: 1.1em; border: none; border-radius: 8px; cursor: pointer; transition: background .25s; }
.contact-form button:hover { background: #029784; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.hp-field { position: absolute !important; left: -5000px; height: 0; width: 0; opacity: 0; }
.contact-status.ok { color: #14821b; font-weight: 600; }
.contact-status.err { color: #b2503a; font-weight: 600; }
.contact-info { margin-top: 2em; line-height: 1.6; }
.map-container { margin-top: 2em; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.15); }

/* ---- Calendar: pending (yellow) vs booked (red) ---- */
.calendar-day.pending { background: #ffd84d !important; color: #5c4700 !important; pointer-events: none; box-shadow: 0 2px 8px #ffd84d66; }
.legend-dot.pending { background: #ffd84d; border-color: #c9a400; }
.legend { flex-wrap: wrap; }
.calendar-loading { color: #026873; font-weight: 600; padding: .4rem 0; }
.book-button.is-disabled { pointer-events: none; opacity: .55; cursor: default; }
.more-link { color: #1787c8; font-weight: 600; text-decoration: none; }
.cal-hint { color: #18747b; margin: 0 0 1em; }
.calendar-slot-single { margin-left: 0; }

/* ---- Yacht page ---- */
.yachts-container { overflow-x: hidden; }
.yacht-field-single { flex-direction: column; align-items: stretch; opacity: 1; transform: none; animation: none; min-height: 0; }
.yacht-top { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.yacht-top .yacht-image { flex: 1 1 360px; }
.yacht-top .yacht-details { flex: 1 1 360px; }
.yacht-top .yacht-image img { max-width: 100%; }
.spec-cards { margin-top: 1.2em; }
.spec-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5em 1.2em; }
.spec-lines div { color: #18747b; font-size: 1.02em; }
.o-section { scroll-margin-top: 90px; max-width: 1150px; margin-left: auto; margin-right: auto; }
.summary-compact { display: flex; gap: 1em; align-items: center; }
.summary-compact img { width: 150px; height: 110px; object-fit: cover; border-radius: 12px; box-shadow: 0 3px 10px #3fd3d12b; }
.pricing-list { margin: .2em 0 0; padding-left: 1.1em; color: #17617b; }
.pricing-note { color: #5bb7c7; font-size: .98em; margin-top: .8em; }
.thumb-bar { display: flex; flex-wrap: wrap; gap: .5em; }
.thumb-bar img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; cursor: pointer; display: block; }
.desc-card { color: #17617b; font-size: 1.02em; line-height: 1.55; background: #fff; border-radius: 14px; box-shadow: 0 2px 16px #2ec6c43a; padding: 1rem 1.2rem; max-width: 860px; margin: .4em auto 0; }
.desc-card p { margin: 0 0 1em; }
.skipper-notice { margin-top: .75em; padding: .75em .9em; border: 1.5px solid #ace9e7; border-radius: 12px; background: linear-gradient(90deg,#e7fdff 0%,#effff8 100%); color: #026873; font-weight: 700; line-height: 1.45; }
.skipper-notice small { display: block; margin-top: .25em; font-weight: 500; color: #18747b; }
.addon-pill.required-addon { border-color: #07c6b4; background: linear-gradient(90deg,#e7fdff 0%,#e9fff7 100%); cursor: default; }
.addon-pill.required-addon input { pointer-events: none; }
@media (max-width: 780px) { .spec-lines { grid-template-columns: 1fr; } .summary-compact { flex-direction: column; align-items: flex-start; } }

/* ---- Booking form page ---- */
.page-wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.bk-wrap { display: block; }
.page-wrap .booking-summary-card { margin-bottom: 1.2em; }
.page-wrap .booking-summary-card label { display: grid; gap: .35em; margin-bottom: .7em; }
.page-wrap .booking-summary-card input[type="text"], .page-wrap .booking-summary-card input[type="email"] { background: #eef8fa; border: 1.5px solid #ace9e7; border-radius: 8px; padding: .65em .85em; font-size: 1.02em; }
.crew-list-field { background: #f8fffd; border-radius: 18px; box-shadow: 0 2px 16px #22c1b02a; padding: 1.6em 1.2em 1em; display: flex; flex-direction: column; gap: 1.1em; }
.crew-row { display: flex; gap: 1em; align-items: flex-end; margin-bottom: .6em; background: linear-gradient(97deg,#e4fcf8 0%,#e8fdff 90%); border-radius: 14px; padding: .8em .9em; box-shadow: 0 1px 7px #aeeff512; flex-wrap: wrap; }
.crew-row label { display: flex; flex-direction: column; font-size: .97em; color: #03607d; font-weight: 500; min-width: 220px; flex: 1 1 220px; margin: 0; }
.crew-row input[type="text"], .crew-row input[type="date"] { background: #eef8fa; border: 1.5px solid #ace9e7; border-radius: 7px; padding: .56em .85em; font-size: 1.02em; }
.crew-row .remove-crew-btn { background: #ff6f61; color: #fff; border: none; border-radius: 8px; padding: .32em .9em; font-size: 1.1em; cursor: pointer; font-weight: 600; margin-left: .3em; }
.crew-row .remove-crew-btn:disabled { opacity: .4; cursor: default; background: #ffd2ce; color: #b63427; }
.add-crew-btn { background: linear-gradient(88deg,#00d894 0%,#07c6b4 100%); color: #fff; border: none; border-radius: 22px; padding: .6em 1.6em; font-size: 1.03em; cursor: pointer; font-weight: 600; box-shadow: 0 2px 14px #1eaea430; align-self: flex-start; }
.add-crew-btn:disabled { opacity: .5; cursor: default; }
.page-wrap .overview-actions { display: flex; gap: .8em; justify-content: space-between; }
.page-wrap .back-btn { background: #e9fbff; color: #0f7687; border: 1px solid #bfeff1; border-radius: 12px; padding: .6em 1.2em; font-weight: 600; cursor: pointer; box-shadow: none; }
.page-wrap .back-btn::before { display: none; }
.page-wrap .continue-btn { background: #02ab99; color: #fff; border: none; border-radius: 12px; padding: .6em 1.2em; font-weight: 700; cursor: pointer; transform: none; }
.page-wrap .continue-btn:hover { background: #029784; transform: none; }
.recap { background: #f8fffd; border-radius: 18px; box-shadow: 0 2px 16px #22c1b02a; padding: 1.2em 1.3em; margin-top: 1.2em; }
.recap h3 { margin: .2em 0 .55em; font-family: 'Caveat', cursive; color: #026873; font-size: 2rem; line-height: 1; }
.recap .line { color: #18747b; font-size: 1.02em; margin: .25em 0; }
.recap .img-wrap { position: relative; width: 100%; padding-top: 40%; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px #3fd3d12b; margin-bottom: .7em; background: #eef8fa; }
.recap .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Confirmation ---- */
.confirmation-main { max-width: 780px; margin: 2.5em auto 0; padding: 0 1.2em; text-align: center; min-height: 60vh; }
.confirm-title { font-family: 'Caveat', cursive; font-size: 2.7em; color: #04aa88; margin-bottom: .35em; font-weight: bold; }
.confirm-details { font-size: 1.3em; color: #026873; margin-bottom: 2em; }
.confirm-text { color: #18747b; font-size: 1.1em; }
.confirmation-main .summary-img img { width: 350px; max-width: 95vw; height: 240px; object-fit: cover; border-radius: 17px; box-shadow: 0 4px 22px #3fd3d12b; cursor: pointer; margin: .8em 0 1.6em; }
.error-msg { background: #fee7e6; color: #ae191a; border-radius: 13px; padding: 2.2em; margin: 2.5em 0 2.2em; font-size: 1.24em; box-shadow: 0 2px 12px #fba9a931; text-align: center; }
.confirmation-main .overview-actions { justify-content: center; margin-top: 2.6em; }

/* Publii editor helpers */
.faros-body img { max-width: 100%; }

/* ---- Charter list: yacht photos same size as the intro-block photos ---- */
#yacht-list .yacht-image img { width: 250px; max-width: 100%; min-width: 0; height: auto; border-radius: 18px; }
#yacht-list .yacht-image img:hover { transform: scale(1.04); }
@media (max-width: 800px) { #yacht-list .yacht-image img { width: 95vw; max-width: 100%; } }

/* ---- calendar helper message ---- */
.cal-msg { margin-top: .7em; color: #18747b; font-size: .95em; font-weight: 600; line-height: 1.35; max-width: 400px; }
.cal-msg.warn { color: #b2503a; }
.book-button.is-disabled { cursor: not-allowed; }
.book-hint { margin: .4em 0 0; color: #5bb7c7; font-size: .9em; }

/* ---- Home: who we are / what we do / where we are ---- */
.section-title { font-family: 'Caveat', cursive; color: #02ab99; font-size: 2.6em; text-align: center; margin: 0 0 .5em; }
.home-who .entry-content p { margin: 0 0 .6em; }
.read-more-line { margin: 0 0 1em; }
.read-more { color: #1787c8; font-weight: 700; text-decoration: none; font-size: .9em; }
.read-more:hover { text-decoration: underline; }
.home-what { margin-top: 2.6em; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 12px; box-shadow: 0 4px 18px rgba(15,110,130,.22); text-decoration: none; }
.tile img { width: 100%; height: 280px; object-fit: cover; display: block; transition: transform .35s; }
.tile:hover img { transform: scale(1.05); }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2em 1em .9em; color: #fff; text-align: center;
  font-family: 'Caveat', cursive; font-size: 2em; font-weight: 700; text-shadow: 0 2px 8px rgba(0,30,45,.7);
  background: linear-gradient(0deg, rgba(0,36,54,.72) 0%, rgba(0,36,54,0) 100%);
}
.home-where { margin-bottom: 2.5em; }
.where-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-top: 1em; box-shadow: 0 4px 18px rgba(15,110,130,.22); }
@media (max-width: 800px) { .tile img { height: 200px; } }

/* ---- Charter landing (choose destination) ---- */
.choice-gallery .choice-title { font-family: 'Caveat', cursive; font-size: 2.8em; margin: 1.2em 0 .1em; text-align: left; color: #02ab99; }
.choice-gallery .choice-title a { color: #02ab99; text-decoration: none; border-bottom: 3px solid transparent; }
.choice-gallery .choice-title a:hover { border-bottom-color: #02ab99; }

/* photo next to a quote is a link too */
.choice-gallery a.choice-img { display: block; flex: 0 0 auto; line-height: 0; border-radius: 18px; overflow: hidden; }
.choice-gallery a.choice-img img { transition: transform .35s; }
.choice-gallery a.choice-img:hover img { transform: scale(1.05); }
.choice-gallery .choice-title.align-right { text-align: right; }

/* ---- Sailbase hub (4 tiles) ---- */
.hub-tiles { margin-top: 2.4em; }
.hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hub-grid .tile img { height: 300px; }
.hub-grid .tile-caption { font-size: 2.3em; }
@media (max-width: 800px) { .hub-grid { grid-template-columns: 1fr; } .hub-grid .tile img { height: 210px; } }

/* ---- Themed trips (6 small tiles) ---- */
.trips-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trips-grid .tile img { height: 200px; }
.trips-grid .tile-caption { font-size: 1.55em; line-height: 1.05; padding: 1.8em .8em .7em; }
@media (max-width: 900px) { .trips-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .trips-grid .tile img { height: 170px; } }
@media (max-width: 480px) { .trips-grid { grid-template-columns: 1fr; } }

/* ---- Hero photos: rounded corners on all four sides ---- */
.hero-section, .home-hero-section { border-radius: 44px; }
@media (max-width: 700px) { .hero-section, .home-hero-section { border-radius: 30px; } }

/* ---- Footer: privacy left, copyright centre, terms right ---- */
.footer-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1em; max-width: 1200px; margin: 0 auto; padding: 0 1.2em; }
.footer-bar .footer-left { justify-self: start; }
.footer-bar .footer-right { justify-self: end; }
.footer-bar a { color: #24678e; text-decoration: none; font-weight: 600; }
.footer-bar a:hover { text-decoration: underline; }
.footer-bar .footer-copy { text-align: center; margin: 0; }
@media (max-width: 700px) {
  .footer-bar { grid-template-columns: 1fr; text-align: center; gap: .5em; }
  .footer-bar .footer-left, .footer-bar .footer-right { justify-self: center; }
  .footer-bar .footer-copy { order: 3; }
}

/* ---- Home: 'Where we are' text + small map ---- */
.where-row { display: flex; gap: 28px; align-items: flex-start; }
.where-text { flex: 1 1 55%; min-width: 0; }
.where-map { flex: 0 1 40%; min-width: 260px; }
.where-map iframe { display: block; width: 100%; height: 260px; border: 0; border-radius: 14px; box-shadow: 0 4px 18px rgba(15,110,130,.22); }
.where-map-link { display: inline-block; margin-top: .5em; color: #1787c8; font-weight: 700; font-size: .8em; text-decoration: none; }
.where-map-link:hover { text-decoration: underline; }
@media (max-width: 800px) { .where-row { flex-direction: column; } .where-map { flex: 1 1 auto; width: 100%; min-width: 0; } }

/* ---- 'Where we are': text wraps around the map (map floats right) ---- */
.where-row { display: flow-root; }
.where-map { float: right; width: 40%; min-width: 260px; margin: .3em 0 1em 28px; flex: none; }
.where-text { display: block; }
.where-text p { margin-top: 0; }
.where-img { clear: both; }
@media (max-width: 800px) { .where-map { float: none; width: 100%; min-width: 0; margin: 0 0 1em 0; } }

/* whole quote box (photo + text) is one link */
.choice-gallery a.choice-card { display: block; text-decoration: none; color: inherit; border-radius: 26px; cursor: pointer; }
.choice-gallery a.choice-card .intro-block { margin: .6em 0 1.2em; transition: transform .25s, box-shadow .25s, border-color .25s; }
.choice-gallery a.choice-card:hover .intro-block,
.choice-gallery a.choice-card:focus-visible .intro-block { transform: translateY(-3px); box-shadow: 0 8px 26px #1ba3a540; border-color: #02ab99; }
.choice-gallery a.choice-card img { transition: transform .35s; }
.choice-gallery a.choice-card:hover img { transform: scale(1.04); }
.choice-gallery a.choice-card:focus-visible { outline: 3px solid #02ab99; outline-offset: 3px; }

/* ---- Menu: third level opens to the side (next to its parent), not underneath ---- */
.site-header ul.submenu li { position: relative; }
.site-header ul.submenu ul.submenu {
  top: -0.6em; left: calc(100% - 6px); margin: 0; /* slight overlap keeps the hover unbroken */
}
.site-header ul.submenu li > a[aria-haspopup="true"] { position: relative; padding-right: 2.3em; }
.site-header ul.submenu li > a[aria-haspopup="true"]::after { content: "\25B8"; position: absolute; right: .9em; top: 50%; transform: translateY(-50%); line-height: 1; opacity: .7; }
@media (max-width: 700px) {
  .site-header ul.submenu ul.submenu { position: static; top: auto; left: auto; padding-left: .8em; box-shadow: none; }
  .site-header ul.submenu li > a[aria-haspopup="true"]::after { content: ""; }
  .site-header ul.submenu li > a[aria-haspopup="true"] { padding-right: 1.2em; }
}

/* ---- Home hero: motto under the title ---- */
.home-hero-motto { margin: 0; padding: 0 1em; max-width: 820px; color: #fff; font-size: 1.45rem; font-weight: 600; line-height: 1.3; letter-spacing: .4px; text-align: center; text-shadow: 0 2px 14px #02141cb0, 0 1px 3px #02141c99; }
.home-hero-motto + .browse-btn-hero { margin-top: 1.3em; }
@media (max-width: 800px) { .home-hero-motto { font-size: 1.1rem; } }

/* motto uses the same handwritten font as the main title */
.home-hero-motto { font-family: 'Caveat', cursive; font-size: 2.2rem; font-weight: 700; letter-spacing: 1px; line-height: 1.15; }
@media (max-width: 800px) { .home-hero-motto { font-size: 1.6rem; } }

/* ---- Optional extras: one column, all boxes the same width and height ---- */
.addon-list-flex { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: .9em; max-width: 640px; }
.addon-list-flex .addon-pill { width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 800px) { .addon-list-flex { max-width: 100%; } .addon-list-flex .addon-pill { min-width: 0; } }

/* ---- Optional extras: 3 equal boxes per row ---- */
.addon-list-flex { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; max-width: none; gap: 1em 1.2em; }
.addon-list-flex .addon-pill { width: 100%; min-width: 0; }
@media (max-width: 1000px) { .addon-list-flex { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .addon-list-flex { grid-template-columns: 1fr; } }

/* ---- Galleries made in the Publii editor ---- */
.entry-content .gallery-wrapper { margin: 1.4em 0; clear: both; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.entry-content .gallery[data-columns="1"] { grid-template-columns: 1fr; }
.entry-content .gallery[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .gallery[data-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-content .gallery[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.entry-content .gallery[data-columns="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.entry-content .gallery[data-columns="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery__item { margin: 0; overflow: hidden; border-radius: 12px; background: #eef8fa; box-shadow: 0 2px 10px rgba(15,110,130,.18); }
.gallery__item a { display: block; line-height: 0; cursor: zoom-in; }
.gallery__item img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 0; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item figcaption { font-size: .85em; line-height: 1.3; padding: .45em .7em .55em; color: #17617b; background: #fff; }
@media (max-width: 800px) {
  .entry-content .gallery[data-columns="4"], .entry-content .gallery[data-columns="5"], .entry-content .gallery[data-columns="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .entry-content .gallery, .entry-content .gallery[data-columns="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* lightbox */
html.lb-open { overflow: hidden; }
.faros-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 20, 30, .9); display: flex; align-items: center; justify-content: center; }
.faros-lb .lb-fig { margin: 0; max-width: 92vw; text-align: center; }
.faros-lb .lb-img { max-width: 92vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 8px 40px rgba(0,0,0,.5); background: #fff; }
.faros-lb .lb-cap { color: #e8fbff; margin-top: .6em; font-size: 1rem; min-height: 1.2em; }
.faros-lb button { position: absolute; background: rgba(255,255,255,.14); border: none; color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.4rem; line-height: 1; transition: background .2s; }
.faros-lb button:hover { background: rgba(255,255,255,.3); }
.faros-lb .lb-close { top: 18px; right: 22px; font-size: 2rem; }
.faros-lb .lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.faros-lb .lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---- Yacht photo boxes: always the same size (4:3), whatever the photo's shape ---- */
.yacht-top .yacht-image img, .boat-image-button img {
  width: 100%; max-width: 480px; min-width: 0; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
}
#yacht-list .yacht-image img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }

/* ---- Yacht page: photo + details in a grid (robust for any photo shape) ---- */
.yacht-top { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 28px; align-items: start; }
.yacht-top .yacht-image, .yacht-top .yacht-details { flex: none; min-width: 0; }
@media (max-width: 800px) { .yacht-top { grid-template-columns: minmax(0, 1fr); } .yacht-top .yacht-image img, .boat-image-button img { max-width: 100%; } }
