/**
 * Maricelle B&B - Custom Theme Overrides
 * Mediterranean Coastal Theme applied to Bellevue template
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ============================================
   CSS Custom Properties - Mediterranean Coastal
   ============================================ */
:root {
  /* Colors */
  --mc-bg: #FAF8F5;
  --mc-sand: #E8DCC4;
  --mc-sand-light: #F2EBE0;
  --mc-ocean: #2E6B8A;
  --mc-ocean-light: #3A7D9E;
  --mc-terracotta: #C2703E;
  --mc-terracotta-dark: #A85C30;
  --mc-text: #2C2C2C;
  --mc-text-light: #5A5A5A;
  --mc-white: #FFFFFF;

  /* Typography */
  --mc-font-heading: 'Playfair Display', Georgia, serif;
  --mc-font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================
   Global Typography Overrides
   ============================================ */
body {
  font-family: var(--mc-font-body), serif;
  background-color: var(--mc-bg);
  color: var(--mc-text);
}

h1, h2, h3, h4, h5, h6,
.thmv-wel-title,
.thmv-sec-title {
  font-family: var(--mc-font-heading);
  color: var(--mc-ocean);
}

/* ============================================
   Button Overrides
   ============================================ */
.btn-full-filled {
  background-color: var(--mc-terracotta);
  border-color: var(--mc-terracotta);
  color: var(--mc-white);
}

.btn-full-filled:hover,
.btn-full-filled:focus {
  background-color: var(--mc-terracotta-dark);
  border-color: var(--mc-terracotta-dark);
  color: var(--mc-white);
}

.btn-outline {
  border-color: var(--mc-ocean);
  color: var(--mc-ocean);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--mc-ocean);
  border-color: var(--mc-ocean);
  color: var(--mc-white);
}

/* ============================================
   Navigation Overrides
   ============================================ */
.thmv-top-nav {
  background-color: var(--mc-white);
}

