/* ============================================
   White Penguin — Global Stylesheet
   ============================================ */

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

:root {
  --color-primary: #1e3a4f;
  --color-primary-light: #2e6080;
  --color-accent: #f39c12;
  --color-bg: #ffffff;
  --color-bg-light: #f8f9fa;
  --color-text: #2c3e50;
  --color-text-light: #7f8c8d;
  --color-white: #ffffff;
  --font-heading: 'Dancing Script', cursive;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary-light); text-decoration: none; }
a:hover { color: var(--color-primary); }

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

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  height: var(--nav-height);
  transition: background 0.3s;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-logo img { height: 45px; width: auto; border-radius: 50%; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 8px 14px;
  color: var(--color-text);
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid #e0e0e0;
}

.lang-switcher a {
  padding: 4px 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-radius: 4px;
  text-transform: uppercase;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/hero-desktop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

@media (max-width: 768px) {
  .hero-bg {
    background-image: url('../images/hero/hero-mobile.jpg');
  }
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px;
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  border: none;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

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

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

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

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

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

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

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- Sections --- */
section { padding: 80px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 15px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* --- Highlights / Feature Cards --- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.highlight-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.highlight-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.highlight-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.highlight-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- About Preview (Home) --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-preview img {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.about-preview h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.about-preview p {
  margin-bottom: 15px;
  color: var(--color-text-light);
}

/* --- Booking Section --- */
.booking-section { text-align: center; }

.booking-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.booking-links a {
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.booking-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* --- The House Page --- */
.house-intro .about-preview {
  align-items: start;
}

.house-intro .about-preview img { border-radius: 12px; }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.amenity-item .icon { font-size: 1.5rem; }
.amenity-item span { font-size: 0.95rem; }

/* --- Gallery --- */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gallery-filters button {
  padding: 8px 20px;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.gallery-filters button:hover,
.gallery-filters button.active {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.gallery-grid.preview .gallery-item:last-child {
  display: none;
}

@media (max-width: 768px) {
  .gallery-grid.preview .gallery-item:last-child {
    display: block;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

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

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

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  background: rgba(0,0,0,0.3);
  border: none;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 4px;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

/* --- Reviews Page --- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
}

.review-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.review-stars {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  font-style: italic;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.review-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.review-author strong {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.review-author span {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* --- Location Page --- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.location-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

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

.location-card-body { padding: 25px; }
.location-card h3 { color: var(--color-primary); margin-bottom: 10px; font-size: 1.2rem; }
.location-card p { color: var(--color-text-light); font-size: 0.95rem; }

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* --- Prices Page --- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.price-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
}

.price-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: var(--color-bg-light); }

.nightsbridge-cta {
  text-align: center;
  margin: 30px 0 15px;
}

.btn-book-now {
  font-size: 1.15rem;
  padding: 16px 36px;
  letter-spacing: 0.5px;
}

.booking-alt-text {
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin: 10px 0 5px;
}

/* Direct Booking Benefit Box */
.direct-benefit-box {
  max-width: 480px;
  margin: 0 auto 25px;
  padding: 18px 25px;
  background: var(--color-white);
  border-left: 4px solid var(--color-accent);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  text-align: left;
}

.direct-benefit-box .benefit-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 4px;
}

.direct-benefit-box .benefit-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 15px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
}

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

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-info-item .icon { font-size: 1.5rem; color: var(--color-primary); }
.contact-info-item h4 { margin-bottom: 5px; }
.contact-info-item p { color: var(--color-text-light); }

/* --- Footer --- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 50px 0 25px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 5px; }

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transition: background 0.3s;
}

.footer-social a:hover { background: rgba(255,255,255,0.3); }
.footer-social img { width: 20px; height: 20px; filter: brightness(0) invert(1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .nav-menu.active { transform: translateX(0); }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 12px 16px;
  }

  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 15px;
    border-top: 1px solid #eee;
    justify-content: center;
  }

  .hero h1 { font-size: 2.4rem; }
  .hero .subtitle { font-size: 1.1rem; }

  .about-preview,
  .house-intro,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 25px; }

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

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

  .lightbox-nav { font-size: 2rem; padding: 10px 15px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-content { padding: 20px; }
  .btn { padding: 12px 24px; font-size: 1rem; }
}

/* --- Cookie Consent Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transition: transform 0.4s ease;
}

#cookie-banner.cookie-banner-hidden {
  transform: translateY(100%);
}

.cookie-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner-content p {
  flex: 1;
  min-width: 250px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner-content a:hover { color: var(--color-white); }

.cookie-banner-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner-buttons .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .cookie-banner-content { flex-direction: column; text-align: center; }
  .cookie-banner-buttons { justify-content: center; }
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-top: 35px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.legal-content p {
  margin-bottom: 12px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.legal-content ul li {
  margin-bottom: 6px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-bottom: 30px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
}

.legal-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  vertical-align: top;
}

.legal-table td:first-child { width: 180px; }

/* --- Events Page --- */
.events-updated {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  text-align: right;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.event-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.event-card h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.event-card p {
  color: var(--color-text-light);
  font-size: 0.93rem;
  line-height: 1.6;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.event-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.tag-market { background: #e8f5e9; color: #2e7d32; }
.tag-nature { background: #e3f2fd; color: #1565c0; }
.tag-sport { background: #fff3e0; color: #e65100; }
.tag-festival { background: #f3e5f5; color: #7b1fa2; }

.footer-legal {
  margin-top: 15px;
  display: flex;
  gap: 15px;
}

.footer-legal a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

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

@media (max-width: 768px) {
  .events-grid { grid-template-columns: 1fr; }
  .legal-table td:first-child { width: 120px; }
}
