/* ==========================================================
   ARZ Haven - main stylesheet
   Change the colors and fonts in the :root block below and the
   whole site updates. Everything else uses these variables.
   ========================================================== */
 
:root {
  /* Colors (warm neutrals picked to suit the room photos) */
  --bg: #f6f4f1;          /* page background */
  --surface: #ffffff;     /* cards, header, contact box */
  --text: #111111;        /* main text */
  --muted: #6b6b6b;       /* secondary text */
  --accent: #111111;      /* buttons, hover lines */
  --accent-dark: #111111; /* accent text and hover */
  --line: #e4e1dc;        /* thin borders */
  --whatsapp: #111111;    /* WhatsApp button */
  --whatsapp-dark: #333333;
 
  /* Shape */
  --radius: 4px;
  --shadow: 0 6px 24px rgba(43, 38, 34, 0.08);
 
  /* Fonts (system fonts: fast, nothing to download) */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Didot", "Bodoni 72","Playfair Display", Georgia, serif;
}
 
/* ---------- Basics ---------- */
 
*,
*::before,
*::after {
  box-sizing: border-box; /* padding no longer makes things wider than set */
}
 
html {
  scroll-behavior: smooth; /* nav links glide instead of jumping */
}
 
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}
 
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}
 
img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;  /* same shape for every photo; try 4 / 3 for wider */
  object-fit: cover;    /* crop to fit instead of stretching */
}
 
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;  /* keyboard users can see where they are */
}
 
/* ---------- Header and navigation ---------- */
 
header {
  position: sticky;     /* stays at the top while scrolling */
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;      /* wraps onto two lines on small phones */
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px clamp(16px, 5vw, 64px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
 
header h1 {
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
 
nav {
  display: flex;
  gap: 22px;
}
 
nav a {
  padding: 4px 0;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}
 
nav a:hover {
  border-bottom-color: var(--accent);
}
 
/* ---------- Main content ---------- */
 
main {
  max-width: 1100px;    /* stops the page stretching too wide on laptops */
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 32px);
}
 
/* The intro sentence under the header */
main > p:first-of-type {
  max-width: 60ch;
  margin: 48px auto 56px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  text-align: center;
}
 
section {
  margin-bottom: 64px;
  scroll-margin-top: 90px; /* keeps headings clear of the sticky header */
}
 
section h2 {
  margin-bottom: 24px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}
 
/* ---------- Property cards ---------- */
 
#properties {
  display: grid;
  /* As many columns as fit, each at least 280px wide: 1 on phones, 2-3 on laptops */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
 
#properties h2 {
  grid-column: 1 / -1;  /* heading spans the full row above the cards */
  margin-bottom: 0;
}
 
article {
  display: flex;
  flex-direction: column;
  overflow: hidden;     /* clips the photo to the rounded corners */
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
 
article h3 {
  padding: 20px 20px 0;
  font-size: 1.1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
 
article p {
  margin: 6px 20px 0;
  color: var(--muted);
}
 
article p:last-of-type {
  flex-grow: 1;         /* pushes the button to the bottom so cards line up */
}
 
article a {
  align-self: flex-start;
  margin: 18px 20px 22px;
  padding: 10px 22px;
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  transition: background 0.2s, color 0.2s;
}
 
article a:hover {
  background: var(--accent);
  color: #fff;
}
 
/* ---------- Contact ---------- */
 
#contact {
  padding: 40px clamp(20px, 5vw, 48px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
 
#contact h2 {
  margin-bottom: 12px;
}
 
#contact p {
  margin: 0 0 20px;
  color: var(--muted);
}
 
#contact a {
  display: inline-block;
  padding: 14px 30px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}
 
#contact a:hover {
  background: var(--whatsapp-dark);
}
 
/* ---------- Footer ---------- */
 
footer {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
 
footer a {
  color: var(--accent-dark);
  display: inline-flex;
  margin-left: 12px;
}

 footer img{
  width: 22px;
  height: 22px;
  aspect-ratio: auto;
  display: inline-block;
 }
 
/* ---------- Accessibility ---------- */
 
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto; /* respect people who turn animations off */
  }
}

/* ---------- Detail pages ---------- */

main > h2 {
  margin-top: 48px;
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.facts {
  max-width: 700px;
  margin: 0 auto 32px;
  padding: 14px 0;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

main > img {
  max-width: 520px;
  margin: 0 auto 56px;
  border-radius: var(--radius);
}

main > section > h3,
#amenities-container >h3 {
  margin: 24px 0 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

main ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

main li {
  position: relative;
  padding: 6px 0 6px 28px;
}

main li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

@media (min-width: 700px) {
  main ul {
    columns: 2;
    column-gap: 40px;
  }
  main li {
    break-inside: avoid;
  }
}

#gallery {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 10px;
  max-width: 900px;
  margin: 0 auto 56px;
}

#gallery img {
  aspect-ratio: 1/1;
  border-radius: 8px;
}

#gallery img:first-child {
  grid-column: 1/span 2;
  grid-row: 1/span 2;
}

@media (max-width: 600px) {
  #gallery {
    grid-template-columns: repeat(2,1fr);
  }
  #gallery img:first-child {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 4/3;
    height: auto;
  }
}

#price-line {
  margin: -16px 0 24px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

#date-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: 24px auto 12px;
  text-align: left;
}

#date-picker label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#date-picker input {
  width: 100%;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
}

#price-summary {
  min-height: 1.6em;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

article .price {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.clickable-img{
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.clickable-img:hover{
  transform: scale(1.02);
  opacity: 0.95;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.modal.hidden{
  display: none !important;
}

#modal-img {
  max-width: min(92vw, 1000px);
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.7);
  touch-action: none;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  aspect-ratio: auto;
}


#close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

details {
    background: #fdfdfd;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

details summary {
    font-weight: 600;
    font-size: 1rem;
    outline: none;
}

details ul {
    margin-top: 10px;
    padding-left: 20px;
    cursor: default;
}