/* Hotel Ravino — dark & gold luxury theme, matched to ravinocafe.com. */
:root {
  --bg: #0b0b0d;
  --bg-2: #131116;
  --surface: #17151b;
  --surface-2: #1e1b24;
  --ink: #f4f1ea;
  --muted: rgba(244, 242, 235, 0.62);
  --faint: rgba(244, 242, 235, 0.40);
  --gold: #c9a24b;
  --gold-light: #e4c97e;
  --gold-dark: #9c7a3c;
  --gold-grad: linear-gradient(135deg, #e4c97e, #c9a24b 45%, #9c7a3c);
  --line: rgba(201, 162, 75, 0.16);
  --line-strong: rgba(201, 162, 75, 0.34);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 10px 30px rgba(201, 162, 75, 0.26);
  --font: "Vazirmatn", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", "Vazirmatn", Georgia, serif;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
[dir="rtl"] body { text-align: right; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 700; line-height: 1.15; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold-grad); color: #0b0b0d; border: none; cursor: pointer;
  padding: 12px 22px; min-height: 46px; border-radius: 999px; font-size: .98rem; font-weight: 700;
  font-family: inherit; white-space: nowrap; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; box-shadow: var(--glow);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(201,162,75,.42); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold-grad); color: #0b0b0d; }
.btn-ghost { background: transparent; color: var(--gold-light); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(201,162,75,.10); color: var(--gold-light); box-shadow: none; }
.btn-block { width: 100%; }
.section { padding: clamp(56px, 8vw, 88px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(32px, 5vw, 48px); }
.section-head h2 { font-size: clamp(1.9rem, 6vw, 3rem); color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 10px; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: .74rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 11, 13, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.45rem; letter-spacing: .5px; white-space: nowrap; }
.brand .logo { width: 38px; height: 38px; }
.nav-drawer { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: rgba(244,242,235,.82); font-weight: 500; font-size: .95rem; padding: 6px 0; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-select { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--ink); font-family: inherit; cursor: pointer; }
.lang-select option { background: #17151b; color: var(--ink); }
.nav-toggle { display: none; background: rgba(255,255,255,.03); border: 1px solid var(--line-strong); border-radius: 12px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; color: var(--gold-light); align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--bg); padding: 60px 0; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 80% 0%, rgba(201,162,75,.12), transparent 55%), linear-gradient(180deg, rgba(11,11,13,.5), rgba(11,11,13,.92)); }
.hero-inner { position: relative; z-index: 2; max-width: 660px; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 4.6rem); color: var(--ink); }
.hero p { font-size: clamp(1rem, 3.4vw, 1.35rem); margin: 18px 0 30px; color: var(--muted); max-width: 30ch; }

