/*───────────────────────────────────────────────────────────────────┐
│  0. Vendor & Font imports                                         │
└───────────────────────────────────────────────────────────────────*/
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.16/dist/tailwind.min.css');
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');

/*───────────────────────────────────────────────────────────────────┐
│  1. Global variables & helpers                                    │
│     --nav-h      : base navbar height (auto-tweaks for desktop)   │
│     --nav-extra  : open-burger extra height (set in nav.js)       │
└───────────────────────────────────────────────────────────────────*/
:root {
  --nav-h: 60px;
  --nav-extra: 0px;
}

@media (min-width:768px) {
  :root {
    --nav-h: 72px;
  }
}

/*───────────────────────────────────────────────────────────────────┐
│  2. Fixed viewport background (detached from app boxes)           │
└───────────────────────────────────────────────────────────────────*/
body {
  min-height: 100dvh;
}

/* Edge-fill layer */
body::before{
  content:"";
  position: fixed; inset: 0; z-index: -2;
  background-image: url("../public/images/background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;              /* fills the viewport */
  filter: blur(10px);
  transform: scale(1.06);              /* hide blur edge bleed */
  opacity: .35;                         /* subtle backdrop */
  background-color: #FFFFF0;            /* behind the blur */
}

body::after{
  content:"";
  position: fixed; inset: 0; z-index: -1;
  background-image: url("../public/images/background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;             /* ⬅️ no cropping */
  background-color: transparent;
}


@supports (background-image: image-set(url("../public/images/background-mobile-640.png") 1x)){
  body::before{
    background-image: image-set(
      url("../public/images/background-mobile-640.png") 1x,
      url("../public/images/background-tablet-1024.png") 1.5x,
      url("../public/images/background.png") 2x,
      url("../public/images/background-original.png") 3x
    );
  }
  body::after{
    background-image: image-set(
      url("../public/images/background-mobile-640.png") 1x,
      url("../public/images/background-tablet-1024.png") 1.5x,
      url("../public/images/background.png") 2x,
      url("../public/images/background-original.png") 3x
    );
  }
}

/*───────────────────────────────────────────────────────────────────┐
│  3. Typography (clamp keeps it fluid)                             │
└───────────────────────────────────────────────────────────────────*/
h1 {
  margin-top: 1vh;
  font-size: clamp(2.25rem, 6vw + .5rem, 4rem);
  font-family: 'Alex Brush', cursive;
  color: transparent;
  -webkit-text-stroke: .1px rgba(206, 130, 16, .8);
  background: linear-gradient(45deg, #ffd700, #ffcc00, #ffd700, #ffcc00);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sparkle 1.5s infinite linear;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
  text-align: center;
}

h2 {
  font-size: clamp(1.5rem, 4vw + .5rem, 2.5rem);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}

.p1 {
  font-size: clamp(1.1rem, 2.7vw + .3rem, 1.4rem);
}

.p2 {
  font-size: clamp(.95rem, 2.1vw + .25rem, 1.2rem);
}

.p3 {
  font-size: clamp(.8rem, 1.5vw + .2rem, 1rem);
}

.p1,
.p2,
.p3 {
  font-family: 'Sergio Trendy', cursive;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}

/*───────────────────────────────────────────────────────────────────┐
│  4. Navbar                                                         │
│     - fixed bar (.nav-fixed)                                       │
│     - burger overlay list (#nav-menu + .open)                      │
└───────────────────────────────────────────────────────────────────*/
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

/* mobile burger drawer */
@media (max-width:767px) {
  #nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, .95);
    border-top: 2px solid #d4af37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    padding: 1rem 0;
    display: none;
    flex-direction: column;
    gap: .75rem;
    z-index: 40;
    /* above page, below modal */
  }

  #nav-menu.open {
    display: flex;
  }
}

/* push hero content *below* nav & open burger */
.hero-content,
.honeymoon-hero {
  margin-top: calc(var(--nav-h) + var(--nav-extra));
}

.hero-bg{ background: none !important; }

/*───────────────────────────────────────────────────────────────────┐
│  5. Modal helpers                                                 │
└───────────────────────────────────────────────────────────────────*/
.modal-overlay {
  z-index: 50;
}

.modal-window {
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem;
}

.modal-close {
  flex: 0 0 auto;
  margin: 1rem auto 0;
}

/*───────────────────────────────────────────────────────────────────┐
│  6. Honeymoon Fund image helper                                   │
└───────────────────────────────────────────────────────────────────*/
.img-responsive-max {
  width: 20%;
  height: auto;
  object-fit: contain;
}

/*───────────────────────────────────────────────────────────────────┐
│  7. Order-of-the-Day layout                                       │
│     .order-wrapper : 90 vw panel, centred                         │
│     .order-table   : auto-wrapping columns                        │
└───────────────────────────────────────────────────────────────────*/
.order-wrapper {
  width: 80vw;
  max-width: 650px;
  margin: 0 auto;
}

.order-table {
  width: 100%;
  table-layout: fixed;
}

.order-table tr {
  display: flex;
}

.order-table td {
  padding: .4rem .6rem;
}

/* 30 % time | 70 % activity */
.order-table td:nth-child(1) {
  width: 30%;
  text-align: right;
}

.order-table td:nth-child(2) {
  width: 70%;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* stack on very narrow phones */
@media (max-width:479px) {
  .order-table tr {
    flex-direction: column;
  }

  .order-table td {
    width: 100%;
    text-align: center;
  }
}

/* 2-column grid on tablets / desktop */
@media (min-width:768px) {
  .order-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem 1rem;
  }

  .order-table tr {
    flex-direction: row;
  }
}

/*───────────────────────────────────────────────────────────────────┐
│  8. Buttons (unchanged from original)                             │
└───────────────────────────────────────────────────────────────────*/
.custom-button,
.custom-button2 {
  padding: .75rem 1.25rem;
  border-radius: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s;
  background: #ffd700;
  border: 2px solid #000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

.custom-button:hover,
.custom-button2:hover {
  transform: scale(1.05);
  background: #ff4500;
  color: #fff;
  background-image: url('../public/images/red-background-image.jpg');
}

.bg-button-image,
.bg-button2-image {
  background-image: url('../public/images/gold-background-image.jpg');
  background-size: cover;
  background-position: center;
}

/*───────────────────────────────────────────────────────────────────┐
│  9. Sparkle animation keyframes (unchanged)                       │
└───────────────────────────────────────────────────────────────────*/
@keyframes sparkle {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

/*───────────────────────────────────────────────────────────────────┐
│  10. Phone tweaks (< 481 px) – keeps buttons & copy proportional  │
└───────────────────────────────────────────────────────────────────*/
@media (max-width: 480px) {

  /* Hero copy tighter spacing */
  .hero-content {
    gap: .75rem;
  }

  /* Buttons: full-width & smaller type */
  .custom-button,
  .custom-button2 {
    width: 100%;
    font-size: clamp(.85rem, 4vw, 1rem);
    /* 0.85 – 1 rem */
    padding: .65rem 1rem;
  }

  /* Paragraph sizes already use clamp, but if you need more shrink: */
  .p1 {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
  }

  .p2 {
    font-size: clamp(.9rem, 4vw, 1.1rem);
  }
}

/*───────────────────────────────────────────────────────────────────┐
│  11. Landscape-phone override (≤ 450 px tall)                      │
│      – keeps copy below header & buttons proportional             │
└───────────────────────────────────────────────────────────────────*/
@media (orientation: landscape) and (max-height: 450px) {

  /* tighter hero spacing */
  .hero-content {
    gap: .5rem;
  }

  /* headline & sub-headline */
  h1 {
    font-size: clamp(1.25rem, 3.5vw, 2rem);
  }

  h2 {
    font-size: clamp(1rem, 3vw, 1.6rem);
  }

  /* body paragraphs */
  .p1 {
    font-size: clamp(.85rem, 2.8vw, 1rem);
  }

  .p2 {
    font-size: clamp(.8rem, 2.5vw, .95rem);
  }

  /* buttons: 80 % width and smaller text */
  .custom-button,
  .custom-button2 {
    width: 80%;
    font-size: clamp(.8rem, 3vw, .95rem);
    padding: .55rem 1rem;
  }
}

/*───────────────────────────────────────────────────────────────────┐
│  12. Location-page landscape-phone fix (≤ 450 px tall)            │
│      – limits image / map height and button width                 │
└───────────────────────────────────────────────────────────────────*/
@media (orientation: landscape) and (max-height: 450px) {

  /* Boutique shot or hotel photo */
  .location-img,
  img[alt~="Hotel"],
  img[alt~="Parking"] {
    max-width: 80vw;
    max-height: 45vh;
    /* never taller than half the screen */
    height: auto;
    object-fit: contain;
    /* keep aspect ratio */
    display: block;
    margin: 0 auto;
    /* centred */
  }

  /* Map container (id="map" in location.html) */
  #map {
    width: 40vw;
    height: 45vh;
    /* same as image cap */
    margin: 0 auto;
  }

  /* “The Green House Hotel” button */
  .custom-button,
  .custom-button2 {
    width: 80%;
    font-size: clamp(.8rem, 3vw, .95rem);
    /* matches hero override */
    padding: .55rem 1rem;
  }
}

/*──────────────────────────────────────────────────────────────┐
│  13. Location-page landscape-phone fix (≤ 450 px tall)        │
│      – caps map / image height & narrows button               │
└──────────────────────────────────────────────────────────────*/
@media (orientation: landscape) and (max-height: 450px) {

  /* Map */
  /* Map */
  .map-box,
  #map {
    width: 100%;
    /* fill the column, not the viewport  */
    max-width: 80vw;
    /* still prevent overflow on very wide phones */
    height: 45vh;
    margin: 0 auto;
  }
}

/* Parking or hotel photo */
.location-img {
  max-width: 80vw;
  max-height: 45vh;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0.5rem auto;
}

/* “Green House Hotel” button */
.custom-button2 {
  width: 80%;
  font-size: clamp(.8rem, 3vw, .95rem);
  padding: .55rem 1rem;
}


/*──────────────── Timeline (merged from somethingsomething) ────────────────*/
.timeline-card{ background:transparent; border-radius:.5rem; padding:1.25rem; box-shadow:0 10px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); }
.timeline-container{ max-width:650px; margin:0 auto; position:relative; }
.timeline-item{ display:flex; align-items:center; position:relative; min-height:74px; }
.timeline-line{ position:absolute; left:28px; top:0; bottom:0; width:2px; background-color:#e5e7eb; z-index:1; }
.timeline-item:first-child .timeline-line{ top:50%; }
.timeline-item:last-child .timeline-line{ bottom:50%; }
.timeline-icon{ width:56px; height:56px; flex-shrink:0; display:flex; align-items:center; justify-content:center; background-color:white; z-index:10; position:relative; border-radius:9999px; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.icon-svg,.icon-img{ width:36px; height:36px; }
.icon-svg{ stroke:#374151; stroke-width:1.5; }
.timeline-content{ margin-left:1rem; }
.timeline-time{ font-weight:600; color:#4b5563; font-size:1.05rem; }
.timeline-event{ font-size:1.15rem; font-weight:600; color:#1f2937; letter-spacing:.02em; text-transform:uppercase; }
.timeline-content .timeline-time{ text-align: left; }
@media (max-width:480px){
  .timeline-item{ min-height:66px; }
  .icon-svg,.icon-img{ width:28px; height:28px; }
  .timeline-time{ font-size:.95rem; }
  .timeline-event{ font-size:1rem; }
}

