:root {
  --river:    #2d6a8a;
  --river-dk: #1a4d6a;
  --sky:      #e8f4f8;
  --sand:     #f5efe6;
  --sand-dk:  #ede3d4;
  --bark:     #3d2c1e;
  --moss:     #4a6a3a;
  --accent:   #c8832a;
  --white:    #fefcf9;
  --text:     #2a2a2a;
  --muted:    #7a7060;
  --border:   #ddd4c4;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--sand);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  background: var(--bark);
  color: var(--white);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
  color: var(--white);
}
.site-logo span { color: #a8d4e8; }
.header-book-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.header-book-btn:hover { background: #b0711e; }

/* ── HERO STRIP ── */
.hero-strip {
  background: linear-gradient(135deg, var(--river-dk) 0%, var(--river) 60%, #3d8aaa 100%);
  color: white;
  text-align: center;
  padding: 52px 24px 44px;
  position: relative;
  overflow: hidden;
}
.hero-strip::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 36px;
  background: var(--sand);
  clip-path: ellipse(52% 100% at 50% 100%);
}
.hero-strip h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.hero-strip p {
  opacity: 0.85;
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── FILTER TABS ── */
.filter-bar {
  max-width: 980px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'DM Sans', sans-serif;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--river);
  border-color: var(--river);
  color: white;
}

/* ── GRID ── */
.rooms-grid {
  max-width: 980px;
  margin: 24px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── ROOM CARD ── */
.room-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(61,44,30,0.08);
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  position: relative;
}
.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(61,44,30,0.14);
}
.room-card.hidden { display: none; }

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--sky);
  position: relative;
}
/* placeholder illustration inside img area */
.card-img-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  position: relative;
}
.card-img-placeholder.ger   { background: linear-gradient(135deg, #c8a87a 0%, #e8d0a8 100%); }
.card-img-placeholder.lux   { background: linear-gradient(135deg, #8aafca 0%, #c0daea 100%); }
.card-img-placeholder.cabin { background: linear-gradient(135deg, #6a9a6a 0%, #a8c8a0 100%); }
.card-img-placeholder.room  { background: linear-gradient(135deg, #b08060 0%, #d4b090 100%); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(61,44,30,0.82);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.card-badge.lux { background: rgba(200,131,42,0.9); }

.card-body { padding: 16px 18px 18px; }
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--bark);
  margin-bottom: 4px;
}
.card-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}
.amenity-tag {
  background: var(--sand);
  color: var(--bark);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 500;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--sand-dk);
}
.card-price {
  display: flex;
  flex-direction: column;
}
.price-main {
  font-size: 18px;
  font-weight: 700;
  color: var(--river-dk);
  font-family: 'Cormorant Garamond', serif;
}
.price-sub { font-size: 11px; color: var(--muted); }
.card-detail-btn {
  background: var(--river);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.18s;
}
.card-detail-btn:hover { background: var(--river-dk); }

/* ── MODAL OVERLAY ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,20,10,0.55);
  z-index: 200;
  backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: 24px 16px;
}
.modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }

.modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  overflow: hidden;
  animation: modalIn 0.28s ease;
  position: relative;
  margin: auto;
}
@keyframes modalIn {
  from { opacity:0; transform: translateY(24px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: background 0.15s;
}
.modal-close:hover { background: white; }

/* photo gallery area */
.modal-gallery {
  height: 260px;
  position: relative;
  overflow: hidden;
}
.modal-gallery-bg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}
/* gallery nav arrows */
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.45);
  color: white; border: none; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  z-index: 5; transition: background .15s;
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev:hover, .gallery-next:hover { background: rgba(0,0,0,0.7); }
/* dots */
.gallery-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.gdot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.55); cursor: pointer; transition: background .15s;
}
.gdot.active { background: white; }
/* card image count badge */
.card-img-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.55); color: white;
  font-size: 11px; padding: 2px 7px; border-radius: 10px;
}
/* booking button */
.booking-section {
  padding: 20px 0 4px;
}
.tgr-book-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--river);
  color: white !important;
  text-align: center;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
}
.tgr-book-btn:hover { background: var(--river-dk); transform: translateY(-1px); }
/* admin fab link */
.admin-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  background: var(--bark); color: var(--white) !important;
  border-radius: 50%; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22); z-index: 300;
  text-decoration: none; transition: background .18s;
}
.admin-fab:hover { background: var(--accent); }

