:root {
    --green:       #1A4314;
    --green-light: #2a6b1f;
    --white:       #fff;
    --gray-bg:     #f5f5f2;
    --gray-border: #ddd;
    --text:        #222;
    --text-muted:  #666;
    --radius:      8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: Georgia, 'Times New Roman', serif;
    /* background: var(--gray-bg); */
    background: #EFE7DB;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── CTA Banner ─────────────────────────────────────────────────── */
.cta-banner {
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 12px 24px 0 24px;
    font-size: 1.05rem;
}
.cta-banner a {
    color: #a8e6a3;
    font-weight: bold;
}
.cta-banner a:hover { color: var(--white); }

/* ── Header ─────────────────────────────────────────────────────── */
header {
    background: var(--green);
    color: var(--white);
    padding: 27px 24px 32px;
    text-align: center;
}
header img.camel {
    height: 72px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}
header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
header p.subheading {
    font-size: 0.9rem;
    opacity: 0.88;
    max-width: 540px;
    margin: 0 auto;
}

/* ── Main ───────────────────────────────────────────────────────── */
main { max-width: 1200px; margin: 50px auto 0; padding: 32px 16px; }

@media (max-width: 767px) {
    main { margin: 24px auto 0; padding: 16px 12px; }
}

/* ── Place of the Week ──────────────────────────────────────────── */
.potw-section { margin-bottom: 40px; }

.potw-section h2 {
    color: var(--green);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.potw-section h2>span {
    font-size: 0.8rem;   
}

.potw-card {
    background: #e8f5e4;
    border: 1px solid #b7d9b0;
    border-radius: var(--radius);
    padding: 28px;
}

.potw-card h3 {   
    font-size: 1.7rem;
    color: var(--green);
    margin-bottom: 8px;
}
.potw-card .meta {  
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.potw-card .descr {
    font-size: 0.97rem;
    line-height: 1.4;
}


potw-card .descr>span {
    font-size: 0.97rem;
    line-height: 1.0;
}
.potw-card .descr .ai-place-title { font-size: 1.6rem !important; color: var(--green); }
.potw-card .descr h2,
.potw-card .descr h3 { font-size: 1rem; margin: 12px 0 4px; color: var(--green); }
.potw-card .descr p  { margin-bottom: 10px; }

@media (max-width: 767px) {
    .potw-card .descr .ai-place-title { 
        font-size: 1.0rem !important; 
        color: var(--green); 
    }
}

.ai-fast-facts ul li {
    line-height: 1.7;
}

.ai-fast-facts + p {
    margin-top: 16px;
    
}

.ai-fast-facts-title {
    font-weight: bold;
    display: block;
    margin: 35px 0 6px;
    font-size: 1.0rem;
}



.potw-card .ai-disclaimer {
    margin-top: 24px;
}
/* ── POTW comments ──────────────────────────────────────────────── */
.potw-comments {
    margin-top: 24px;
    border-top: 1px solid #b7d9b0;
    padding-top: 18px;
}
.potw-comments h4 {
    font-size: 0.95rem;
    color: var(--green);
    margin-bottom: 14px;
    font-family: Arial, sans-serif;
}
.potw-comment {
    background: rgba(255,255,255,0.6);
    border-left: 3px solid #b7d9b0;
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.potw-comment p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 5px;
}
.potw-comment .comment-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
}

.potw-cta {
    display: inline-block;
    margin-top: 16px;
    background: var(--green);
    color: var(--white);
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}
.potw-cta:hover { background: var(--green-light); text-decoration: none; }



/* ── Filter Bar ─────────────────────────────────────────────────── */
.filter-section { margin-bottom: 28px; }
.filter-section h2 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.filter-form label {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 3px;
    font-family: Arial, sans-serif;
}
.filter-form select,
.filter-form input[type="text"] {
    padding: 7px 10px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--white);
    color: var(--text);
    min-width: 0;
    width: 100%;
}
.filter-form button {
    padding: 8px 20px;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: Arial, sans-serif;
}
.filter-form button:hover { background: var(--green-light); }
.filter-form .reset-link {
    font-size: 0.85rem;
    color: var(--text-muted);
    align-self: center;
    font-family: Arial, sans-serif;
}

/* ── Results count ──────────────────────────────────────────────── */
.results-meta {
    font-size: 0.87rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-family: Arial, sans-serif;
}

/* ── Card Grid ──────────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 767px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cards-grid { grid-template-columns: 1fr; }
    header h1   { font-size: 1.7rem; }
}

.place-card {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}
.place-card h3 {
    font-size: 1.05rem;
    color: var(--green);
    margin-bottom: 8px;
    line-height: 1.3;
}
.place-card .badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}
.badge {
    background: #e8f5e4;
    color: var(--green);
    font-size: 0.73rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-family: Arial, sans-serif;
    white-space: normal;
}
.badge.country   { background: #f0f4ff; color: #2a4a8a; }
.badge.comments  { background: #fff8e1; color: #7a5c00; }
.place-card .snippet {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 14px;
}
.place-card .card-cta {
    font-size: 0.85rem;
    color: var(--green);
    font-family: Arial, sans-serif;
    font-weight: bold;
    align-self: flex-start;
}
.place-card .card-cta:hover { text-decoration: underline; }

/* ── Empty state ────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
}
.empty-state p { margin-bottom: 12px; }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 36px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.pagination a {
    padding: 7px 16px;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
}
.pagination a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.pagination .page-info { color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────────────── */
footer {
    background: var(--green);
    color: rgba(255,255,255,0.85);
    padding: 48px 48px 28px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    margin-top: 48px;
}
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 3fr 1fr;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-categories { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-categories { grid-column: 1; }
}
.footer-col h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
}
/* Category 3-column sub-grid */
.footer-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0 24px;
}


