/* ============================================================
   STYLE SHEET – "1990s travel agency flyer" look.
   Controls colours, fonts and layout. The text and photos
   themselves are in index.html.
   ============================================================ */

/* Colour palette – change a colour here and it updates everywhere */
:root {
  --teal: #19b3a8;
  --magenta: #ff2e93;
  --yellow: #ffe600;
  --orange: #ff7a00;
  --purple: #6a2bd9;
  --ink: #111;
  --paper: #fffdf5;   /* off-white "brochure paper" */
}

* { box-sizing: border-box; }

/* Whole page: loud 90s confetti pattern made only with CSS
   (pink and yellow dots on teal, with faint diagonal stripes) */
body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;  /* THE 90s font */
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--teal);
  background-image:
    radial-gradient(var(--magenta) 3px, transparent 4px),
    radial-gradient(var(--yellow) 3px, transparent 4px),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,.12) 22px 44px);
  background-size: 46px 46px, 70px 70px, auto;
  background-position: 0 0, 23px 35px, 0 0;
}
a { color: var(--purple); font-weight: bold; }
img { display: block; max-width: 100%; }

/* Keeps content in a readable column in the middle */
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* ---------- Scrolling news ticker at the very top ---------- */
.ticker {
  background: var(--ink);
  color: var(--yellow);
  font-family: "Bungee", Impact, sans-serif;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  padding: 7px 0;
  border-bottom: 4px solid var(--magenta);
}
.ticker span {
  display: inline-block;
  padding-left: 100%;                 /* text starts off-screen on the right… */
  animation: scroll 35s linear infinite; /* …and slides to the left forever */
}
@keyframes scroll { to { transform: translateX(-100%); } }

