/* -----------------------------------------------------------
   GLOBAL
----------------------------------------------------------- */

/* Google Font for small-text readability */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: #333;
    background: #fff;
    padding-top: 80px; /* space for fixed header */
}

a { 
    text-decoration: none; 
    color: #0077cc; 
}
a:hover { 
    text-decoration: underline; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.logo a {
    font-size: 1.6rem;
    font-weight: bold;
    color: #0077cc;
}

/* -----------------------------------------------------------
   HEADER
----------------------------------------------------------- */
.site-header {
    background: #e8f4ff !important;
    border-bottom: 1px solid #cfe4ff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

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

/* -----------------------------------------------------------
   NAVIGATION
----------------------------------------------------------- */
.main-nav {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-size: 1rem;
    color: #000;
}

/* Burger Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
}

/* Desktop */
@media (min-width: 769px) {
    .menu-toggle { display: none; }
    .main-nav { display: flex; }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #e8f4ff;
        width: 220px;
        flex-direction: column;
        padding: 15px;
        display: none;
        border-left: 1px solid #cfe4ff;
        border-bottom: 1px solid #cfe4ff;
    }

    .main-nav.open { display: flex; }
}

/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */
.site-footer {
    background: #f5f5f5;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}

/* Emergency Boxes Grid */
.footer-emergency {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 10px;
    text-align: center;
}

.emergency-box {
    background: #ffffff;
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.emergency-box h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.emergency-box p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.emergency-box a[href^="tel"] {
    color: #cc0000;
    font-weight: bold;
}

.emergency-box a[href^="tel"]:hover {
    text-decoration: underline;
}

.emergency-link {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #0077cc;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.emergency-link:hover {
    background: #005fa3;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* -----------------------------------------------------------
   ALERT BOX
----------------------------------------------------------- */
.alert-box {
    background: #ffdddd;
    border-left: 4px solid #cc0000;
    padding: 12px 16px;
    margin: 0 auto 20px auto;
    width: 90%;
    max-width: 1200px;
    font-size: 0.95rem;
    color: #660000;
}

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 155px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------------------------
   INTRO
----------------------------------------------------------- */
.intro {
    margin: 40px auto;
    text-align: center;
    max-width: 800px;
}

.intro h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* -----------------------------------------------------------
   ABOUT LOURINHA
----------------------------------------------------------- */
.about-lourinha {
    margin: 50px auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
}

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------
   HIGHLIGHTS (kept, improved)
----------------------------------------------------------- */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin: 40px auto;
}

.highlight-card {
    background: #e8e8e8;
    border: 1px solid #bbb;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.highlight-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.highlight-card h3 {
    margin: 10px 0;
}

.highlight-card p {
    color: #555;
    font-size: 0.95rem;
}

/* -----------------------------------------------------------
   CATEGORY CARDS (improved)
----------------------------------------------------------- */
.categories h2 {
    text-align: center;
    margin-top: 40px;
}

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

.category-card {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ccc;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.category-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
}

.category-card h3 {
    margin: 10px 0;
}

.category-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 10px;
}

.category-card .read-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: bold;
    color: #0077cc;
}

/* -----------------------------------------------------------
   TOP 10
----------------------------------------------------------- */
.top10 h2 {
    margin-top: 50px;
}

.top10 ul {
    margin-top: 15px;
    line-height: 1.8;
}

/* -----------------------------------------------------------
   PLACE PAGES
----------------------------------------------------------- */
.place-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.place-sidebar {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 15px;
}

/* Responsive Google Maps iframe */
.map-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #e5e5e5;
}

.map-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 800px) {
    .place-content {
        grid-template-columns: 1fr;
    }
}

/* -----------------------------------------------------------
   SEARCH
----------------------------------------------------------- */
.search-form {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.search-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* -----------------------------------------------------------
   MOBILE EMERGENCY BAR
----------------------------------------------------------- */
.emergency-bar-mobile {
    display: none;
}

@media (max-width: 768px) {
    .emergency-bar-mobile {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #cc0000;
        text-align: center;
        padding: 12px 0;
        z-index: 99999;
        box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
    }

    .emergency-bar-mobile a {
        color: #fff;
        font-size: 1.2rem;
        font-weight: bold;
        letter-spacing: 0.5px;
    }

    body {
        padding-bottom: 60px;
    }
}