@media (max-width: 600px) {
    .footer-cat-grid ul + ul {
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 12px;
        margin-top: 8px;
    }
}

.footer-col p {
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    margin-bottom: 12px;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li { margin-bottom: 10px; }
footer a { color: #a8e6a3; }
footer a:hover { color: var(--white); text-decoration: underline; }
.footer-explore a {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius);
    padding: 10px 18px;
    color: var(--white);
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 10px;
}
.footer-explore a:hover { background: rgba(255,255,255,0.2); text-decoration: none; }
.footer-explore p { font-size: 0.85rem; }

/* ── Back to top ────────────────────────────────────────────────── */
.back-to-top-bar {
    text-align: center;
    padding: 20px 16px;
    /* background: var(--gray-bg); */
    background: #efe7db;
    border-top: 1px solid var(--gray-border);    
}
.back-to-top-btn {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: Arial, sans-serif;
}
.back-to-top-btn:hover {
    color: #1a73e8;
}

.footer-cities {
    text-align: center;
    font-size: 0.8rem;
    /* color: var(--text-muted); */
    color: #aaaaaa;
    letter-spacing: 0.15em;
    margin-bottom: 6px;
    margin-top: 16px;
}
.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ── AI disclaimer ──────────────────────────────────────────────── */
.ai-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 28px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}
.footer-disclaimer {
    max-width: 1200px;
    margin: 14px auto 0;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
}

/* Targets the footer email and any long links in the footer columns */
.footer-bottom a, 
.footer-col ul li a {
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 767px) {
    /* Apply to all links inside the main content and footer */
    main a, footer a {
        overflow-wrap: break-word;
        word-break: break-all;
    }

    /* Prevent the container itself from stretching */
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
}


/* black banner along top and bottom */
/* ── Native app safe area banners (black banner along top and bottom*/
body.is-native-app::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #000000;
    z-index: 99999;
}

body.is-native-app::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background-color: #000000;
    z-index: 99999;
}

