/* Kaikoura Motor Inn – Motorinn color theme (Forest Green + Warm Sand) */

:root {
  --ink: #2C5F4A;
  --ink-dark: #1F4434;
  --ink-soft: #3D7A60;
  --ink-light: #3D7A60;
  --accent: #C8A97A;
  --accent-dark: #A8885A;
  --bg: #FAF8F4;
  --bg-soft: #F4F0EA;
  --bg-muted: #EDE9E2;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-soft: #6B6B6B;
  --border: #E8E3DC;
  --radius: 14px;
  --radius-sm: 999px;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.06);
  --shadow-card: 0 14px 40px rgba(15,23,42,0.04);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1200px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", sans-serif;
  --font-heading: "SF Pro Display", "SF Pro", "Helvetica Neue", sans-serif;
}

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

html {
  font-family: var(--font);
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  line-height: 1.6;
}

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

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

ul, ol, li {
  padding: 0;
  margin: 0;
  list-style: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #111;
  box-shadow: 0 8px 24px rgba(200,169,122,0.33);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(200,169,122,0.42);
  color: #111;
}

.btn-outline {
  background: rgba(31,68,52,0.45);
  color: #fff;
  border: 1px solid rgba(232,227,220,0.35);
  backdrop-filter: blur(14px);
}

