:root {
    --primary-color: #00a6a6; /* Tropical teal */
    --secondary-color: #ffb703; /* Warm accent */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.center{
    text-align: center;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background: var(--light-bg);
    line-height: 1.6;
}

header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    max-width: var(--max-width);
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5em;
    color: var(--primary-color);
}

header ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

header a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.2s;
}

header a:hover {
    color: var(--primary-color);
}


/* Top 5 slide-down */
.top5-panel {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  overflow: hidden;
}
.top5-inner{
  max-width: var(--max-width, 1100px);
  margin: 0 auto;
  padding: 14px 16px;
}
.top5-list{
  display:flex; flex-wrap:wrap; gap:10px 16px;
  list-style:none; padding:0; margin:0;
}
.top5-list a{
  text-decoration:none; color:#333; background:#f7faf9; border:1px solid #e5f2f1;
  padding:8px 12px; border-radius:8px; transition:background .2s, border-color .2s;
}
.top5-list a:hover{ background:#eef7f6; border-color:#cfe7e7; }
.top5-empty{ color:#666; }

/* Default: mobile submenu hidden on desktop */
.top5-submenu { display: none; }

/* Desktop slide-down panel styles (you already have these) */
.top5-panel { /* your existing styles */ }

/* Mobile: hide desktop panel; show nested submenu */
@media (max-width: 768px) {
  #top5Panel { display: none !important; }
  .top5-submenu {
    display: block;        /* now it can be toggled with [hidden] */
    list-style: none;
    margin: 6px 0 0;
    padding-left: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height .25s ease;
    border-left: 2px solid #e8f2f2;
  }
  .top5-submenu.open { max-height: 600px; }
  .top5-submenu li a {
    display:block; padding:8px 10px 8px 12px; border-radius:8px;
    text-decoration:none; color:#333; margin:4px 0;
    background:#f7faf9; border:1px solid #e5f2f1;
  }
  .top5-submenu li a:hover { background:#eef7f6; border-color:#cfe7e7; }
  .top5-submenu .empty { color:#777; padding:8px 0 0 2px; }
}


/* Hero section for homepage */
.hero {
    height: 400px;
    background: url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero h2 {
    font-size: 2.5em;
    z-index: 1;
}

/* Post list (cards) */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    max-width: var(--max-width);
    margin: auto;
    padding: 30px 15px;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-card:hover {
    transform: translateY(-3px);
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: var(--primary-color);
}

.post-card-content p {
    flex: 1;
    color: #555;
    font-size: 0.95em;
}

.post-card-content a {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 10px;
    align-self: flex-start;
}

/* Single post page
.single-post {
    max-width: var(--max-width);
    margin: auto;
    padding: 30px 15px;
    background: white;
    border-radius: 8px;
}

.single-post img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.single-post h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
} */

.single-post time {
    font-size: 0.9em;
    color: #888;
}

.single-post {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.single-post h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}
.single-post time {
    display: block;
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
}
.single-post p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.single-post figure {
    margin: 1rem 0;
    text-align: center;
}
.single-post picture img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}
.single-post figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: white;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 250px;
    }
    .hero h2 {
        font-size: 1.8em;
    }
}


/* ===== Responsive Navbar with Overlay ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001; /* Above overlay */
}

/* Overlay behind mobile menu */
.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        background: #fff;
        flex-direction: column;
        width: 250px;
        height: 100vh;
        padding: 2rem 1.5rem;
        gap: 1rem;
        box-shadow: -4px 0 8px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 950;
    }

    .nav-links.active {
        right: 0;
    }
}

/* ===== Hero Section ===== */

