/* Theresa Hotel – family, warm, Mediterranean */

:root {
  --color-sand: #f5f0e8;
  --color-cream: #faf8f5;
  --color-white: #fff;
  --color-sea: #5a8f8c;
  --color-sea-dark: #4a7c79;
  --color-teal: #6b9b98;
  --color-olive: #7d8c5a;
  --color-terracotta: #b85c4a;
  --color-brown: #5c4a42;
  --color-btn: #2d6b68;
  --color-btn-hover: #245855;
  --color-text: #3d3632;
  --color-text-soft: #554d47;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Literata", Georgia, serif;
  --space: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(92, 74, 66, 0.08);
  --shadow-lg: 0 8px 32px rgba(92, 74, 66, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-cream);
}

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

a {
  color: var(--color-sea-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--color-sea);
  outline-offset: 2px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space) var(--space-lg);
}

.logo-link {
  flex-shrink: 0;
}

.logo {
  height: 42px;
  width: auto;
}

.nav {
  display: none;
}

@media (min-width: 900px) {
  .nav {
    display: block;
  }
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.nav-link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--color-sea-dark);
  text-decoration: none;
}

.nav-link.active {
  color: var(--color-sea-dark);
  font-weight: 600;
  text-decoration: none;
}

.nav-link.active:hover {
  color: var(--color-btn-hover);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-cta {
  background: var(--color-btn);
  color: var(--color-white);
}

.btn-cta:hover {
  background: var(--color-btn-hover);
  color: var(--color-white);
  text-decoration: none;
}

.header .btn-cta {
  display: none;
}

@media (min-width: 900px) {
  .header .btn-cta {
    display: inline-flex;
  }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.nav-mobile {
  display: none;
  background: var(--color-sand);
  padding: var(--space-lg);
  border-top: 1px solid rgba(92, 74, 66, 0.1);
}

.nav-mobile .nav-list {
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile .nav-link {
  display: block;
  padding: 0.5rem 0;
}

body.menu-open .nav-mobile {
  display: block;
}

@media (min-width: 900px) {
  .nav-mobile {
    display: none !important;
  }
}

/* Main */
.main {
  min-height: 60vh;
}

/* Footer */
.footer {
  background: var(--color-brown);
  color: var(--color-sand);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.footer-location,
.footer-contact,
.footer-credit {
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.footer a {
  color: var(--color-sand);
}

.footer a:hover {
  text-decoration: underline;
}

.footer-credit {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #e0d9cf;
}

/* Sections */
.section {
  padding: var(--space-xl) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.page-intro .section-title {
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-brown);
  margin: 0 0 1rem;
}

.prose {
  color: var(--color-text-soft);
  max-width: 65ch;
}

.prose p {
  margin: 0 0 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sea) center / cover no-repeat;
  color: var(--color-white);
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
  max-width: 700px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.hero .btn-cta {
  background: var(--color-white);
  color: var(--color-btn);
}

.hero .btn-cta:hover {
  background: var(--color-sand);
  color: var(--color-btn-hover);
  text-decoration: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.4));
  pointer-events: none;
}

/* Slider */
.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  will-change: opacity;
}

.hero-slide picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide.active {
  opacity: 1;
  z-index: 0;
}

/* Reviews block */
.reviews {
  background: var(--color-sand);
  padding: var(--space-xl) var(--space-lg);
}

.reviews-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.reviews-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-brown);
  text-align: center;
  margin: 0 0 1.5rem;
}

.reviews-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: var(--color-white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.review-quote {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0;
}

/* CTA block */
.cta-block {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-sand) 100%);
}

.cta-block .btn-cta {
  font-size: 1.1rem;
  padding: 0.85rem 1.75rem;
}

/* Room cards */
.room-cards {
  display: grid;
  gap: 1.5rem;
}

.room-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.room-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brown);
  margin: 0 0 0.75rem;
}

.room-details {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
}

.room-details li {
  margin: 0.25rem 0;
}

/* Facilities */
.facilities-grid {
  display: grid;
  gap: 2rem;
}

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

.facility-block {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.facility-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-brown);
  margin: 0 0 1rem;
}

.facility-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
}

.facility-list li {
  margin: 0.35rem 0;
}

/* Gallery */
.gallery-section {
  padding-top: 0;
}

.gallery-category {
  margin-bottom: 2.5rem;
}

.gallery-category-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-brown);
  margin: 0 0 1rem;
}

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

.gallery-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.gallery-link:hover {
  text-decoration: none;
}

.gallery-link:focus-visible {
  outline: 2px solid var(--color-sea);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--color-sand);
  transition: box-shadow 0.2s;
}

.gallery-link:hover .gallery-item {
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

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

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.gallery-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}

.gallery-lightbox-close,
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gallery-lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.link-secondary {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.link-secondary:hover {
  color: var(--color-sea-dark);
}

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Contact */
.contact-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 400px;
}

.contact-card p {
  margin: 0 0 1rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}