body.is-native-app {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ── Place Page Header ──────────────────────────────────────────── */
header.place-header {
    background: var(--green);
    color: var(--white);
    padding: 28px 24px 20px;
    text-align: center;
}
header.place-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

/* ── Topbar (breadcrumb + quicklinks) ───────────────────────────── */
.place-topbar {
    display: flex;
    align-items: center;
    padding: 8px 16px 0 16px;
    background: #EFE7DB;
    border-bottom: 1px solid var(--gray-border);
    position: relative;
}

.place-topbar {
    display: flex;
    align-items: center;
    
    /* 1. Remove vertical padding */
    padding-top: 0;
    padding-bottom: 0;
    
    /* 2. Ensure the border doesn't add extra height outside the box */
    box-sizing: border-box; 
    
    /* 3. Optional: Force a specific height if you want to override line-height */
    /* height: 23px; */ 
}

/* ── Breadcrumb ─────────────────────────────────────────────────── */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
}
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ── Quicklinks ─────────────────────────────────────────────────── */
.place-quicklinks {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top:50px;
}

.place-quicklinks a {
    color: var(--green);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.place-quicklinks a:hover {
    color: #1a73e8;
}

@media (max-width: 767px) {
    .place-quicklinks a {
       font-size: 0.8rem;
    }
}

/* ── Place Article ──────────────────────────────────────────────── */
.place-article {
    max-width: 100%;
    margin: 16px auto 32px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 10px 32px;
}

@media (min-width: 768px) {
    .place-article {
        margin: auto;       
    }
}

.place-meta {
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.place-descr {
    font-size: 1.1rem;
    line-height: 1.7;
}
.place-descr h2,
.place-descr h3 {
    font-size: 1.3rem;
    margin: 14px 0 5px;
    color: var(--green);
}

.place-descr h2 span {
    font-size: 0.85rem;
    margin: 0 0 5px;
    color: var(--green);
    /* display: flex;
    justify-content: center; */
}

.place-descr p { margin-bottom: 10px; }
.place-descr img { vertical-align: middle; }
.place-website {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-border);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}



.place-website {
    display: none;
}

@media (min-width: 768px) {
    .place-descr {
        font-size: 1.3rem;
        line-height: 1.7;
    }
    .place-descr h2,
    .place-descr h3 {
        font-size: 1.3rem;
        margin: 14px 0 5px;
        color: var(--green);
    }

    .place-descr h2 span {
        font-size: 0.85rem;
        margin: 0 0 5px;
        color: var(--green);
        /* display: flex;
        justify-content: center; */
    }

    .place-descr p { margin-bottom: 10px; }
    .place-website {
        margin-top: 20px;
        padding-top: 16px;
        border-top: 1px solid var(--gray-border);
        font-family: Arial, sans-serif;
        font-size: 0.9rem;
    }

    .place-website {
        display: none;
    }
}

.descr p:has(img),

.place-descr p:has(img) {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 767px) {
    .place-descr p a,
    .descr p a {
        font-size: 0.9em !important;
    }
}

/* ── Map CTA ────────────────────────────────────────────────────── */
.place-map-cta {
    max-width: 1200px;
    margin: 0 auto 32px;
    background: #e8f5e4;
    border: 1px solid #b7d9b0;
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
}
.place-map-cta a {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
}
.place-map-cta a:hover { background: var(--green-light); text-decoration: none; }
.place-map-cta p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    margin: 0;
}

/* ── Place Comments ─────────────────────────────────────────────── */
.place-comments {
    max-width: 800px;
    margin: 0 auto 32px;
}
.place-comments h2 {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 16px;
}
.place-comment {
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-left: 3px solid #b7d9b0;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 16px;
    margin-bottom: 12px;
}
.place-comment p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 6px;
}
.place-comment .comment-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: Arial, sans-serif;
}

