:root {
  --navy: #003366;
  --yellow: #FFCC00;
  --light-blue: #A3C9E4;
  --orange: #FF3300;
  --text: #333;
  --hover: #FF6600;
}

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

html, body { overflow-x: hidden; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: var(--text);
  background: #e8e8e8;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--hover); }

/* ── Hero banner ── */
.site-header {
  background: var(--navy);
  position: relative;
  height: 440px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

/* Rotating photo slides — base layer, always visible */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 18s infinite both;
}
.hero-slide:nth-child(1) { background-image: url('images/hero1.jpg'); animation-delay: 0s; }
.hero-slide:nth-child(2) { background-image: url('images/hero2.jpg'); animation-delay: 6s; }
.hero-slide:nth-child(3) { background-image: url('images/hero3.jpg'); animation-delay: 12s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  28%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Video layer — on top of slides, only on home page */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.20) 0%, rgba(0,20,50,0.68) 100%);
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 16px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-title {
  color: #fff;
  font-size: 34px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  line-height: 1.1;
}
.hero-title span { color: var(--yellow); }
.hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: normal;
  margin-top: 5px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.6);
}

/* ── Top nav bar ── */
.topbar {
  background: var(--navy);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 4px 8px;
  gap: 4px;
  min-height: 46px;
}
.topbar .breadcrumb {
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  flex: 1;
  min-width: 120px;
}
.topbar-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar-links a {
  color: var(--navy);
  background: #e8e8e8;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 2px;
}
.topbar-links a:hover { color: var(--hover); background: #fff; }
.topbar-links a.active { background: var(--yellow); }
.topbar-contact {
  background: #99CCCC;
  border: 1px solid #fff;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: bold;
  color: var(--navy);
  border-radius: 2px;
  margin-left: 4px;
}
.topbar-contact:hover { color: var(--hover); }

/* ── Three-column layout ── */
.layout {
  display: grid;
  grid-template-columns: 160px 1fr 180px;
  width: 100%;
  margin: 6px 0;
  gap: 6px;
  align-items: start;
  padding: 0 6px;
}

/* ── Left nav ── */
.site-nav { background: #fff; }
.nav-heading {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 5px 3px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-heading a { color: #fff; }
.nav-item {
  display: block;
  background: var(--light-blue);
  border: 1px solid var(--navy);
  border-bottom: none;
  padding: 3px 5px 3px 7px;
  font-size: 11px;
  font-weight: bold;
  color: #000;
  width: 100%;
}
.nav-item:last-of-type { border-bottom: 1px solid var(--navy); }
.nav-item:hover { color: var(--hover); background: #c8dff0; }
.nav-item.active { background: var(--yellow); }
.nav-recommend {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 5px 3px 6px;
  margin-top: 6px;
}
.nav-recommend a { color: #fff; }
.sidebar-img-box {
  border: 1px solid var(--navy);
  margin-top: 4px;
  overflow: hidden;
}
.sidebar-img-box img { display: block; width: 100%; height: auto; }
.sidebar-img-box a { display: block; }

/* ── Main content ── */
main {
  background: #fff;
  min-height: 400px;
}
.page-title {
  font-size: 18px;
  font-weight: bolder;
  padding: 4px 4px 4px 15px;
  border: 1px solid #fff;
  color: var(--navy);
}
.page-title.red { background: var(--orange); }
.page-title.yellow { background: var(--yellow); }

.content-body {
  font-size: 11px;
  padding: 10px 12px;
  text-align: justify;
  line-height: 1.6;
}
.content-body img { max-width: 100%; height: auto; display: block; margin: 10px auto; }
.content-body p { margin-bottom: 10px; }
.content-body strong { font-weight: bold; }

/* ── Accommodation / hotel cards ── */
.listing {
  padding: 0;
}
.listing-item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ddd;
}
.listing-item:last-child { border-bottom: none; }
.listing-img { flex-shrink: 0; }
.listing-img img { display: block; width: 200px; height: auto; }
.listing-info {
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.7;
}
.listing-title {
  background: var(--yellow);
  color: var(--navy);
  font-size: 13px;
  font-weight: bold;
  padding: 4px 10px;
  border-bottom: 1px solid #ddd;
}
.listing-title a { color: var(--navy); }
.listing-title a:hover { color: var(--hover); }

/* ── Photo gallery ── */
.gallery-intro {
  padding: 8px 10px;
  font-size: 11px;
  color: #555;
}
/* Pagination */
.gallery-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
}
.gallery-pager button {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 2px;
  font-size: 12px;
}
.gallery-pager button:disabled { background: #aaa; cursor: default; }
.gallery-pager button:hover:not(:disabled) { background: var(--hover); }
.pager-info { color: #555; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 4px;
  padding: 8px;
}
.gallery-grid a { display: block; overflow: hidden; border: 1px solid #ccc; }
.gallery-grid img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}
.gallery-grid a:hover img { opacity: 0.85; transform: scale(1.04); }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 88vh; object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.lightbox-close {
  position: fixed;
  top: 14px; right: 20px;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; color: var(--yellow); }
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 10px 14px;
  transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255,255,255,0.3); }
.lb-btn.prev { left: 8px; }
.lb-btn.next { right: 8px; }

/* ── Right sidebar ── */
.right-sidebar { font-size: 11px; }
.search-box {
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
}
.search-box input[type=text] {
  width: 100%;
  padding: 4px;
  margin-bottom: 4px;
  border: 1px solid #aaa;
  font-size: 12px;
}
.search-box button {
  padding: 4px 12px;
  background: var(--navy);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  border-radius: 2px;
}
.search-box button:hover { background: var(--hover); }
.rs-box { border: 1px solid var(--navy); margin-top: 8px; overflow: hidden; }
.rs-box img { display: block; width: 100%; height: auto; }
.rs-box a { display: block; }
.rs-text {
  font-size: 9px;
  text-align: center;
  padding: 8px 6px;
  line-height: 1.5;
}

/* ── Home weather ── */
.home-content {
  padding: 12px 10px;
  text-align: center;
}

/* ── Links page ── */
.links-list { padding: 8px 12px; }
.links-list li {
  font-size: 11px;
  line-height: 1.7;
  list-style: disc;
  margin-left: 16px;
  margin-bottom: 8px;
}

/* ── Footer ── */
.site-footer {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  width: 100%;
  margin: 8px 0 0;
  padding: 6px 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-links a { color: #aac; font-size: 12px; font-weight: bold; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.75;
  padding-top: 4px;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── Full article pages (posts/*.html) ── */
.post-article { padding: 12px 16px; }
.post-article-back {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: bold;
  color: var(--navy);
}
.post-article-back:hover { color: var(--hover); }
.post-article-date { font-size: 10px; color: #888; font-style: italic; margin-bottom: 12px; }
.post-article-body { font-size: 12px; line-height: 1.7; color: #333; text-align: justify; }
.post-article-body p { margin-bottom: 12px; }
.post-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
.post-img-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid #ccc;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}
.post-img-grid img:hover { opacity: 0.85; }
.post-img-single { margin: 16px 0; text-align: center; }
.post-img-single img { max-width: 100%; height: auto; border: 1px solid #ccc; display: inline-block; }

/* ── Hamburger button ── */
/* Mobile-first: visible by default, hidden on desktop */
.mobile-menu-btn {
  display: inline-block;
  background: none;
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  padding: 3px 10px;
  font-size: 17px;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1.2;
  margin-right: 6px;
}

/* ── Mobile-first defaults ── */
/* Hero: short on mobile */
.site-header { height: 220px; }
.hero-title  { font-size: 22px; }
.hero-subtitle { font-size: 11px; }

/* Layout: single column on mobile */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0;
  gap: 0;
  padding: 0 3px;
}

/* Nav hidden by default (hamburger reveals it) */
#site-nav { order: 1; display: none; }
#site-nav.nav-open { display: block; }
main { order: 2; }

/* Top nav links hidden on mobile */
.topbar-links { display: none; }

/* Hide sidebar images and right sidebar on mobile */
.nav-recommend   { display: none; }
.sidebar-img-box { display: none; }
.right-sidebar   { display: none; }

/* Constrain third-party iframes to screen width */
iframe { max-width: 100% !important; width: 100% !important; }

/* ── Desktop overrides (≥ 681px) ── */
@media (min-width: 681px) {
  /* Hero: full height on desktop */
  .site-header { height: 440px; }
  .hero-title  { font-size: 34px; }
  .hero-subtitle { font-size: 13px; }

  /* Three-column layout */
  .layout {
    grid-template-columns: 160px 1fr 180px;
    margin: 6px 0;
    gap: 6px;
    padding: 0 6px;
  }

  /* Nav always visible on desktop, hamburger hidden */
  #site-nav { display: block !important; order: unset; }
  main { order: unset; }
  .mobile-menu-btn { display: none; }
  .topbar-links { display: flex; }

  /* Show sidebar elements on desktop */
  .nav-recommend   { display: block; }
  .sidebar-img-box { display: block; }
  .right-sidebar   { display: block; }

  /* Listings */
  .listing-item { flex-direction: row; }
  .listing-img img { width: 200px; }
}
