:root {
  --sand: #f5ebe0;
  --cream: #faf6f1;
  --ocean: #0d5c7a;
  --ocean-light: #1a8aab;
  --coral: #e07a5f;
  --coral-dark: #c45d42;
  --text: #2c3e50;
  --text-muted: #5a6c7d;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(13, 92, 122, 0.12);
  --radius: 12px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean);
  text-decoration: none;
}

a:hover {
  color: var(--ocean-light);
}

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 92, 122, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ocean);
}

.logo span {
  color: var(--coral);
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ocean);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--coral-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border: 2px solid var(--ocean);
}

.btn-outline:hover {
  background: var(--ocean);
  color: var(--white);
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(13, 92, 122, 0.75), rgba(26, 138, 171, 0.6)),
    url("../assets/images/hero.jpg") center / cover no-repeat;
  padding-top: 5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 640px;
}

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-img {
  height: 220px;
  overflow: hidden;
  background: var(--sand);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  background: var(--sand);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gallery-preview a {
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

@media (max-width: 900px) {
  .gallery-preview {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-family: var(--font-display);
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--coral);
}

.price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Highlights list */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.highlight-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.highlight-item::before {
  content: "✦";
  color: var(--coral);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Facilities */
.facility-group {
  margin-bottom: 1.5rem;
}

.facility-group h4 {
  color: var(--ocean);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.facility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--sand);
  color: var(--ocean);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Reviews */
.review-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--coral);
}

.review-rating {
  color: var(--coral);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.review-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Booking widget */
.booking-bar {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ocean);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d0dde4;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--ocean-light);
  border-color: transparent;
}

/* Map embed */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 360px;
  background: var(--sand);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--ocean);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

/* Booking page */
.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.booking-summary {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 6rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.summary-total {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--coral);
  margin-top: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-info {
  background: #e8f4f8;
  color: var(--ocean);
  border: 1px solid #b8dce8;
}

.alert-error {
  background: #fde8e8;
  color: #9b2c2c;
}

.alert-success {
  background: #e6f7ed;
  color: #276749;
}

.page-hero-small {
  padding: 7rem 0 3rem;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-light));
  color: var(--white);
  text-align: center;
}

.page-hero-small h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.payment-methods {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.payment-badge {
  background: var(--sand);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
  }
}

/* Utilities */
.section--sand {
  background: var(--sand);
}

.section--white {
  background: var(--white);
}

.section-booking-bar {
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-075 {
  margin-top: 0.75rem;
}

.mb-15 {
  margin-bottom: 1.5rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.hero-btn-light {
  border-color: #fff;
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form-card {
  padding: 1.5rem;
}

.contact-info-gap {
  margin-top: 1rem;
}

.section-title--sm {
  font-size: 1.4rem;
}

.section-title--book {
  font-size: 1.5rem;
}

.section-title--book-spaced {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.booking-summary__title {
  font-family: var(--font-display);
  color: var(--ocean);
  margin-bottom: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-submit-lg {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
}

.page-hero--photo {
  background-image: linear-gradient(135deg, rgba(13, 92, 122, 0.85), rgba(26, 138, 171, 0.75)),
    url("../assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
}

.success-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.success-page .section-title {
  font-size: 2.5rem;
}

.success-page .section-subtitle {
  margin: 1rem auto 2rem;
}

.success-page .text-muted {
  margin-top: 1rem;
  color: var(--text-muted);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-text {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.footer-login {
  margin-top: 1rem;
  font-size: 0.85rem;
}

.facility-tags--spaced {
  margin: 0.75rem 0;
}

.btn-room-book {
  margin-top: 1rem;
  display: block;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
