/* ==========================================================
   Taniti Tourism Website - styles.css
   One stylesheet shared by every page.
   ========================================================== */

/* ---------- Colors (change them here to restyle the whole site) ---------- */
:root {
  --teal: #0b7a75;        /* main color: ocean */
  --teal-light: #dff1ef;
  --yellow: #f6b93b;      /* sun */
  --yellow-light: #fff3d6;
  --pink: #d6336c;        /* hibiscus flower: buttons */
  --pink-light: #fde4ec;
  --text: #12302f;
  --gray: #5a7270;
  --border: #cfe3e0;
  --background: #f3faf9;
  --white: #ffffff;
}

/* ---------- Basic page setup ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--background);
}

h1, h2, h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

p {
  margin: 0 0 10px;
}

a {
  color: var(--teal);
}

/* Keeps content centered and away from the screen edges */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

main.container {
  padding-top: 24px;
  padding-bottom: 48px;
}

section {
  margin-bottom: 28px;
}

/* ---------- Header and navigation ---------- */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--teal);
  text-decoration: none;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 20px;
}

.main-nav a:hover {
  background-color: var(--teal-light);
}

.main-nav .nav-book {
  background-color: var(--pink);
  color: var(--white);
}

/* Phone menu: uses the HTML <details> tag, so no JavaScript is needed */
.mobile-menu {
  display: none;
}

.mobile-menu summary {
  cursor: pointer;
  font-weight: bold;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  list-style: none;
}

.mobile-menu-links {
  position: absolute;
  left: 16px;
  right: 16px;
  margin-top: 12px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  z-index: 10;
}

.mobile-menu-links a {
  display: block;
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 8px;
  background-color: var(--teal-light);
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

/* ---------- Hero (big banner on the home page) ---------- */
.hero {
  /* A sunset-and-ocean gradient stands in for a photo */
  background: linear-gradient(to bottom, #f7a072 0%, #f6c87a 45%, #1aa3a0 70%, #075a5c 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 80px 28px 32px;
}

.hero h1 {
  font-size: 40px;
}

.hero p {
  font-size: 18px;
  max-width: 550px;
}

.search-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  background-color: var(--white);
  border-radius: 30px;
  padding: 6px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 8px 12px;
  font-size: 16px;
}

/* ---------- Local events card ---------- */
.events-card {
  background-color: var(--yellow-light);
  border-radius: 14px;
  padding: 22px;
}

.events-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.event {
  display: flex;
  gap: 12px;
  background-color: var(--white);
  border-radius: 10px;
  padding: 14px;
}

.event-date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  background-color: var(--pink);
  color: var(--white);
  border-radius: 8px;
  padding: 6px 0;
}

.event-date strong {
  display: block;
  font-size: 22px;
}

.event h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.event p {
  color: var(--gray);
  font-size: 14px;
  margin: 0;
}

/* ---------- Quick links (Do, Stay, Eat, Go) ---------- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-links a {
  text-align: center;
  padding: 14px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: bold;
}

.quick-links a:hover {
  border-color: var(--teal);
}

/* ---------- Alert box (holiday closures) ---------- */
.alert {
  background-color: var(--pink-light);
  border-left: 5px solid var(--pink);
  border-radius: 8px;
  padding: 14px 16px;
}

/* ---------- Cards for tours, hotels and restaurants ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  display: block;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
}

a.card:hover {
  border-color: var(--teal);
}

/* Colored block at the top of a card, in place of a photo */
.card-image {
  height: 120px;
  background-color: var(--teal);
}

.card-image.volcano  { background: linear-gradient(135deg, #e4572e, #5b2a1c); }
.card-image.forest   { background: linear-gradient(135deg, #2f9e44, #0b3d2a); }
.card-image.ocean    { background: linear-gradient(135deg, #1aa3a0, #074a5c); }
.card-image.boat     { background: linear-gradient(135deg, #3b5bdb, #14213d); }
.card-image.history  { background: linear-gradient(135deg, #f08c00, #5c3300); }
.card-image.beach    { background: linear-gradient(135deg, #f6c87a, #1aa3a0); }

.card-body {
  padding: 14px 16px;
}

.card-body p {
  color: var(--gray);
  margin: 0;
}

.price {
  font-weight: bold;
  color: var(--text);
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  background-color: var(--teal-light);
  color: var(--teal);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* Filter buttons on Things to Do */
.filters {
  margin-bottom: 16px;
}

.filters span {
  display: inline-block;
  border: 1px solid var(--border);
  background-color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: bold;
  margin: 0 4px 6px 0;
}

.filters .active {
  background-color: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ---------- Boxes and buttons ---------- */
.box {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--pink);
  color: var(--white);
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
}

.button:hover {
  opacity: 0.9;
}

.button.teal {
  background-color: var(--teal);
}

.small-button {
  border: none;
  background-color: var(--pink);
  color: var(--white);
  font-weight: bold;
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-weight: bold;
}

/* Two columns: main info on the left, side box on the right */
.two-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.facts div {
  background-color: var(--teal-light);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.facts strong {
  display: block;
  font-size: 20px;
}

/* ---------- Forms ---------- */
label {
  display: block;
  font-weight: bold;
  margin-bottom: 14px;
}

input,
select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.price-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.price-table td:last-child {
  text-align: right;
}

.price-table .total td {
  font-weight: bold;
  font-size: 20px;
  border-bottom: none;
  background-color: var(--yellow-light);
  padding: 10px;
}

/* ---------- Confirmation page ---------- */
.confirmed {
  text-align: center;
}

.checkmark {
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background-color: var(--teal);
  color: var(--white);
  font-size: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--teal);
  color: var(--white);
  padding: 24px 0;
  font-size: 14px;
}

.site-footer a {
  color: var(--white);
}

/* ==========================================================
   Phones and small tablets (screens 760px wide or less)
   ========================================================== */
@media (max-width: 760px) {
  .main-nav {
    display: none;          /* hide the desktop menu */
  }

  .mobile-menu {
    display: block;         /* show the phone menu button */
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .events-list,
  .card-grid,
  .two-columns {
    grid-template-columns: 1fr;   /* stack everything in one column */
  }

  .quick-links {
    grid-template-columns: repeat(2, 1fr);
  }
}