.hero {
    --bg1: url('/images/hero1.jpg');
    --bg2: url('/images/hero2.jpg');
    --fade1: 1;
    --fade2: 0;

    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 0 20px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.hero::before {
    background-image: var(--bg1);
    opacity: var(--fade1);
}

.hero::after {
    background-image: var(--bg2);
    opacity: var(--fade2);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #ff6600;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: #e65c00;
}

/* Tablet adjustments */
@media (max-width: 992px) {
    .hero {
        min-height: 70vh;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .hero {
        min-height: auto; /* Let content set height */
        padding: 60px 20px;
    }
    .hero-content h1 {
        font-size: 1.6rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}



/*
.hero {
    position: relative;
    height: 90vh;
    background: url('/images/hero1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    transition: background-image 1s ease-in-out; 
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 1rem;
}*/

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.hero-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    background-color: #ff7b00;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
    background-color: #e66a00;
    transform: translateY(-2px);
}

/* Responsive Hero Text */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}



/* Grid container */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Card styles */
.post-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.post-card a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}

/* Image section */
.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* Content section */
.post-content {
    padding: 15px;
}

.post-content h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post-content p {
    font-size: 0.95rem;
    color: #555;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .post-image {
        height: 180px;
    }
    .post-content h2 {
        font-size: 1.1rem;
    }
}

.no-image {
    width: 100%;
    height: 200px;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.page-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.about-hero, .contact-hero {
    text-align: center;
    padding: 40px 20px;
}

.about-hero h1, .contact-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    color: #777;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    flex: 1 1 500px;
}

.about-text h2 {
    margin-bottom: 15px;
}

