@import url('reset.css');
@import url('variables.css');

/* ========================================
   BASE / GLOBAL
   ======================================== */

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only--focusable:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: var(--color-white);
  z-index: 10000;
  font-weight: 700;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(244, 244, 244, 0.97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-normal);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
  background-color: var(--text-primary);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
  background-color: var(--text-primary);
}

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: var(--bg-primary);
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.main-nav.is-open {
  transform: translateX(0);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav-link {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

.nav-link--cta {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--accent);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-family: var(--font-button);
  font-weight: 600;
  font-size: var(--font-size-sm) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  transition: background-color var(--transition-fast);
}

.nav-link--cta:hover {
  background-color: var(--color-navy);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-charcoal);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--space-lg);
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 300;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

.hero-scroll svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-white);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-family: var(--font-button);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--accent);
  color: var(--color-white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background-color: #a8873e;
  border-color: #a8873e;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--secondary:hover {
  background-color: var(--color-white);
  color: var(--text-primary);
}

.btn--airbnb {
  background-color: var(--accent);
  color: var(--color-white);
  border-color: var(--accent);
}

.btn--airbnb:hover {
  background-color: #a8873e;
  border-color: #a8873e;
}

.btn--vrbo {
  background-color: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn--vrbo:hover {
  background-color: #132040;
  border-color: #132040;
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn--outline-dark:hover {
  background-color: var(--text-primary);
  color: var(--color-white);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  line-height: var(--line-height-heading);
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: calc(-1 * var(--space-md)) auto var(--space-xl);
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

/* ========================================
   HIGHLIGHTS STRIP
   ======================================== */

.highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  padding: var(--space-xl) 0;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--accent);
}

.highlight-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.highlight-label {
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   PHOTO GALLERY
   ======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-normal);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.1);
}

/* ========================================
   LIGHTBOX
   ======================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  z-index: 2001;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  z-index: 2001;
  opacity: 0.7;
}

.lightbox-arrow:hover {
  opacity: 1;
}

.lightbox-arrow--prev {
  left: var(--space-md);
}

.lightbox-arrow--next {
  right: var(--space-md);
}

.lightbox-counter {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

/* ========================================
   CTA BAND
   ======================================== */

.cta-band {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-band .section-title {
  color: var(--text-on-dark);
}

.cta-band .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-lg);
}

/* ========================================
   DETAIL SECTIONS (More Details page)
   ======================================== */

.detail-section {
  padding: var(--space-2xl) 0;
}

.detail-section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.detail-icon {
  font-size: 2rem;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.detail-intro {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

.room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.room-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.room-card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.room-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card-body {
  padding: var(--space-lg);
}

.room-card-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.room-card-features {
  list-style: none;
}

.room-card-features li {
  padding: var(--space-xs) 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-primary);
}

.room-card-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.amenity-list {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

.amenity-list li {
  padding: var(--space-sm) 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.amenity-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.amenity-list li:last-child {
  border-bottom: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.detail-card {
  text-align: center;
  padding: var(--space-lg);
}

.detail-card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.detail-card h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.detail-card p {
  color: var(--text-secondary);
}

.rules-list {
  max-width: 600px;
  margin: 0 auto;
  list-style: none;
}

.rules-list li {
  padding: var(--space-md) 0;
  padding-left: 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: var(--font-size-lg);
}

.rules-list li::before {
  position: absolute;
  left: 0;
  font-size: 1.25rem;
}

.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.reason-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.reason-card p {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-style: italic;
  line-height: 1.5;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.about-text .about-intro {
  font-size: var(--font-size-xl);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.about-text p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about-features {
  list-style: none;
  margin: var(--space-lg) 0;
  padding-left: 0;
}

.about-features li {
  padding: var(--space-xs) 0;
  padding-left: 1.5rem;
  position: relative;
}

.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.about-closing {
  font-style: italic;
  color: var(--text-secondary);
  border-top: 1px solid var(--bg-secondary);
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
}

/* ========================================
   CONTACT FORM
   ======================================== */

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-warm-gray);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 164, 94, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .field-error {
  display: none;
  color: #c0392b;
  font-size: var(--font-size-sm);
  margin-top: var(--space-xs);
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #c0392b;
}

.form-group.has-error .field-error {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-success {
  text-align: center;
  padding: var(--space-xl);
  display: none;
}

.form-success.is-visible {
  display: block;
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  color: var(--accent);
  margin-bottom: var(--space-md);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--space-xl) 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.footer-booking {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact a {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-copy {
  font-size: var(--font-size-sm);
  opacity: 0.6;
}

/* ========================================
   PAGE HEADER (interior pages)
   ======================================== */

.page-header {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  text-align: center;
  background-color: var(--bg-secondary);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
}

/* ========================================
   ALTERNATIVE CONTACT (inquire page)
   ======================================== */

.alt-contact {
  text-align: center;
  padding: var(--space-xl) 0;
}

.alt-contact p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.alt-contact a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alt-contact .cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* ========================================
   RESPONSIVE — TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--font-size-hero);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
  }

  .hero-ctas {
    flex-direction: row;
    justify-content: center;
  }

  .highlights {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .cta-band .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

  .page-header h1 {
    font-size: var(--font-size-3xl);
  }
}

/* ========================================
   RESPONSIVE — DESKTOP (1024px+)
   ======================================== */

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

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    transform: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }

  .nav-link {
    font-size: var(--font-size-base);
    color: var(--text-primary);
    padding: var(--space-xs) 0;
  }

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

  .nav-link--cta {
    color: var(--color-white) !important;
  }

  .highlights {
    grid-template-columns: repeat(6, 1fr);
  }

  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-video {
    display: none;
  }
}