.modal-body { padding: 28px 32px 32px; }

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--bark);
  line-height: 1.1;
}
.modal-price-block { text-align: right; flex-shrink: 0; }
.modal-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--river-dk);
}
.modal-price-label { font-size: 12px; color: var(--muted); }

.modal-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--river);
  margin-bottom: 10px;
}

.modal-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.modal-amenity {
  background: var(--sky);
  color: var(--river-dk);
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 500;
}
.modal-not-included {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.not-tag {
  background: #fff0f0;
  color: #b03030;
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.75;
}
.two-col-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.spec-item {
  background: var(--sand);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
}
.spec-label { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 3px; }
.spec-value { color: var(--bark); font-weight: 600; }

.modal-desc {
  font-size: 14.5px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 24px;
}

/* included breakfast note */
.breakfast-note {
  background: #fef9f0;
  border: 1.5px solid #f0d090;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #7a5010;
  margin-bottom: 22px;
  font-weight: 500;
}

/* booking section */
.booking-section {
  background: var(--sand);
  border-radius: 14px;
  padding: 22px 24px;
}
.booking-section .modal-section-title { margin-bottom: 14px; }
.tgr-book-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--river);
  color: white;
  text-align: center;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s;
}
.tgr-book-btn:hover { background: var(--river-dk); color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .modal-body { padding: 20px; }
  .modal-gallery { height: 200px; }
  .modal-gallery-bg { font-size: 60px; }
  .modal-title { font-size: 24px; }
  .modal-price { font-size: 22px; }
  .modal-title-row { flex-direction: column; gap: 4px; }
  .modal-price-block { text-align: left; }
}
.admin-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 46px; height: 46px;
  background: var(--bark);
  color: var(--white);
  border: none; border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  transition: background 0.18s, transform 0.15s;
}
.admin-fab:hover { background: var(--accent); transform: scale(1.08); }

/* ── ADMIN OVERLAY ── */
.admin-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(30,20,10,0.55);
  z-index: 400;
  backdrop-filter: blur(3px);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px;
}
.admin-overlay.open { display: flex; }

.admin-box {
  background: var(--white);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  padding: 32px;
  position: relative;
  margin: auto;
  animation: modalIn 0.25s ease;
}
.admin-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: var(--sand);
  border: none; border-radius: 50%;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.admin-close:hover { background: var(--sand-dk); }
.admin-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 700;
  color: var(--bark); margin-bottom: 20px;
}

/* login */
#adminLogin {
  flex-direction: column; align-items: center;
  gap: 12px; text-align: center;
}
#adminLogin p { font-size: 14px; color: var(--muted); }
.admin-pass-row { display: flex; gap: 8px; width: 100%; max-width: 320px; }
.admin-pass-row input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
}
.admin-pass-row input:focus { outline: none; border-color: var(--river); }
#adminError { color: #c03030; font-size: 13px; display: none; }

/* panel fields */
.admin-row { margin-bottom: 14px; }
.admin-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 5px;
}
.admin-input, .admin-textarea, .admin-select {
  width: 100%; padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
}
.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
  outline: none; border-color: var(--river);
}
.admin-textarea { resize: vertical; min-height: 72px; }
.admin-textarea.sm { min-height: 52px; }
.admin-hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.admin-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-save-btn {
  width: 100%; padding: 11px;
  background: var(--river); color: white;
  border: none; border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.18s;
  margin-top: 4px;
}
.admin-save-btn:hover { background: var(--river-dk); }
#adminResult { text-align: center; font-size: 14px; font-weight: 600; margin-top: 10px; min-height: 20px; }
.btn-sm {
  padding: 8px 18px;
  background: var(--river); color: white;
  border: none; border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-sm:hover { background: var(--river-dk); }
</style>