/* ── Travel Advisory ────────────────────────────────────────────── */
.place-advisory {
    max-width: 1200px;
    margin: 0 auto 32px;
    background: var(--white);
    border: 1px solid var(--gray-border);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
    padding: 24px 28px;
}
.place-advisory h2 {
    font-size: 1.1rem;
    color: var(--green);
    margin-bottom: 12px;
}
.advisory-risk-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 14px;
}
.advisory-risk-pill.risk-normal  { background: #d4edda; color: #155724; }
.advisory-risk-pill.risk-some    { background: #fff3cd; color: #856404; }
.advisory-risk-pill.risk-high    { background: #ffe0b2; color: #7a3d00; }
.advisory-risk-pill.risk-extreme { background: #f8d7da; color: #721c24; }
.advisory-risk-pill.risk-unknown { background: #e9e9e9; color: #555; }
.advisory-none {
    color: var(--text-muted);
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 12px 0;
}
.advisory-content {
    font-size: 1.0rem;
    line-height: 1.7;
    margin-bottom: 14px;
    max-width: 100%;
    overflow-x: hidden;
    text-align: left;
}
.advisory-content p {
    margin-bottom: 8px;
    hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: pretty;
}
.advisory-content ul li,
.advisory-content a {
    hyphens: auto;
    overflow-wrap: break-word;
    text-wrap: pretty;
}
.advisory-content hr {
    margin-bottom: 16px;
}
.advisory-disclaimer {
    font-size: 0.82rem;
    color: var(--green);
    background: #e8f5e4;
    border: 1px solid #b7d9b0;
    border-radius: var(--radius);
    padding: 8px 12px;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    margin-top: 24px;
}
@media (max-width: 767px) {
    .place-advisory {
        max-width: 85vw;
    }
}
.place-descr ul li,
.place-descr p {
    hyphens: auto;
    overflow-wrap: normal;
    text-wrap: pretty;
    max-width: 100%;
    text-align: left;
}

/* ── Related Places ──────────────────────────────────────────────────────── */
.related-places {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.related-places h2 {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--green);
    margin: 0 0 16px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.related-card {
    display: block;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    border-color: var(--green);
}

.related-card__title {
    font-family: Georgia, serif;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text);
}

.related-card__meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.related-card__country,
.related-card__category {
    font-family: Arial, sans-serif;
    font-size: 0.73rem;
    color: var(--text-muted);
    background: var(--gray-bg);
    padding: 2px 8px;
    border-radius: 20px;
}

@media (max-width: 480px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.ai-place-subtitle {
    line-height: 1.3;
    display: block;
}

@media (max-width: 480px) {
    .ai-place-title .ai-place-subtitle {
        font-size: 0.7rem;
        line-height: 1.0;       
    }
}

.filter-section {
    margin-top: 40px;
}

/* ── Cookie Consent Banner ───────────────────────────────────────── */
#cookie-banner {
    position: fixed;
    bottom: 50px;
    right: 20px;
    max-width: 320px;
    background: #fff;
    border: 1px solid var(--gray-border);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    color: var(--text);
}
#cookie-banner p { margin: 0 0 12px; line-height: 1.5; }
#cookie-banner a { color: var(--green); }
.cookie-banner-btns { display: flex; gap: 8px; }
.cookie-banner-btns button {
    flex: 1;
    padding: 7px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
}
#cookie-accept  { background: var(--green); color: #fff; }
#cookie-decline { background: var(--gray-bg); color: var(--text); border: 1px solid var(--gray-border); }
#cookie-accept:hover  { background: var(--green-light); }
#cookie-decline:hover { background: #e0e0dc; }

@media (max-width: 480px) {
    #cookie-banner { right: 10px; left: 10px; max-width: none; bottom: 10px; }
}
.ai-divider {
    border: 0;
    height: 2px;
    background-color: #1A4314;
    margin: 10px 0 15px;
}

.ai-refreshed-banner {
    margin-bottom: 16px;
    font-size: 0.7rem;
}


.advisory-fast-facts {
      margin-top: 16px;
}

.advisory-content hr {
    margin-bottom: 16px;
}

.potw-first-para {
    margin-top: 12px;
    font-family: Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}

.potw-ellipsis {
    text-align: left;
    font-size: 1.4rem;
    color: var(--text-muted);
    letter-spacing: 6px;
    margin: 8px 0 0;
}

@media (max-width: 480px) {
    .breadcrumb {
        display: none;
    }
    .place-topbar {
        justify-content: center;
        
    }
    .place-quicklinks {
        position: static;
        transform: none;
        margin-top:0 !important;
    }
}

.ai-preserved-links {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;
}

.ai-preserved-links-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-preserved-links-top a {
    font-size: 20px;
}

@media (max-width: 767px) {
    .ai-preserved-links-top a {
        font-size: 14px;
        font-weight: bold;
    }
}



/* Targets the specific website link container in your article */
.place-website a {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-all; /* Force break long URLs */
    display: inline-block; /* Helps with alignment on some browsers */
    max-width: 100%;       /* Ensures it never exceeds the parent width */
}



/* ── Safeguard against AI-injected flex/grid/column layouts ── */
.place-descr div {
    display: block !important;
    columns: unset !important;
    column-count: unset !important;
    flex: unset !important;
    grid: unset !important;
}


@media (max-width: 767px) {
  * ── UNESCO link alignment ───────────────────────────────────────── */
.place-descr p img[alt="UNESCO"] {
    vertical-align: middle !important;
    margin-right: 6px !important;
}

.place-descr p a[href*="whc.unesco.org"] {
    vertical-align: middle !important;
    font-size: 0.8em !important;
}
}

/* ── Place of the Week Hero ─────────────────────────────────────── */
.potw-hero {
    position: relative;
    width: 75vw;
    margin: 40px auto 8px auto;
    border-radius: 12px;
    background: #1f5b36;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 28px 24px 40px;
    overflow: hidden;
}

/* Amphora glass circle — more visible glass ring */
.potw-hero__bg-emoji {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    font-size: 10rem;
    opacity: 1.0;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .potw-hero .potw-hero__bg-emoji {
        position: absolute;
        font-size: 3rem;
        top: auto;
        bottom: 15px;
        right: 15px;
        width: 60px;
        height: 60px;
        transform: none;
        opacity: 1.0 !important;
        z-index: 2000;
    }
}

.potw-hero__inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Label — selectively desaturated, upper hierarchy hint */
.potw-hero__label {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
}
@media (min-width: 768px) {
    .potw-hero__label {
        font-family: Arial, sans-serif;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.55);
        margin-bottom: 12px;
    }
}
.potw-hero__title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    color: #efe7db;
    letter-spacing: -0.5px;
}

.potw-hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    font-style: italic;
    margin-bottom: 20px;
    max-width: 600px;
    line-height: 1.5;
}

.potw-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
}
.potw-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.potw-hero__btn {
    display: inline-block;
    padding: 11px 24px;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}

/* Primary button — warm cream, selectively saturated */
.potw-hero__btn--primary {
    background: #f0ebe3;
    color: #1A4314;
}
.potw-hero__btn--primary:hover {
    background: #e4ddd4;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Secondary button — vibrant translucent green tint */
.potw-hero__btn--secondary {
     background: #f0ebe3;
    color: #1A4314;
}
.potw-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    text-decoration: none;
    transform: translateY(-1px);
}

.potw-hero__comments {
    max-width: 860px;
    margin: 32px auto 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 24px;
    position: relative;
    z-index: 1;
}

.potw-hero__comments h4 {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
    margin-bottom: 14px;
}

.potw-hero .potw-comment {
    background: rgba(255,255,255,0.08);
    border-left: 3px solid rgba(255,255,255,0.3);
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.potw-hero .potw-comment p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 4px;
}

.potw-hero .potw-comment .comment-meta {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.5);
    font-family: Arial, sans-serif;
}

