/* ============================================
   EKEN APART OTEL - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #e67e22;
  --primary-hover: #cf6d17;
  --primary-light: rgba(230, 126, 34, 0.1);
  --background: #ffffff;
  --foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
  --radius: 0.75rem;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.2);
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 36px;
  width: auto;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}

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

.nav-cta {
  margin-left: 0.5rem;
}

.mobile-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu open */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  gap: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.main-nav.open .nav-link {
  padding: 0.5rem 0;
}

.main-nav.open .nav-cta {
  margin-left: 0;
  width: 100%;
  text-align: center;
}

/* --- Main Content --- */
.main-content {
  padding-top: 68px;
}

/* --- Hero --- */
.hero-section {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Quick Info --- */
.quick-info {
  background: var(--muted);
  padding: 2rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}

.info-item h3 {
  font-weight: 500;
  font-size: 1rem;
}

.info-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: var(--muted);
}

.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-title-serif {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  text-wrap: balance;
}

.section-desc {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

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

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
}

/* --- Rooms --- */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.room-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.room-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.room-images {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.room-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}

.room-img.active {
  opacity: 1;
}

.room-img-nav {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.6);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
}

.img-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0.25rem;
}

.img-nav-btn svg {
  width: 1rem;
  height: 1rem;
}

.img-counter {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
}

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

.room-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.room-desc {
  color: var(--muted-foreground);
}

.room-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.feature-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price-amount {
  font-size: 1.5rem;
  font-weight: 700;
}

.price-period {
  color: var(--muted-foreground);
}

/* --- Amenities --- */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.amenity-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.amenity-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.amenity-icon {
  width: 3rem;
  height: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.amenity-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.amenity-card p {
  color: var(--muted-foreground);
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

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

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

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #fff;
  padding: 0.5rem;
  z-index: 10;
}

.lightbox-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  padding: 0.5rem;
  z-index: 10;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-prev svg,
.lightbox-next svg {
  width: 2rem;
  height: 2rem;
}

.lightbox-content {
  max-width: 80vw;
  max-height: 80vh;
}

.lightbox-content img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 500;
}

.testimonial-location {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.star-filled {
  width: 1.25rem;
  height: 1.25rem;
  color: #f59e0b;
  fill: #f59e0b;
}

.testimonial-text {
  color: var(--muted-foreground);
  font-style: italic;
  line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
  background: var(--muted);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.footer-desc {
  color: var(--muted-foreground);
  margin-top: 1rem;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  transition: all 0.2s;
}

.social-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.social-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-heading {
  font-weight: 500;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  transition: color 0.2s;
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* --- Mobile Call Button --- */
.mobile-call-btn {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(230,126,34,0.4);
  animation: blink 1.5s infinite;
}

.mobile-call-btn svg {
  width: 2rem;
  height: 2rem;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* --- Subpages --- */
.subpage-section {
  padding-top: 6rem;
}

.subpage-content {
  max-width: 768px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

.subpage-wide {
  max-width: 896px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.8;
}

.back-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.prose {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.prose ul li {
  margin-bottom: 0.75rem;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (min-width: 640px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

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

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

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

  .subpage-content {
    padding: 2.5rem;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .mobile-controls {
    display: none;
  }

  .mobile-call-btn {
    display: none;
  }

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

  .about-image {
    aspect-ratio: auto;
    height: 500px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Large Desktop */
@media (min-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .amenities-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