.about-image {
    flex: 1 1 350px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Contact Form */
.contact-form-section {
    margin-top: 40px;
}

.contact-form {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #009688;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,150,136,0.15);
}

.btn-primary {
    background: #009688;
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #00796b;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
}
.contact-page {
    max-width: 700px;
    margin: 40px auto;
}

.form-success {
    background: #e6f7f4;
    color: #00695c;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-errors {
    background: #fdecea;
    color: #c62828;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-errors ul {
    margin: 0;
    padding-left: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form button.btn-primary {
    background: #0077cc;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button.btn-primary:hover {
    background: #005fa3;
}

.honeypot {
    display: none;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 15px;
    display: inline-block;
}

.btn-danger:hover {
    background: #b52a37;
}

.btn-danger:disabled {
    background: #e07a84;
    cursor: not-allowed;
}

.button-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}
.btn-primary:hover {
    background: #0056b3;
}

.btn-danger {
    background: #dc3545 !important;
    color: white;
}
.btn-danger:hover {
    background: #b52a37;
}

/* Figures (single image) */
.figure { margin: 18px 0; }
.figure img { width:100%; height:auto; display:block; border-radius:8px; }
.figure figcaption { font-size:.9rem; color:#666; margin-top:6px; text-align:center; }
.figure.align-left { float:left; margin: 6px 16px 10px 0; max-width: 48%; }
.figure.align-right { float:right; margin: 6px 0 10px 16px; max-width: 48%; }
.figure.align-center { margin-left:auto; margin-right:auto; }
.figure.w-narrow { max-width: 480px; }
.figure.w-wide { max-width: 900px; }

/* Clear floats inside single-post if needed */
.single-post::after { content:""; display:block; clear:both; }

/* Split (text + image side-by-side) */
.split { display:grid; grid-template-columns: 1fr 1fr; gap:20px; align-items:center; margin: 24px 0; }
.split.text-left  .split-text { order: 1; }
.split.text-left  .split-image{ order: 2; }
.split.text-right .split-text { order: 2; }
.split.text-right .split-image{ order: 1; }
.split-image img { width:100%; height:auto; display:block; border-radius:8px; }
.split-image figcaption { font-size:.9rem; color:#666; margin-top:6px; text-align:center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display:grid; gap:14px; margin: 22px 0; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery img { width:100%; height:100%; object-fit:cover; display:block; border-radius:8px; aspect-ratio: 4 / 3; }
/*.gallery figure { margin:0; }*/
.gallery figcaption { font-size:.85rem; color:#666; margin-top:6px; text-align:center; }
@media (max-width: 640px) {
  .gallery.cols-3 { grid-template-columns: repeat(2, 1fr); } /* stack a bit on small screens */
}
.post-text p { margin: 0 0 1rem; }
.post-text ul, .post-text ol { margin: 0 0 1rem 1.2rem; }
.post-text a { color: #0a66c2; }

.rte { border:1px solid #ddd; border-radius:10px; background:#fff; }
.rte-toolbar {
  display:flex; gap:6px; align-items:center; padding:8px; border-bottom:1px solid #eee; background:#fafafa;
  border-top-left-radius:10px; border-top-right-radius:10px;
}
.rte-btn {
  background:#fff; border:1px solid #ddd; border-radius:6px; padding:6px 10px; cursor:pointer; font:inherit;
}
.rte-btn:hover { border-color:#bbb; }
.rte-divider { flex:0 0 1px; height:22px; background:#e5e7eb; margin:0 4px; }
.rte-editor {
  min-height:140px; padding:10px 12px; outline:none; border-bottom-left-radius:10px; border-bottom-right-radius:10px;
}
.rte-editor:focus { box-shadow: inset 0 0 0 2px rgba(0,166,166,0.15); }
.rte-editor a { color:#0a66c2; text-decoration:underline; }
.rte-editor ul, .rte-editor ol { margin-left: 1.2em; }


















.leaflet-wrap{width:100%;height:100%;background:#f8f9fa;border-radius:10px;overflow:hidden;touch-action:none;overscroll-behavior:contain}
.map-zoom{position:absolute;right:10px;bottom:10px;z-index:1000;display:flex;flex-direction:column;gap:8px}
.map-zoom button{width:40px;height:40px;border:1px solid #ddd;border-radius:8px;background:#fff;font-size:18px;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.marker-label{font:600 13px/1.2 system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;color:#222;background:rgba(255,255,255,.9);border:1px solid rgba(0,0,0,.15);border-radius:6px;padding:3px 6px;box-shadow:0 1px 4px rgba(0,0,0,.1)}
.marker-label.leaflet-tooltip-left::before,.marker-label.leaflet-tooltip-right::before,.marker-label.leaflet-tooltip-top::before,.marker-label.leaflet-tooltip-bottom::before{display:none}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.45);display:none;align-items:center;justify-content:center;padding:20px;z-index:2000}
.modal.show{display:flex}
.modal__dialog{background:#fff;width:min(100%,900px);max-height:90vh;border-radius:12px;display:flex;flex-direction:column;overflow:hidden}
.modal__header{padding:12px 16px;background:#f7f7f8;display:flex;align-items:center;gap:10px}
.modal__body{padding:12px 16px;overflow:auto}
.modal__close{border:0;background:transparent;font-size:20px;cursor:pointer}
.post-view img{max-width:100%;height:auto;border-radius:8px}
.post-view p{line-height:1.6;color:#2a2a2a}

/* Figure / split / gallery styling to match your post view */
.post-view .figure{margin:0}
.post-view .figure figcaption{font-size:.9rem;color:#666;margin-top:6px}
.post-view .align-left  .figure img{margin-left:0}
.post-view .align-center .figure img{margin-left:auto;margin-right:auto;display:block}
.post-view .align-right .figure img{margin-right:0;margin-left:auto}
.post-view .w-full img{max-width:100%}
.post-view .w-wide img{max-width:900px}
.post-view .w-narrow img{max-width:560px}
.post-view .split{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.post-view .split.text-right{direction:rtl}.post-view .split.text-right>*{direction:ltr}
@media (max-width:800px){.post-view .split{grid-template-columns:1fr}}
.post-view .gallery{display:grid;gap:12px}
.post-view .gallery.cols-2{grid-template-columns:repeat(2,1fr)}
.post-view .gallery.cols-3{grid-template-columns:repeat(3,1fr)}
.post-view .gallery figure{margin:0}
.post-view .gallery img{width:100%;height:auto;border-radius:10px;display:block}