@media (max-width: 767px) {
    .potw-hero {
        padding: 20px 16px 32px;
    }
    .potw-hero__title {
        font-size: 1.6rem;
    }
    .potw-hero__subtitle {
        font-size: 0.8rem;
    }
    .potw-hero__bg-emoji {
        font-size: 6rem;
        opacity: 0.06;
    }
    .potw-hero__btn {
        font-size: 0.88rem;
        padding: 9px 18px;
    }
}
/* ── Visit button ─────────────────────────────────────────────────── */
.visit-section {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 12px 0 4px;
    flex-wrap: wrap;
}

.visit-btn {
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 9px 20px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.visit-btn:hover:not(.visited) {
    background: var(--green-light);
}

.visit-btn.visited {
    background: rgba(26, 67, 20, 0.18);
    color: var(--text-muted);
    cursor: default;
    filter: saturate(0.3);
}

.visit-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Visits badge (index card) ─────────────────────────────────────── */
.badge.visits {
    background: #e4f0ff;
    color: #1a3a6e;
}


/* visited place card */
.visitedPlaceCard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* ── Advisory Risk Badge (AI-generated class) ───────────────────── */
.advisory-risk-badge { 
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-family: Arial, sans-serif;
    font-weight: bold;
    margin-bottom: 14px;
}
.advisory-risk-badge.risk-normal  { background: #d4edda; color: #155724; }
.advisory-risk-badge.risk-some    { background: #fff3cd; color: #856404; }
.advisory-risk-badge.risk-high    { background: #ffe0b2; color: #7a3d00; }
.advisory-risk-badge.risk-extreme { background: #f8d7da; color: #721c24; }

/* =====================================================
   MOST VISITED PLACE CARD
   camel_maps/index.php — below .cta-banner
   ===================================================== */

.most-visited-card {
  display: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,165,0,0.10));
  border: 1px solid rgba(255,200,0,0.35);
  border-radius: 12px;
  padding: 12px 16px;
  margin: 10px 16px 4px;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;        /* ← centers children horizontally in column flex */
  text-align: center;         /* ← centers inline text */
}

.most-visited-card:active {
  background: linear-gradient(135deg, rgba(255,215,0,0.25), rgba(255,165,0,0.18));
}
.most-visited-header {
  display: flex;
  align-items: center;
  gap: 6px;
}
.most-visited-trophy {
  font-size: 16px;
  line-height: 1;
}
.most-visited-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b8860b;
  opacity: 0.85;
}
.most-visited-body {
  display: flex;
  align-items: center;
  justify-content: center;    /* ← was space-between, now centered */
  gap: 8px;
}
.most-visited-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #222);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.most-visited-badge {
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,200,0,0.25);
  color: #7a6000;
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .most-visited-card {
    margin: 10px auto 4px;
    width: calc(100% - 32px);
  }
}



