/* ==========================================================================
   TKANAL THEME - MAIN COMPONENT & LAYOUT STYLES
   ========================================================================== */

/* Structure Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-normal);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow-md);
}

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

/* Brand Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.logo-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.logo-text span {
  color: var(--accent);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.75)),
              url('../images/hero-drone-sunset.jpg') center/cover no-repeat;
  color: white;
  padding: 8rem 0 5rem 0;
  text-align: center;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f8fafc;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.hero-title span {
  color: var(--primary-light);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Floating Quick Search Bar avec Calendrier */
.hero-search-bar {
  margin-top: 3.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  text-align: left;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.search-field select,
.search-field input[type="text"],
.search-field input[type="tel"],
.search-field input[type="email"],
.search-field input[type="date"] {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background: white;
  outline: none;
  transition: var(--transition-fast);
}

/* Style des sélecteurs de calendrier HTML5 */
input[type="date"] {
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(0.3) sepia(1) saturate(5) hue-rotate(185deg);
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* --------------------------------------------------------------------------
   SECTIONS & SECTIONS HEADINGS
   -------------------------------------------------------------------------- */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-subtitle {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--bg-dark);
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.about-img-secondary {
  position: absolute;
  bottom: -2rem;
  right: -1.75rem;
  width: 54%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 4px solid #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition-fast);
}

.feature-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  background: #e0f2fe;
  color: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 0.95rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: var(--bg-dark);
}

.feature-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   ROOMS / CHAMBRES CARDS
   -------------------------------------------------------------------------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.room-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

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

.room-card:hover .room-thumb img {
  transform: scale(1.06);
}

.room-price-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.room-price-tag span {
  color: var(--accent);
  font-size: 1.1rem;
}

.room-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.room-meta {
  display: flex;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.room-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.room-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --------------------------------------------------------------------------
   ACTIVITIES & POOL SECTION
   -------------------------------------------------------------------------- */
.activities-section {
  background: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.activities-section .section-title {
  color: white;
}

.activities-section .section-description {
  color: rgba(255,255,255,0.7);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.activity-card {
  background: var(--bg-card-dark);
  border: 1px solid var(--glass-dark-border);
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  text-align: center;
}

.activity-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.15);
}

.activity-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(16, 185, 129, 0.2));
  color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem auto;
}

.activity-card h3 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.activity-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-normal);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: white;
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h4 {
  color: white;
  font-size: 1.1rem;
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: #090d16;
  color: rgba(255, 255, 255, 0.75);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 35px;
  height: 2px;
  background: var(--accent);
}

.footer-col p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info-item i {
  color: var(--primary-light);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   MODAL BOOKING POPUP
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #e2e8f0;
}

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-search-bar {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-img-secondary {
    position: static;
    width: 100%;
    margin-top: 1.5rem;
    height: 280px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    clip-path: circle(0% at 100% 0%);
    transition: clip-path 0.4s ease-in-out;
  }
  .main-nav.open {
    clip-path: circle(140% at 100% 0%);
  }
  .nav-links {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }
  .hero-search-bar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