.thmv-top-nav.fixed-top {
  background-color: var(--mc-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thmv-nav-menu ul li a {
  color: var(--mc-text);
  font-family: var(--mc-font-body);
}

.thmv-nav-menu ul li a:hover,
.thmv-nav-menu ul li a.active {
  color: var(--mc-ocean);
}

/* Logo text styling */
.thmv-logo-text {
  font-family: var(--mc-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mc-ocean);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.thmv-logo-text:hover {
  color: var(--mc-ocean-light);
}

/* ============================================
   Section Backgrounds
   ============================================ */
.thmv-bg-dark,
.thmv-footer {
  background-color: var(--mc-ocean);
}

.thmv-bg-light {
  background-color: var(--mc-sand-light);
}

.thmv-bg-sand {
  background-color: var(--mc-sand);
}

.thmv-bg-glass {
  background: rgba(232, 220, 196, 0.9);
  backdrop-filter: blur(8px);
}

/* ============================================
   Hero Section
   ============================================ */
.thmv-main-banner {
  background-size: cover;
  background-position: center;
  position: relative;
}

.thmv-main-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Subtle overlay - keeps original photo colors visible */
  background: linear-gradient(135deg, rgba(46, 107, 138, 0.35) 0%, rgba(194, 112, 62, 0.25) 100%);
}

.thmv-banner-title {
  position: relative;
  z-index: 1;
  /* Semi-transparent background */
  background: rgba(46, 107, 138, 0.75);
  backdrop-filter: blur(4px);
  padding: 2rem 3rem;
  border-radius: 16px;
  color: var(--mc-white);
  max-width: 700px;
}

.thmv-banner-title h1 {
  color: var(--mc-white);
  font-family: var(--mc-font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  white-space: normal;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

@media (max-width: 576px) {
  .thmv-banner-title {
    padding: 1.5rem 2rem;
    max-width: 90%;
  }

  .thmv-banner-title h1 {
    font-size: 1.5rem;
    white-space: normal;
  }
}

/* ============================================
   Cards & Boxes
   ============================================ */
.thmv-facility-box,
.thmv-room-card,
.thmv-info-box {
  background-color: var(--mc-sand);
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thmv-facility-box:hover,
.thmv-room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Links
   ============================================ */
a {
  color: var(--mc-ocean);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--mc-ocean-light);
}

/* ============================================
   Footer
   ============================================ */
.thmv-footer {
  background-color: var(--mc-ocean);
  color: var(--mc-white);
}

.thmv-footer p,
.thmv-footer li,
.thmv-footer span {
  color: rgba(255, 255, 255, 0.9);
}

.thmv-footer a {
  color: rgba(255, 255, 255, 0.9);
}

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

.thmv-footer h4,
.thmv-footer h5,
.thmv-footer h6 {
  color: var(--mc-white);
}

/* CIN/CIR Codes */
.cin-cir-codes {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1rem;
}

/* ============================================
   Language Switcher (Dropdown)
   ============================================ */
.thmv-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.language-switcher,
.lang-dropdown {
  position: relative;
  z-index: 100;
}

.lang-current {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--mc-ocean);
  color: var(--mc-ocean);
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--mc-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-current:hover {
  background: var(--mc-ocean);
  color: var(--mc-white);
}

.lang-current::after {
  content: '';
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s ease;
  margin-left: 2px;
}

.lang-dropdown.open .lang-current::after {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--mc-ocean);
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 110px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  cursor: pointer;
  font-family: var(--mc-font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--mc-text);
  transition: background 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.lang-option:hover {
  background: var(--mc-sand-light);
}

.lang-option.active {
  background: var(--mc-ocean);
  color: var(--mc-white);
}

.lang-flag {
  font-size: 1rem;
}

/* Language content - controlled by JavaScript */
.lang {
  /* Display controlled by JS */
}

/* Hide non-active language content */
html[lang="it"] .lang-en,
html[lang="it"] .lang-fr,
html[lang="it"] .lang-de,
html[lang="it"] .lang-ro,
html[lang="it"] .lang-hu,
html[lang="it"] .lang-pl {
  display: none !important;
}

html[lang="en"] .lang-it,
html[lang="en"] .lang-fr,
html[lang="en"] .lang-de,
html[lang="en"] .lang-ro,
html[lang="en"] .lang-hu,
html[lang="en"] .lang-pl {
  display: none !important;
}

html[lang="fr"] .lang-it,
html[lang="fr"] .lang-en,
html[lang="fr"] .lang-de,
html[lang="fr"] .lang-ro,
html[lang="fr"] .lang-hu,
html[lang="fr"] .lang-pl {
  display: none !important;
}

html[lang="de"] .lang-it,
html[lang="de"] .lang-en,
html[lang="de"] .lang-fr,
html[lang="de"] .lang-ro,
html[lang="de"] .lang-hu,
html[lang="de"] .lang-pl {
  display: none !important;
}

html[lang="ro"] .lang-it,
html[lang="ro"] .lang-en,
html[lang="ro"] .lang-fr,
html[lang="ro"] .lang-de,
html[lang="ro"] .lang-hu,
html[lang="ro"] .lang-pl {
  display: none !important;
}

html[lang="hu"] .lang-it,
html[lang="hu"] .lang-en,
html[lang="hu"] .lang-fr,
html[lang="hu"] .lang-de,
html[lang="hu"] .lang-ro,
html[lang="hu"] .lang-pl {
  display: none !important;
}

html[lang="pl"] .lang-it,
html[lang="pl"] .lang-en,
html[lang="pl"] .lang-fr,
html[lang="pl"] .lang-de,
html[lang="pl"] .lang-ro,
html[lang="pl"] .lang-hu {
  display: none !important;
}

/* ============================================
   Room Galleries (Slick Slider)
   ============================================ */
.room-gallery {
  margin-bottom: 2rem;
  position: relative;
}

.room-gallery .slick-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.room-gallery .slick-prev,
.room-gallery .slick-next {
  z-index: 10;
  width: 50px;
  height: 50px;
  background: rgba(46, 107, 138, 0.8);
  border-radius: 50%;
  transition: background 0.3s ease;
}

.room-gallery .slick-prev:hover,
.room-gallery .slick-next:hover {
  background: rgba(46, 107, 138, 1);
}

.room-gallery .slick-prev:before,
.room-gallery .slick-next:before {
  font-family: inherit;
  font-size: 24px;
  font-weight: 900;
  color: var(--mc-white);
  opacity: 1;
}

.room-gallery .slick-prev:before {
  content: '<';
}

.room-gallery .slick-next:before {
  content: '>';
}

.room-gallery .slick-prev {
  left: 15px;
}

.room-gallery .slick-next {
  right: 15px;
}

.room-gallery .slick-dots {
  bottom: 15px;
}

.room-gallery .slick-dots li button:before {
  color: var(--mc-white);
  opacity: 0.7;
  font-size: 12px;
}

.room-gallery .slick-dots li.slick-active button:before {
  color: var(--mc-terracotta);
  opacity: 1;
}

/* ============================================
   Fullscreen Lightbox
   ============================================ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

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

.lightbox-context {
  color: var(--mc-white);
  font-family: var(--mc-font-heading), serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 1rem;
}

.lightbox-image-container {
  max-width: 90vw;
  max-height: 80vh;
  position: relative;
}

.lightbox-image-container img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--mc-white);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  color: var(--mc-terracotta);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(46, 107, 138, 0.8);
  color: var(--mc-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(46, 107, 138, 1);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Common places gallery */
.common-gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.common-gallery-item:hover {
  transform: scale(1.02);
}

/* ============================================
   Transport Cards
   ============================================ */
.transport-card {
  background: var(--mc-sand);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.transport-card h4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--mc-ocean);
  margin-bottom: 1rem;
}

.transport-card i {
  color: var(--mc-terracotta);
  font-size: 1.5rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-info-box {
  background: linear-gradient(135deg, var(--mc-sand) 0%, var(--mc-sand-light) 100%);
  border-radius: 16px;
  padding: 2rem;
}

.contact-info-box h3 {
  color: var(--mc-terracotta);
}

.contact-info-box a {
  color: var(--mc-ocean);
  font-weight: 600;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #25D366;
  font-weight: 600;
}

.whatsapp-link:hover {
  color: #128C7E;
}

/* ============================================
   Map Section
   ============================================ */
.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* ============================================
   Page Headers (Inner Pages)
   ============================================ */
.thmv-page-header {
  position: relative;
  padding: 6rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

/* Blurred background image (same as homepage hero) */
.thmv-page-header::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background-image: url('../images/slider/castellammare-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(6px);
  z-index: 0;
}

/* Dark overlay for better text readability */
.thmv-page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 107, 138, 0.55);
  z-index: 1;
}

/* Content above the blurred background */
.thmv-page-header .container {
  position: relative;
  z-index: 2;
}

.thmv-page-header h1 {
  color: var(--mc-white);
  font-family: var(--mc-font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.thmv-page-header .breadcrumb {
  color: #fff; /* Increase contrast on header background */
  font-weight: 500;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

/* Breadcrumb links and states for high contrast */
.thmv-page-header .breadcrumb a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.7);
}

.thmv-page-header .breadcrumb a:hover,
.thmv-page-header .breadcrumb a:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thmv-page-header .breadcrumb .breadcrumb-item.active {
  color: #fff;
}

/* Breadcrumb divider color */
.thmv-page-header .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 991px) {
  /* Tablet: Ensure language dropdown doesn't overlap with burger menu */
  .thmv-logo {
    gap: 8px;
  }

  .lang-current {
    padding: 5px 12px;
    font-size: 0.85rem;
  }

  .lang-flag {
    font-size: 0.8rem;
  }

  .lang-menu {
    min-width: 100px;
  }

  .lang-option {
    padding: 3px 10px;
    font-size: 0.95rem;
    line-height: 1.1;
  }
}

@media (max-width: 768px) {
  .thmv-banner-title {
    padding: 2rem;
  }

  .room-gallery .slick-slide img {
    height: 280px;
  }

  .thmv-page-header {
    padding: 5rem 0 3rem;
  }

  .thmv-page-header h1 {
    font-size: 2rem;
  }

  /* Mobile: Compact language dropdown */
  .thmv-logo {
    gap: 6px;
  }

  .lang-current {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .lang-flag {
    font-size: 0.75rem;
  }

  .lang-menu {
    min-width: 95px;
  }

  .lang-option {
    padding: 5px 10px;
    font-size: 0.9rem;
    gap: 4px;
    line-height: 1.1;
  }
}

@media (max-width: 576px) {
  /* Smaller mobile: Even more compact */
  .thmv-logo {
    gap: 4px;
  }

  .lang-current {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-width: 1px;
  }

  .lang-flag {
    font-size: 0.8rem;
  }

  .lang-current::after {
    border-width: 3px;
  }

  .lang-menu {
    min-width: 90px;
  }

  .lang-option {
    padding: 4px 10px;
    font-size: 0.85rem;
    line-height: 1.1;
  }
}

/* ============================================
   Cookie Consent Banner
   ============================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--mc-ocean) 0%, #1D5570 100%);
  color: var(--mc-white);
  padding: 1.5rem 2rem;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-consent-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h4 {
  color: var(--mc-white);
  font-family: var(--mc-font-heading);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mc-white);
}

.cookie-consent-text a {
  color: var(--mc-white);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-consent-text a:hover {
  color: var(--mc-sand-light);
}

.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--mc-font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--mc-terracotta);
  color: var(--mc-white);
  border-color: var(--mc-terracotta);
}

.cookie-btn-accept:hover {
  background: var(--mc-terracotta-dark);
  border-color: var(--mc-terracotta-dark);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--mc-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--mc-white);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cookie-consent {
    padding: 1.25rem 1rem;
  }

  .cookie-consent-container {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-consent-text {
    min-width: auto;
  }

  .cookie-consent-buttons {
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
}