/* ── Travel Advisory Modal ───────────────────────────────────────────────────
   Styles for the country travel advisory feature on place.php.
   A button in the .place-advisory section triggers a fetch to
   country_advisory.php, which returns advisory content for the place's
   country. The content is injected into a modal overlay (.advisory-modal-overlay)
   that slides up as a bottom sheet on mobile and centers as a card on desktop.
   One advisory file serves all 14,000+ place cards — no per-place duplication.
─────────────────────────────────────────────────────────────────────────── */


/* Advisory open button */
.advisory-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.08);
    color: #2c5f2e;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 24px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.advisory-open-btn:hover {
    background: rgba(0, 0, 0, 0.14);
}

/* Modal overlay */
.advisory-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9000;
    align-items: flex-end;
    justify-content: center;
}
.advisory-modal-overlay.advisory-modal-visible {
    display: flex;
}

/* Modal panel — bottom sheet on mobile */
.advisory-modal {
    background: #1e1e2e;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 767px) {
    .advisory-modal {
        max-height: calc(100vh - 40px);
    }
}

/* Header */
.advisory-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}
.advisory-modal-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #fff;
}
.advisory-modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.advisory-modal-close:hover {
    color: #fff;
}

/* Scrollable body */

.advisory-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    line-height: 1.6;
    overflow-wrap: break-word !important;
    word-break: normal;
    hyphens: auto !important;
}

.advisory-modal-body p {
    margin-bottom: 1rem;
}

.advisory-modal-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.advisory-modal-body ul li {
    margin-bottom: 0.4rem;
    list-style: disc;
}