.btn-outline:hover {
  background: rgba(31,68,52,0.65);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

/* Top bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 0;
  background: rgba(31,68,52,0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,227,220,0.18);
  font-size: 0.78rem;
  color: rgba(232,227,220,0.95);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.social-link {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(232,227,220,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition);
  color: inherit;
}

.social-link:hover {
  background: var(--ink-light);
  color: #fff;
}

/* Header */
header {
  position: sticky;
  top: 36px;
  z-index: 90;
  background: rgba(31,68,52,0.78);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(107,107,107,0.25);
  padding: 0.55rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}

.logo-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.15;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

nav a {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(232,227,220,0.96);
  transition: all var(--transition);
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(107,107,107,0.45);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(232,227,220,0.95);
  font-size: 0.82rem;
}

.menu-toggle {
  display: none;
  border: none;
  background: rgba(107,107,107,0.5);
  color: #fff;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  font-size: 1.05rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0.4rem 0.8rem;
    background: rgba(31,68,52,0.99);
    border-top: 1px solid rgba(107,107,107,0.3);
  }
  nav ul.open { display: flex; }
  nav a {
    padding: 0.55rem 0.6rem;
    width: 100%;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 140px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(31,68,52,0.15), rgba(31,68,52,0.31)),
    linear-gradient(to bottom, rgba(31,68,52,0.04), rgba(31,68,52,0.225));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #fff;
  padding: 0 1.2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(31,68,52,0.42);
  border: 1px solid rgba(232,227,220,0.25);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(232,227,220,1);
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.hero p {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  color: rgba(232,227,220,0.98);
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Sections */
.section {
  padding: 3.4rem 0 3.6rem;
}

.section-soft {
  background: var(--bg-soft);
}

.section-dark {
  background: radial-gradient(circle at top, var(--ink-dark), #020617);
  color: #fff;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header .overline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Room cards */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

.room-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15,23,42,0.06);
}

.room-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.room-body {
  padding: 0.85rem 0.95rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.room-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.room-meta {
  font-size: 0.72rem;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.room-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.room-footer {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.8rem;
}

.room-price {
  font-weight: 600;
  color: var(--accent-dark);
}

.room-link {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.room-link:hover { text-decoration: underline; }

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.amenity-card {
  padding: 1rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.amenity-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.05);
}

.amenity-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61,122,96,0.16), rgba(61,122,96,0.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.amenity-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.amenity-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Testimonials */
.testimonials-wrap {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.6s ease;
}

.testimonial-card {
  min-width: 260px;
  max-width: 340px;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--radius);
  background: linear-gradient(to bottom right, rgba(31,68,52,0.99), rgba(2,6,23,0.99));
  border: 1px solid rgba(107,107,107,0.45);
  color: #fff;
  font-size: 0.84rem;
  line-height: 1.6;
}

.testimonial-stars {
  color: var(--accent);
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}

.testimonial-author {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(232,227,220,0.96);
}

.testimonials-controls {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.testimonials-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(232,227,220,0.5);
  cursor: pointer;
  transition: all var(--transition);
}

.testimonials-dot.active {
  width: 20px;
  border-radius: 999px;
  background: var(--accent);
}

/* CTA band */
.cta-band {
  padding: 2.4rem 0;
  background: radial-gradient(circle at top, var(--ink), #020617);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.cta-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.15rem;
}

.cta-text p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(232,227,220,0.96);
}

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card {
  height: 100%;
  padding: 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(to bottom right, rgba(31,68,52,0.99), rgba(2,6,23,0.99));
  border: 1px solid rgba(107,107,107,0.35);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
}

.contact-row-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(232,227,220,0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.contact-info-actions {
  margin-top: auto;
}

.form-card {
  height: 100%;
  padding: 1.4rem 1.4rem 1.2rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.76rem;
  color: var(--text-soft);
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.form-input {
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-muted);
  font-size: 0.82rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--ink-light);
  box-shadow: 0 0 0 3px rgba(61,122,96,0.16);
}

textarea.form-input {
  border-radius: var(--radius);
  min-height: 90px;
  resize: vertical;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Gallery */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.gallery-tab {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-tab.active,
.gallery-tab:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.6rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* Activities */
.activity-item {
  display: flex;
  gap: 1.2rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.8rem;
  align-items: flex-start;
}

.activity-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(200,169,122,0.18), rgba(200,169,122,0.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.activity-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.activity-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* About */
.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; }
}

.about-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.about-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about-image img {
  width: auto;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 860px) {
  .about-image {
    position: static !important;
    transform: none !important;
    margin-top: 1.5rem !important;
  }
  .about-image img {
    max-width: 100%;
    width: 100%;
  }
}

/* Page header (inner pages) */
.page-header {
  padding: 7rem 0 2.4rem 0;
  background: radial-gradient(circle at top, var(--ink), #020617);
  color: #fff;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.page-header p {
  font-size: 0.9rem;
  color: rgba(232,270,220,0.98);
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery page header */
.page-header--gallery {
  background-image: linear-gradient(rgba(31,68,52,0.55), rgba(2,6,23,0.65)), url('https://www.newzealand.com/assets/Uploads/01-Kaikoura-Canterbury-Kyle-Mulinder__ExtRewriteWyJqcGciLCJ3ZWJwIl0_aWxvdmVrZWxseQo_FocalPointCropWzExMDAsMzIwMCw2NCw2Miw3NSwid2VicCIsNjUsMi41XQ.webp');
}

/* Activities page header */
.page-header--activities {
  background-image: linear-gradient(rgba(31,68,52,0.5), rgba(2,6,23,0.5)), url('https://blog.padi.com/wp-content/uploads/2019/04/humpback-whale-7-2-2.jpg');
}

/* Contact page header */
.page-header--contact {
  background-image: linear-gradient(rgba(31,68,52,0.5), rgba(2,6,23,0.5)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/bf/Kaikoura_Range.jpg/1280px-Kaikoura_Range.jpg');
}

/* Room detail */
.room-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2rem;
}

@media (max-width: 860px) {
  .room-detail { grid-template-columns: 1fr; }
}

.room-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.room-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.room-sidebar {
  padding: 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
}

.room-sidebar h3 {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.room-sidebar .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.3rem;
}

.room-features {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.72rem;
}

.room-features span {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--text-soft);
}

.room-meta-list {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.room-meta-list div {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
  border-bottom: 1px dashed var(--border);
}

/* Footer */
footer {
  background: radial-gradient(circle at top, var(--ink-dark), #020617);
  color: rgba(232,227,220,0.96);
  padding: 2.6rem 0 1.4rem;
  font-size: 0.78rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr 1fr;
  gap: 1.6rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.75rem;
  color: rgba(232,227,220,0.9);
  line-height: 1.6;
}

.footer-col a:hover { color: #fff; }

.footer-nav a {
  display: block;
  padding: 0.1rem 0;
}

.footer-bottom {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(107,107,107,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
  color: rgba(232,227,220,0.7);
  flex-wrap: wrap;
}

/* Responsive tweaks */
@media (max-width: 760px) {
  .top-bar { display: none; }
  .top-bar-left,
  .header-phone { display: none; }
  header {
    top: 0;
    position: sticky;
  }
  /* Tighten header-right buttons on mobile */
  .header-right {
    gap: 0.4rem;
  }
  .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
  .hero { min-height: 64vh; padding-bottom: 1.5rem; }
  .section { padding: 2rem 0 2rem; }
  .page-header { padding-top: 5.5rem; padding-bottom: 1.5rem; }
  .room-gallery { margin-top: 0; }
  /* Ensure room cards are readable on mobile */
  .room-card .room-thumb img { height: 160px; }
  .room-body { padding: 0.7rem 0.7rem 0.8rem; }
  .room-title { font-size: 0.9rem; }
  .room-desc { font-size: 0.76rem; }
  /* Make activity cards stack on mobile */
  .activity-item { flex-direction: column; gap: 0.6rem; }
  .activity-icon { width: 40px; height: 40px; font-size: 1rem; }
  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Room Gallery Carousel */
.room-gallery {
  position: relative;
  width: 100%;
  max-width: 100vw;
  margin-top: 56px;
  background: #000;
  overflow: hidden;
}

.room-gallery-viewport {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 16/9;
}

.room-gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.room-gallery-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.room-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows */
.room-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.room-gallery-arrow:hover {
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-50%) scale(1.08);
}

.room-gallery-prev {
  left: 14px;
}

.room-gallery-next {
  right: 14px;
}

/* Counter */
.room-gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(6px);
}

/* Dots */
.room-gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 6px;
}

.room-gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.room-gallery-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Room detail header */
.room-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.room-detail-breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.room-detail-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.room-detail-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 0.25rem;
}

.room-detail-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Room info grid */
.room-info-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
}

.room-info-grid h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.room-info-grid h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.2rem;
  color: var(--text);
}

.room-info-grid p,
.room-info-grid li {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.room-meta-panel {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 1.2rem;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.room-meta-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}

.room-meta-icon {
  width: 24px;
  text-align: center;
}

.room-cta {
  width: 100%;
  text-align: center;
}

/* Room card thumb */
.room-card .room-thumb {
  overflow: hidden;
}

.room-card .room-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .room-gallery-viewport {
    aspect-ratio: 16/9;
  }

  .room-gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .room-info-grid {
    grid-template-columns: 1fr;
  }

  .room-detail-header {
    flex-direction: column;
    gap: 0.6rem;
  }

  .room-detail-title {
    font-size: 1.4rem;
  }

  .room-card .room-thumb img {
    height: 160px;
  }
}

/* Gallery: Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightboxImg {
  max-width: min(92vw, 1200px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.7);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 10000;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: scale(1.08);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-arrow:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox-counter {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 10000;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  font-size: 11px;
  backdrop-filter: blur(6px);
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.93);
}

/* Hide items not in current filter */
.gallery-item-hidden {
  display: none;
}

/* --- Responsive gallery tweaks --- */
@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .lightbox-arrow {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }

  .gallery-item img {
    height: 120px;
  }
}

/* Safe area for notched devices (iPhone X+) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
  footer {
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom));
  }
}