/* Booking search widget */
.search-widget {
  position: relative; z-index: 3; margin: -52px auto 0; width: min(1080px, 94%);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.field input, .field select {
  width: 100%; padding: 12px 14px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 12px; font-family: inherit; font-size: 1rem;
  background: rgba(255,255,255,.03); color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.field select option { background: #17151b; color: var(--ink); }
.field input[type=date] { color-scheme: dark; }

/* Cards grid */
.grid { display: grid; gap: 24px; }
.rooms-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.room-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.room-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.room-card .thumb { aspect-ratio: 4/3; background: var(--bg-2); }
.room-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-card h3 { color: var(--ink); font-size: 1.45rem; }
.room-card .desc { color: var(--muted); font-size: .92rem; }
.room-meta { display: flex; flex-wrap: wrap; gap: 7px; font-size: .78rem; color: var(--muted); }
.chip { background: rgba(201,162,75,.08); border: 1px solid var(--line); color: var(--gold-light); border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.price { font-weight: 800; color: var(--gold); font-size: 1.15rem; font-family: var(--serif); }
.price small { color: var(--muted); font-weight: 500; font-family: var(--font); }
.book-btn { padding: 9px 18px; min-height: 42px; }

/* Amenities */
.amenities-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.amenity { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 16px; text-align: center; transition: border-color .2s ease, transform .2s ease; }
.amenity:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.amenity .icon { font-size: 1.9rem; }
.amenity span { display: block; margin-top: 12px; font-weight: 600; color: var(--gold-light); font-size: .95rem; }

/* Gallery */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gallery-grid figure { border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 12px 14px; color: var(--gold-light); background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: .9rem; }

/* About + contact */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.about .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); border: 1px solid var(--line); }
.about .media img { width: 100%; height: 100%; object-fit: cover; }
.about-bg { background: var(--bg-2); }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info li { list-style: none; margin-bottom: 14px; color: var(--muted); }
.contact-info b { color: var(--gold-light); }
form.contact-form { display: grid; gap: 14px; }
form.contact-form input, form.contact-form textarea { padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; font-family: inherit; font-size: 1rem; background: rgba(255,255,255,.03); color: var(--ink); }
form.contact-form input::placeholder, form.contact-form textarea::placeholder { color: var(--faint); }
form.contact-form input:focus, form.contact-form textarea:focus { outline: none; border-color: var(--gold); }

/* Footer */
.site-footer { background: #08080a; color: var(--muted); padding: 44px 0; text-align: center; border-top: 1px solid var(--line); }
.site-footer .brand { color: var(--gold); justify-content: center; margin-bottom: 8px; }
.site-footer .tagline { color: var(--gold-light); }

/* Modal / dialog */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 120; padding: 18px; }
.overlay.open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); max-width: 540px; width: 100%; padding: 28px; box-shadow: var(--shadow); max-height: 90vh; overflow: auto; }
.modal h3 { color: var(--gold-light); margin-bottom: 14px; }
.modal input { background: rgba(255,255,255,.03) !important; color: var(--ink) !important; border-color: var(--line-strong) !important; }
.modal code { color: var(--gold-light); word-break: break-all; }

/* Reviews */
.reviews-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-stars { color: var(--gold-light); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { color: var(--ink); font-size: .96rem; line-height: 1.8; }
.review-by { margin-top: 12px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.review-form { margin-top: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.review-form-title { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-light); }
.review-form-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.review-form input, .review-form select, .review-form textarea { padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255,255,255,.03); color: var(--ink); font-family: inherit; }
.review-form select option { background: #17151b; }
.review-form button { justify-self: start; }
@media (max-width: 560px) { .review-form-grid { grid-template-columns: 1fr; } }

/* Booking: add-ons + quote */
.addon-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 6px; cursor: pointer; }
.addon-row input { width: 18px; height: 18px; accent-color: var(--gold); }
.quote-box { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.qline { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .92rem; color: var(--muted); }
.qline.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--gold-light); font-weight: 800; font-size: 1.1rem; font-family: var(--serif); }

/* utility */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 16px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge.paid, .badge.confirmed { background: rgba(40,160,90,.18); color: #6fe0a0; }
.badge.pending, .badge.awaiting, .badge.unpaid { background: rgba(201,162,75,.16); color: var(--gold-light); }
.badge.cancelled, .badge.failed { background: rgba(200,70,70,.18); color: #f0a0a0; }
.badge.checked_in { background: rgba(60,130,200,.18); color: #8fc0f0; }
.badge.checked_out { background: rgba(255,255,255,.08); color: var(--muted); }

/* ------- Responsive ------- */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-drawer {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: #0e0e11; border-bottom: 1px solid var(--line-strong);
    padding: 16px clamp(16px, 4vw, 32px) 22px; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility .28s;
  }
  .nav-drawer.open { max-height: 90vh; opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
  .nav-actions .btn { width: 100%; }
  .lang-select { width: 100%; }
}
@media (max-width: 860px) {
  .about, .contact-wrap { grid-template-columns: 1fr; }
  .about .media { order: -1; }
}
@media (max-width: 720px) {
  .search-widget { grid-template-columns: 1fr 1fr; margin-top: -34px; padding: 16px; }
  .search-widget .field:nth-child(4), .search-widget .field:last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .search-widget { grid-template-columns: 1fr; }
  .brand { font-size: 1.25rem; }
  .brand .logo { width: 34px; height: 34px; }
  .price-row { flex-direction: column; align-items: stretch; }
  .book-btn { width: 100%; }
}