.advisory-modal-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.advisory-modal-body strong {
    color: #fff;
}

/* Place of the Day history strip */
.potd-history-strip { background: #1a2a1a; border-top: 1px solid #2d4a2d; padding: 10px 16px; }
.potd-history-strip__inner { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
.potd-history-strip__inner::-webkit-scrollbar { display: none; }
.potd-history-pill { display: flex; flex-direction: column; flex-shrink: 0; background: #243824; border: 1px solid #2d4a2d; border-radius: 20px; padding: 6px 14px; text-decoration: none; transition: border-color 0.2s; min-width: 0; }
.potd-history-pill:hover { border-color: #4892a0; }
.potd-history-pill__date { font-size: 0.65rem; color: #4892a0; white-space: nowrap; }
.potd-history-pill__title { font-size: 0.78rem; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
@media (min-width: 768px) {
    .potd-history-strip__inner { flex-wrap: wrap; overflow-x: visible; justify-content: center; }
    .potd-history-pill { min-width: 160px; max-width: 220px; }
}

/* ── My Places ─────────────────────────────────────────────────────────────── */
.my-places-header { padding: 12px 16px 0; }
.my-places-title { font-size: 1.1em; font-weight: 600; color: #4892a0; }
.my-places-tabs { display: flex; border-bottom: 2px solid #e0e0e0; margin: 10px 0 0; }
.my-places-tab {
    flex: 1;
    padding: 8px 4px;
    background: none;
    border: none;
    font-size: 0.85em;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.my-places-tab.active { color: #4892a0; border-bottom-color: #4892a0; font-weight: 600; }
.my-places-count { background: #e0e0e0; border-radius: 10px; padding: 1px 6px; font-size: 0.8em; margin-left: 4px; }
.my-places-tab.active .my-places-count { background: #4892a0; color: #fff; }
#myPlacesView {
    padding-top: 60px;
    padding-bottom: 40px;
    box-sizing: border-box;
    position: relative;
}
#myPlacesView .my-places-header {
    padding: 0 16px 8px;
}
#myPlacesView .my-places-tabs {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}
#myPlacesView .my-places-tab {
    flex: 1 1 50%;
    box-sizing: border-box;
}
.my-places-body { overflow-y: auto; padding: 8px 16px; padding-bottom: 40px; }
#myPlacesView .my-places-row {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 16px !important;
    gap: 8px !important;
}
#myPlacesView .my-places-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
#sidebar-comments .my-places-row {
    display: flex !important;
    width: calc(100% + 32px) !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    gap: 8px !important;
}
#sidebar-comments .my-places-btn {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
.my-places-card {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}
.my-places-card:active { background: #f5f5f5; }
.my-places-card__info { flex: 1; min-width: 0; }
.my-places-card__title { font-size: 0.9em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-places-card__meta { font-size: 0.75em; color: #888; margin-top: 2px; }
.my-places-card__remove { background: none; border: none; color: #bbb; font-size: 1em; padding: 4px 8px; cursor: pointer; flex-shrink: 0; }
.my-places-empty { text-align: center; color: #aaa; font-size: 0.85em; padding: 32px 16px; }

/* My Places row in sidebar */
.my-places-row {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    box-sizing: border-box;
}
.my-places-btn {
    flex: 1 1 50%;
    min-width: 0;
    width: 50% !important;
    padding: 8px 4px;
    border-radius: 20px;
    border: 1.5px solid #ccc;
    background: #fff;
    font-size: 0.8em;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
    box-sizing: border-box;
    text-align: center;
}
.my-places-btn--want.active {
    background: #4892a0 !important;
    border-color: #4892a0 !important;
    color: #fff !important;
}
.my-places-btn--been.active {
    background: #4a9e6e !important;
    border-color: #4a9e6e !important;
    color: #fff !important;
}

/* Back button */
.sidebar-back-btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
    color: #4892a0;
    font-size: 0.85em;
    cursor: pointer;
}
