:root {
  --navy: #0f3247;
  --navy-2: #164a66;
  --teal: #0f6f8f;
  --sand: #f6f1e7;
  --sand-2: #efe6d4;
  --ink: #1f2a33;
  --muted: #5a6b77;
  --line: #e3dcce;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 50, 71, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

h1, h2, h3, .serif { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1100px; margin: 0 auto;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--ink); }
.brand .name { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; letter-spacing: 0.5px; }
.brand .sub { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--teal); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--teal); }
.btn {
  display: inline-block; background: var(--navy); color: var(--white) !important;
  padding: 11px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: var(--teal); }
.btn:active { transform: scale(0.98); }
.btn.big { padding: 14px 32px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--navy) !important; border: 1.5px solid var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white) !important; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .art { width: 100%; height: 520px; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(15,50,71,0.55) 0%, rgba(15,50,71,0.15) 60%, transparent 100%);
}
.hero-content { max-width: 1100px; margin: 0 auto; padding: 0 24px; width: 100%; color: var(--white); }
.hero-content .eyebrow { letter-spacing: 3px; text-transform: uppercase; font-size: 12px; color: #cfe6f2; margin-bottom: 12px; }
.hero-content h1 { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.1; margin-bottom: 16px; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
.hero-content p { font-size: 18px; max-width: 460px; margin-bottom: 28px; color: #eaf3f8; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow { letter-spacing: 3px; text-transform: uppercase; font-size: 12px; color: var(--teal); font-weight: 600; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 8px 0 12px; color: var(--navy); }
.section-head p { color: var(--muted); }

/* ---------- Apartment cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,50,71,0.16); }
.card img { height: 220px; width: 100%; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 22px; color: var(--navy); margin-bottom: 4px; }
.card-body .tagline { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.card-facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.card-facts span { display: inline-flex; align-items: center; gap: 6px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 15px; color: var(--muted); }
.price b { font-size: 22px; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .icon { font-size: 28px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--muted); }

.band { background: var(--navy); color: var(--white); }
.band .section-head h2, .band h2 { color: var(--white); }
.band .section-head .eyebrow { color: #8fc6dd; }
.band .section-head p { color: #bcd6e6; }

/* ---------- Apartment detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 400px; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.thumbs img { height: 100px; width: 100%; object-fit: cover; border-radius: 10px; cursor: pointer; opacity: 0.75; transition: opacity 0.2s; border: 2px solid transparent; }
.thumbs img:hover, .thumbs img.active { opacity: 1; border-color: var(--teal); }

.detail-info h1 { color: var(--navy); font-size: 34px; margin-bottom: 6px; }
.detail-info .tagline { color: var(--muted); margin-bottom: 18px; }
.amenities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 18px 0; padding: 0; list-style: none; }
.amenities li { font-size: 14px; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.amenities li::before { content: '✓'; color: var(--teal); font-weight: 700; }

/* ---------- Booking box ---------- */
.booking-box {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; position: sticky; top: 96px;
}
.booking-box h3 { color: var(--navy); font-size: 20px; margin-bottom: 4px; }
.booking-box .per-night { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14px; background: var(--sand); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-summary { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; font-size: 14px; }
.price-summary .row { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); }
.price-summary .total { font-weight: 700; color: var(--navy); font-size: 17px; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-top: 14px; display: none; }
.msg.error { display: block; background: #fdecec; color: #a33; }
.msg.success { display: block; background: #e8f6ee; color: #1c6b3c; }

/* ---------- Contact / footer ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; text-align: center; }
footer { background: var(--navy); color: #bcd6e6; padding: 36px 0; font-size: 14px; }
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
footer a { color: #cfe6f2; }

/* ---------- Admin ---------- */
.admin-wrap { max-width: 960px; margin: 48px auto; padding: 0 24px; }
table.bookings { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: 14px; }
table.bookings th, table.bookings td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.bookings th { background: var(--navy); color: var(--white); font-weight: 600; font-size: 13px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.pending { background: #fff3d6; color: #8a6100; }
.badge.confirmed { background: #e8f6ee; color: #1c6b3c; }
.badge.cancelled { background: #fdecec; color: #a33; }
.mini-btn { padding: 6px 12px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px; font-weight: 600; margin-right: 6px; }
.mini-btn.ok { background: #1c6b3c; color: #fff; }
.mini-btn.no { background: #fdecec; color: #a33; }

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .booking-box { position: static; }
  .nav-links { display: none; }
  .hero .art { height: 420px; }
}