/* ---------- Big title ("WordArt") ---------- */
.hero { text-align: center; padding: 34px 0 10px; }
.hero h1 {
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0;
  /* rainbow-filled letters with a hard black shadow = classic WordArt */
  background: linear-gradient(180deg, var(--yellow) 0%, var(--orange) 45%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(4px 4px 0 var(--ink)) drop-shadow(-1px -1px 0 #fff);
  transform: rotate(-2deg);
}
.hero .slogan {
  font-family: "Pacifico", cursive;
  color: #fff;
  font-size: clamp(2.1rem, 7vw, 3rem);
  text-shadow: 2px 2px 0 var(--ink);
  margin: 10px 0 4px;
}
.hero .dates {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: bold;
  padding: 4px 14px;
  margin-top: 8px;
  transform: rotate(1deg);
}

/* ---------- White "brochure page" boxes ---------- */
.panel {
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);  /* hard, chunky shadow */
  padding: 26px;
  margin: 34px 0;
  position: relative;
}
.panel.warning { background: var(--yellow); }
.panel.warning h3 { margin-top: 0; font-family: "Bungee", Impact, sans-serif; }

/* ---------- Overview tiles ---------- */
.section-title {
  font-family: "Bungee", Impact, sans-serif;
  text-align: center;
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 3px 3px 0 var(--ink);
  margin: 40px 0 10px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  padding: 10px 10px 14px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  color: var(--ink);
  font-weight: normal;
  position: relative;
  transition: transform .15s;
}
.card:nth-child(odd)  { transform: rotate(-2deg); }
.card:nth-child(even) { transform: rotate(2deg); }
.card:hover { transform: rotate(0) scale(1.04); }
.card img { width: 100%; height: 140px; object-fit: cover; border: 2px solid var(--ink); }
.card h3 { font-family: "Bungee", Impact, sans-serif; font-size: 1rem; margin: 8px 0 2px; color: var(--magenta); }
.card .tag { font-family: "Pacifico", cursive; font-size: .95rem; color: var(--purple); }

/* ---------- Yellow starburst price badge ---------- */
.burst {
  position: absolute;
  width: 132px;
  height: 132px;
  background: var(--yellow);
  /* star shape with 16 spikes */
  clip-path: polygon(100.0% 50.0%, 87.3% 57.4%, 96.2% 69.1%, 81.6% 71.1%, 85.4% 85.4%, 71.1% 81.6%, 69.1% 96.2%, 57.4% 87.3%, 50.0% 100.0%, 42.6% 87.3%, 30.9% 96.2%, 28.9% 81.6%, 14.6% 85.4%, 18.4% 71.1%, 3.8% 69.1%, 12.7% 57.4%, 0.0% 50.0%, 12.7% 42.6%, 3.8% 30.9%, 18.4% 28.9%, 14.6% 14.6%, 28.9% 18.4%, 30.9% 3.8%, 42.6% 12.7%, 50.0% 0.0%, 57.4% 12.7%, 69.1% 3.8%, 71.1% 18.4%, 85.4% 14.6%, 81.6% 28.9%, 96.2% 30.9%, 87.3% 42.6%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Bungee", Impact, sans-serif;
  color: #e00034;
  font-size: .82rem;
  line-height: 1.15;
  padding: 18px;
  transform: rotate(12deg);
  animation: pulse 1.6s ease-in-out infinite;  /* gently "throbs" to grab attention */
}
.burst b { font-size: 1.15rem; display: block; }
@keyframes pulse { 50% { transform: rotate(12deg) scale(1.08); } }
.option > .burst { width: 165px; height: 165px; padding: 30px; font-size: .78rem; top: -50px; right: -34px; }
.card .burst { width: 86px; height: 86px; font-size: .62rem; padding: 10px; top: -26px; right: -22px; }
.card .burst b { font-size: .8rem; }

/* ---------- One big section per destination ---------- */
.option { scroll-margin-top: 20px; }
.number {
  display: inline-block;
  background: var(--magenta);
  color: #fff;
  font-family: "Bungee", Impact, sans-serif;
  padding: 2px 12px;
  border: 3px solid var(--ink);
  transform: rotate(-3deg);
}
.option h2 {
  font-family: "Bungee", Impact, sans-serif;
  font-size: clamp(1.4rem, 3.6vw, 2.1rem);
  line-height: 1.15;
  margin: 10px 140px 2px 0;   /* right margin keeps the title clear of the starburst */
}
.option .tagline {
  font-family: "Pacifico", cursive;
  color: var(--purple);
  font-size: 1.3rem;
  margin: 0 0 16px;
}

/* Photos styled as tilted snapshots with a strip of tape on top */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 10px 0 24px;
}
.gallery figure {
  margin: 0;
  background: #fff;
  padding: 8px 8px 6px;
  box-shadow: 3px 4px 10px rgba(0,0,0,.35);
  position: relative;
  transition: transform .2s;
}
.gallery figure:nth-child(1) { transform: rotate(-3deg); }
.gallery figure:nth-child(2) { transform: rotate(2deg) translateY(6px); }
.gallery figure:nth-child(3) { transform: rotate(-1.5deg); }
.gallery figure:hover { transform: rotate(0) scale(1.06); z-index: 2; }
.gallery figure::before {           /* the "tape" */
  content: "";
  position: absolute;
  top: -10px; left: 50%;
  width: 70px; height: 20px;
  margin-left: -35px;
  background: rgba(255, 230, 0, .75);
  transform: rotate(-4deg);
}
.gallery img { width: 100%; height: 190px; object-fit: cover; }
.gallery figcaption {
  font-family: "Chalkboard SE", "Comic Sans MS", "Comic Neue", cursive;
  font-size: .85rem;
  text-align: center;
  margin-top: 4px;
}

/* "Trip facts" box: key numbers at a glance */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 3px solid var(--ink);
  margin-bottom: 18px;
}
.facts div { padding: 8px 10px; border-right: 3px solid var(--ink); background: #fff; }
.facts div:last-child { border-right: none; }
.facts small {
  display: block;
  font-family: "Bungee", Impact, sans-serif;
  font-size: .7rem;
  color: var(--magenta);
}

/* Section headings inside an option, as slanted colour bars */
h4 {
  display: inline-block;
  font-family: "Bungee", Impact, sans-serif;
  font-size: 1rem;
  font-weight: normal;
  color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--magenta));
  padding: 3px 12px;
  margin: 18px 0 6px;
  transform: skewX(-8deg);
}
ul { margin: 4px 0; padding-left: 22px; }
li { margin-bottom: 5px; }

