/* SL INN — Your Home in a Garden */

:root {
  --bg: #f7f3e9;        /* cream background */
  --bg-2: #efe9dd;      /* soft cream gradient end */
  --text: #2b2b2b;      /* dark text for contrast */
  --muted: #6d6a63;     /* muted copy tone */
  --primary: #69c38a;   /* garden green */
  --primary-2: #2ea46f; /* deeper green */
  --accent: #8b4b5b;    /* wine accent retained for highlights */
  --card: #ffffff;      /* light cards */
  --border: #e6dcc8;    /* soft borders */
  --shadow: rgba(0, 0, 0, 0.12);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 380px at 12% 0%, #fffdf7 0%, var(--bg) 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  font-family: var(--font-body);
  line-height: 1.7;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center; /* center brand for dashboard vibe */
  padding: 14px 0;
}
.brand { display: grid; gap: 2px; place-items: center; text-align: center; }
.logo-row { display: inline-flex; align-items: center; gap: 10px; }
.leaf-mark { width: 28px; height: 28px; color: #4f9c6f; }
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.tag { font-size: 0.9rem; color: var(--muted); }

.actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  background: var(--card);
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%); }
.btn.outline { background: transparent; border-color: var(--border); }
.btn.ghost { background: rgba(255,255,255,0.10); color: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 85vh; }
.hero .container { position: relative; padding: 64px 0 80px; }
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.2) contrast(1.06) brightness(1.12);
}
.hero-bg-img[src=""] { display: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.8) 60%);
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 8px 0;
}
.hero .subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.95); margin: 0 0 6px; font-family: var(--font-heading); }
.hero .location { color: rgba(255,255,255,0.85); margin-bottom: 18px; font-family: var(--font-heading); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-decor { position: absolute; inset: 0; pointer-events: none; }
.leaf {
  --size: calc(100px + (var(--i) * 12px));
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: calc((var(--i) * 18%) + 2%);
  top: calc((var(--i) * 7%) + 8%);
  background:
    radial-gradient(70% 70% at 30% 20%, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(100% 100% at 50% 50%, #6ccf99 0%, #1f4a38 100%);
  border-radius: 60% 40% 50% 50% / 50% 50% 40% 60%;
  filter: drop-shadow(0 8px 16px var(--shadow));
  opacity: 0.15;
  animation: sway 8s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(6px); }
}

/* Intro & Features */
.intro { padding: 36px 0 8px; }
.lead { color: var(--muted); max-width: 70ch; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.feature-card .icon { font-size: 1.6rem; }

/* Cozy room details */
.intro .details {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px 16px;
  padding: 18px;
  margin: 14px 0 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--shadow);
}
.intro .details li { position: relative; padding-left: 22px; }
.intro .details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

/* Rooms */
.rooms { padding: 36px 0; }
.rooms h2 { margin-bottom: 14px; }
.rooms-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.room-card {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 14px;
  align-items: stretch;
}
.link-card { text-decoration: none; color: inherit; }
.link-card:hover .info { transform: translateY(-2px); }
.link-card:hover .media { transform: translateY(-2px); }
.link-card .media, .link-card .info { transition: transform 160ms ease; }
.media {
  position: relative;
  background: linear-gradient(135deg, #ffffff, #faf6ee);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px var(--shadow);
}
.media::after {
  content: none;
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(0,0,0,0.2);
  padding: 6px 10px;
  border-radius: 999px;
}
.media-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.media-img[src=""] { display: none; }
.info .price { font-weight: 700; }
.info .price span { color: var(--muted); font-weight: 600; margin-left: 6px; }
.details { padding-left: 18px; margin: 10px 0 0; color: var(--muted); }

/* Cozy gallery */
.gallery.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.gallery.thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.gallery.thumbs img:hover { transform: translateY(-4px); box-shadow: 0 14px 28px var(--shadow); }

/* Extras */
.extras { padding: 36px 0; }
.extras-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.extra .price { font-weight: 700; }
.note { color: var(--muted); }

/* Contact */
.contact { padding: 36px 0 60px; }
/* New tile-based contact layout */
.contact-tiles .contact-lead { color: var(--muted); margin: -6px 0 18px; }
.contact-tiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.tile.card { display: grid; gap: 8px; }
.tile h3 { margin: 0; }
.icon-badge { width: 42px; height: 42px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #f3efe6; border: 1px solid var(--border); }
.tile-actions { margin-top: 6px; display: flex; gap: 10px; align-items: center; }
.tile-actions .btn { flex: 1 1 160px; }
.tile.wide { grid-column: 1 / -1; }
.map-tile .map-frame { height: 380px; }
.contact .btn { border-bottom: 0; }
.contact-tiles .btn.ghost { color: var(--text); border-color: var(--border); background: transparent; }
.phone.nowrap, .nowrap { white-space: nowrap; }
.contact a { color: var(--text); text-decoration: none; border-bottom: 1px dashed var(--border); }
.contact a:hover { border-bottom-color: var(--accent); }
.map-actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.btn.small { padding: 8px 12px; font-size: 0.9rem; }

/* Vibrant tile backgrounds */
.contact-tiles-grid .tile.card.address-tile {
  background: linear-gradient(135deg, #d9f8e6 0%, #bdf0d8 100%);
  border-color: rgba(0,0,0,.06);
}
.contact-tiles-grid .tile.card.contact-tile {
  background: linear-gradient(135deg, #ffe5ee 0%, #ffcfe2 100%);
  border-color: rgba(0,0,0,.06);
}
.contact-tiles-grid .tile.card.facebook-tile {
  background: linear-gradient(135deg, #e6f0ff 0%, #cfe4ff 100%);
  border-color: rgba(0,0,0,.06);
}

/* Facebook button with logo */
.btn.fb {
  background: #1877f2;
  color: #fff;
  border-color: transparent;
}
.btn.fb:hover { filter: brightness(1.05); }
.btn.fb .fb-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
  color: #fff;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  backdrop-filter: blur(8px) saturate(120%);
}
.card:hover { transform: translateY(-4px) rotateZ(0.2deg); box-shadow: 0 14px 28px var(--shadow); }

/* Reveal on scroll */
.reveal-on-scroll { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11,31,23,0.6);
}
.site-footer .container { padding: 16px 0; text-align: center; color: var(--card); }

/* Responsive */
@media (max-width: 1000px) {
  .room-card { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact-tiles-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-section { padding: 24px 0 60px; }
.gallery.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery img {
  width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3;
  border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 6px 14px var(--shadow);
  cursor: zoom-in;
}
.gallery img[src=""] { display: none; }

.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  display: none; align-items: center; justify-content: center; z-index: 100;
}
.lightbox.visible { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 10px 24px var(--shadow); }
.lightbox .close { position: absolute; top: 18px; right: 18px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; cursor: pointer; color: var(--text); }

@media (max-width: 900px) {
  .gallery.thumbs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery.thumbs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .actions { display: none; }
  .rooms-list { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .extras-grid { grid-template-columns: 1fr; }
  .contact-modern-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* --- Added: Compact layouts and hero video --- */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 12px; }
.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  font-weight: 600;
}

.extras-compact { display: flex; flex-wrap: wrap; gap: 10px; }
.extra-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  font-weight: 600;
}

.map { margin-top: 14px; }
.map-frame { position: relative; width: 100%; height: 320px; border-radius: 16px; overflow: hidden; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Card & Contact Animations */
.card { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
.card.visible { opacity: 1; transform: translateY(0); }

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-tiles-grid .tile.card.visible { animation: slideUpFade 600ms ease both; }
.contact-tiles-grid .tile.card.visible:nth-child(1) { animation-delay: 60ms; }
.contact-tiles-grid .tile.card.visible:nth-child(2) { animation-delay: 120ms; }
.contact-tiles-grid .tile.card.visible:nth-child(3) { animation-delay: 180ms; }
.contact-tiles-grid .tile.card.visible:nth-child(4),
.contact-tiles-grid .tile.card.wide.visible { animation-delay: 240ms; }

.tile.card:hover .icon-badge { transform: translateY(-4px) scale(1.06); }
.icon-badge { transition: transform 220ms ease; }

/* Reviews */
.reviews { padding: 36px 0 60px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-name { font-weight: 600; color: var(--text); }
.avatar { width: 36px; height: 36px; border-radius: 999px; background: linear-gradient(135deg, #5a1b2e, #8b3a4a); color: #fff; display: grid; place-items: center; font-weight: 700; }
.review-card .stars { color: #e6b800; letter-spacing: 2px; font-weight: 700; }
.review-card p { margin: 8px 0 0; }

/* --- Luxury vibe adjustments (Fili-inspired but keeping structure) --- */
/* Headings: refined Playfair with accent divider */
.container > h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin: 0 0 8px 0;
  position: relative;
}
.container > h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  margin-top: 8px;
}

/* Hero: more airy spacing and centered content */
.hero .container { padding: 90px 0 110px; }
.hero-content { text-align: center; color: #fff; }
.hero-content h1 { text-shadow: none; }
.hero .subtitle, .hero .location { text-shadow: none; }
.hero .subtitle { letter-spacing: 0.02em; }
.hero-cta { justify-content: center; }
.hero-overlay { background: radial-gradient(60% 60% at 20% 0%, rgba(30, 70, 55, 0.12) 0%, rgba(11, 31, 23, 0.22) 65%); }

/* Buttons: elegant accent primary */
.btn { box-shadow: 0 4px 12px var(--shadow); }
.btn.primary {
  background: linear-gradient(90deg, #e8f2ec 0%, #cfe6d8 100%);
  color: #1b1b1b;
  border: 1px solid rgba(0,0,0,0.08);
}
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.60);
  color: #fff;
}

/* Cards: subtle polish */
.card {
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px var(--shadow);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px var(--shadow); }

/* Room cards: elevate headings and hover smoothness */
.room-card .info h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.01em;
}
.link-card .media, .link-card .info { transition: transform 220ms ease, box-shadow 220ms ease; }
.link-card:hover .media, .link-card:hover .info { box-shadow: 0 12px 26px var(--shadow); }

/* Badges and Extras: lighter shadows for minimal look */
.badge, .extra-pill { box-shadow: 0 2px 8px var(--shadow); }

/* Footer: calmer tone */
.site-footer { background: rgba(11,31,23,0.5); }
/* Dashboard row */
.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 12px;
}
.dashboard-nav .menu { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.dashboard-nav .menu a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  position: relative;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.02);
  animation: navFadeUp 600ms ease both;
}
.dashboard-nav .menu a:hover { color: var(--text); background: rgba(0,0,0,0.05); }
.dashboard-nav .menu a::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.dashboard-nav .menu a:hover::after { transform: scaleX(1); }

@keyframes navFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dashboard-nav .menu a:nth-child(1) { animation-delay: 60ms; }
.dashboard-nav .menu a:nth-child(2) { animation-delay: 120ms; }
.dashboard-nav .menu a:nth-child(3) { animation-delay: 180ms; }
.dashboard-nav .menu a:nth-child(4) { animation-delay: 240ms; }
.dashboard-nav .menu a:nth-child(5) { animation-delay: 300ms; }
.dashboard-nav .menu a:nth-child(6) { animation-delay: 360ms; }
.dash-actions { display: flex; align-items: center; gap: 10px; }
.btn.book {
  background: #5a1b2e; /* deep wine tone for premium feel */
  color: #fff;
}
.btn.book:hover { filter: brightness(1.05); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { transform: translateY(-2px); }