/* Pros ("Why you'll love it") and cons ("The small print") side by side */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.love, .small-print { padding: 4px 14px 12px; border: 3px dashed var(--ink); }
.love { background: #e7fff4; }
.small-print { background: #fff0f5; font-size: .9rem; }

/* ---------- "Meet your VIP travellers": the two dog cards ---------- */
.vips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 10px; }
.vip {
  display: flex;
  flex-direction: column;     /* photo on top, text below */
  gap: 12px;
  align-items: center;
  text-align: center;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: 14px;
}
.vip:nth-child(1) { transform: rotate(-1deg); }
.vip:nth-child(2) { transform: rotate(1deg); }
.vip:nth-child(3) { transform: rotate(-1.5deg); }
.vip img, .no-photo {
  width: 160px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;            /* stops the photo from getting squashed */
  border: 6px solid #fff;
  box-shadow: 2px 3px 8px rgba(0,0,0,.4);
  transform: rotate(-4deg);
}
/* Mufík's "photo not available" placeholder */
.no-photo {
  background: repeating-linear-gradient(45deg, #222 0 12px, #2c2c2c 12px 24px);
  color: #fff;
  font-family: "Bungee", Impact, sans-serif;
  font-size: .95rem;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px;
}
.no-photo small { font-family: "Chalkboard SE", "Comic Sans MS", cursive; font-size: .75rem; margin-top: 8px; color: var(--yellow); }
.vip h3 { font-family: "Bungee", Impact, sans-serif; font-size: 1.6rem; margin: 0; color: var(--magenta); }
.vip .role { font-family: "Pacifico", cursive; color: var(--purple); }
.vip p { margin: 6px 0 0; font-size: .9rem; }

/* Fake dog reviews (TV-shopping style testimonials), with the dog's photo on the left */
.review {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 18px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 12px 16px;
  font-family: "Chalkboard SE", "Comic Sans MS", "Comic Neue", cursive;
  position: relative;
}
.review-pic {
  width: 120px;
  height: 140px;
  object-fit: cover;
  flex-shrink: 0;
  border: 5px solid #fff;
  box-shadow: 2px 3px 8px rgba(0,0,0,.4);
  transform: rotate(-3deg);
}
.review .stars { color: var(--orange); font-size: 1.3rem; letter-spacing: 2px; }
.review .who { display: block; text-align: right; font-weight: bold; }
.review .verdict { font-family: Verdana, sans-serif; font-size: .9rem; margin-top: 8px; border-top: 2px dotted #999; padding-top: 6px; }

/* Price + "Book now" row */
.price-row { display: flex; align-items: center; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.price-row p { flex: 1; min-width: 240px; margin: 0; }
.stamp {
  font-family: "Bungee", Impact, sans-serif;
  color: #e00034;
  border: 5px double #e00034;
  padding: 6px 14px;
  transform: rotate(-10deg);
  opacity: .85;
  text-align: center;
  line-height: 1.1;
}
.stamp small { display: block; font-family: Verdana, sans-serif; font-size: .6rem; }

/* Link buttons – chunky 90s "click here" buttons */
.links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.links a {
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 5px 14px;
  text-decoration: none;
  font-size: .85rem;
}
.links a:hover { background: var(--magenta); color: #fff; }
.links a:active { transform: translate(3px, 3px); box-shadow: none; }

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
th, td { border: 2px solid var(--ink); padding: 7px 9px; text-align: left; }
th { background: var(--purple); color: #fff; font-family: "Bungee", Impact, sans-serif; font-weight: normal; font-size: .8rem; }
tr:nth-child(even) td { background: #fff7cc; }

/* ---------- Footer ---------- */
/* Solid dark box behind the footer text, so the dotted background doesn't make it hard to read */
footer {
  color: #f2f2f2;
  font-size: .8rem;
  background: rgba(17, 17, 17, .92);
  border: 4px solid var(--ink);
  box-shadow: 10px 10px 0 var(--magenta);
  padding: 16px 22px;
  max-width: 988px;   /* same width as the boxes above it */
  margin: 0 auto 40px;
}
footer a { color: var(--yellow); font-weight: normal; }
.counter {
  display: inline-block;
  font-family: "Courier New", monospace;
  background: var(--ink);
  color: #39ff14;           /* neon green digits */
  padding: 2px 8px;
  letter-spacing: 3px;
  border: 2px inset #888;
  text-shadow: none;
}
.credits { columns: 2; padding-left: 16px; }

/* Bottom navigation bar and swipe hint: hidden on computers, shown on phones (see below) */
.bottom-nav, .swipe-hint { display: none; }


/* ============================================================
   PHONES (screens up to 700 px wide) – the main target.
   Everything below only applies on small screens.
   ============================================================ */
@media (max-width: 700px) {
  body { font-size: 15px; padding-bottom: 70px; }  /* room for the bottom bar */
  .wrap { padding: 0 12px; }

  /* Title area: a bit smaller */
  .hero { padding: 22px 0 4px; }
  .hero .dates { font-size: .8rem; }
  .section-title { font-size: 1.25rem; margin: 26px 0 12px; }

  /* White boxes: less padding, smaller shadow so they fit the narrow screen */
  .panel { padding: 16px 14px; margin: 26px 0; box-shadow: 5px 5px 0 var(--ink); border-width: 3px; }

  /* Dog cards: small photo on the left, text on the right */
  .vips { grid-template-columns: 1fr; gap: 14px; }
  .vip {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 10px;
    box-shadow: 5px 5px 0 var(--ink);
  }
  .vip img, .no-photo { width: 84px; height: 100px; border-width: 4px; }
  .no-photo { font-size: .6rem; padding: 6px; }
  .no-photo small { font-size: .55rem; }
  .vip h3 { font-size: 1.15rem; }
  .vip .role { font-size: .85rem; }
  .vip p { font-size: .82rem; margin-top: 2px; }

  /* Overview: compact menu, one row per destination (photo left, info right) */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card {
    display: grid;
    grid-template-columns: 96px 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 8px;
    font-size: .85rem;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .card:nth-child(odd), .card:nth-child(even) { transform: none; }
  .card img { width: 96px; height: 76px; grid-row: 1 / span 3; }
  .card h3 { margin: 0; font-size: .9rem; padding-right: 54px; }
  .card .burst { width: 64px; height: 64px; font-size: .48rem; padding: 6px; top: -12px; right: -8px; }
  .card .burst b { font-size: .68rem; }

  /* Big price starburst on each destination: smaller and kept inside the screen */
  .option > .burst { width: 104px; height: 104px; padding: 16px; font-size: .58rem; top: -30px; right: -4px; }
  .option > .burst b { font-size: .85rem; }
  .option h2 { margin-right: 84px; font-size: 1.35rem; }
  .option .tagline { font-size: 1.05rem; }

  /* Photos: swipe sideways, one big photo at a time */
  .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;   /* photos "click" into place while swiping */
    gap: 12px;
    margin: 6px -14px 0;             /* lets photos run to the box edges */
    padding: 14px 14px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 84%; scroll-snap-align: center; }
  .gallery figure:nth-child(n) { transform: rotate(-1deg); }
  .gallery figure:hover { transform: rotate(-1deg); }
  .gallery img { height: 200px; }
  .swipe-hint {
    display: block;
    text-align: center;
    font-size: .75rem;
    color: #777;
    margin: 0 0 14px;
  }

  /* Facts box: 2 × 2 grid */
  .facts { grid-template-columns: 1fr 1fr; font-size: .85rem; }
  .facts div:nth-child(2) { border-right: none; }
  .facts div:nth-child(-n+2) { border-bottom: 3px solid var(--ink); }

  /* Pros / cons and reviews stacked */
  .pc { grid-template-columns: 1fr; gap: 12px; }
  .love, .small-print { font-size: .9rem; }

  /* Review: small photo floats left, text wraps around it */
  .review { display: block; padding: 12px; font-size: .9rem; }
  .review-pic { float: left; width: 76px; height: 92px; margin: 0 12px 6px 0; border-width: 4px; }
  .review .stars { font-size: 1.05rem; display: block; }
  .review .verdict { clear: both; }

  /* Price row: stamp sits under the text */
  .price-row { gap: 10px; }
  .stamp { font-size: .85rem; }

  /* Link buttons: bigger and easier to tap */
  .links a { flex: 1 1 auto; text-align: center; padding: 10px 12px; font-size: .9rem; }

  /* Comparison table becomes one small card per destination */
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  table { background: none; }
  tr.head { display: none; }
  /* each destination = a card with its 6 values in two columns */
  tr { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); margin-bottom: 12px; background: #fff; }
  tr:nth-child(even) td { background: none; }
  td { width: auto; border: none; border-bottom: 1px dotted #bbb; padding: 5px 8px; display: flex; justify-content: space-between; gap: 6px; font-size: .82rem; }
  td.name { grid-column: 1 / -1; background: var(--purple) !important; color: #fff; }
  td[data-label]::before { content: attr(data-label); font-weight: bold; color: var(--magenta); }

  /* Footer */
  footer { box-shadow: 5px 5px 0 var(--magenta); padding: 14px; margin: 0 12px 30px; }
  .credits { columns: 1; }

  /* Bottom navigation bar, stuck to the bottom of the screen */
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 10;
    background: var(--ink);
    border-top: 3px solid var(--magenta);
    padding-bottom: env(safe-area-inset-bottom);  /* keeps clear of the iPhone home bar */
  }
  .bottom-nav a {
    flex: 1;
    text-align: center;
    color: var(--yellow);
    text-decoration: none;
    font-family: "Bungee", Impact, sans-serif;
    font-size: 1.05rem;
    font-weight: normal;
    padding: 6px 0 5px;
    line-height: 1.1;
    border-right: 1px solid #333;
  }
  .bottom-nav a:last-child { border-right: none; }
  .bottom-nav a span { display: block; font-family: Verdana, sans-serif; font-size: .6rem; color: #ddd; }
  .bottom-nav a:active { background: var(--magenta); }
}

/* People who switch off animations in their system settings get a still page */
@media (prefers-reduced-motion: reduce) {
  .ticker span, .burst { animation: none; }
}
