/* ==========================================================================
   1. GLOBAL RESETS & FONTS
   ========================================================================== */
* { padding: 0; margin: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body { height: 100%; font-family: "Times New Roman", sans-serif; font-size: 16px;  }
body.poi-page { font-family: Georgia, serif; }
h1, h2 { font-size: large; font-weight: bold; clear: both; }
h2 { color: #806000; }
h3 { font-size: medium; font-weight: bold; color: #806000; clear: both; padding: 0; }
a { text-decoration: none; }
#scroll { height: auto; }
#desc { padding: 1%; font-size: large; }
/* Hide online-only items when the user is offline */
body.is-offline .online-only {
  display: none !important;
}

/* Hide offline-only items when the user is online */
body.is-online .offline-only {
  display: none !important;
}
/* ==========================================================================
   2. APP SHELL COMPONENTS (MENU & PANOS)
   ========================================================================== */
#pano360 { width: 100%; height: 100%; position: absolute; left: 0; top: 0; overflow-y: hidden; z-index: 666; }
.cat { display: block; width: 100%; }
.popImg { width: 100%; height: auto; }
#mapCanvas { width: 100%; height: 100%; }
#map360 { width: 45px; height: 53px; z-index: 999; position: fixed; top: 15%; right: 0px; }
#logo { display: none; }

#zoom2 { position: fixed; bottom: 50px; right: 15px; height: 120px; visibility: visible; z-index: 9999; }
@media screen and (max-width: 767px) { #zoom2 { visibility: visible; } }

.fixed-menu { text-align: right; z-index: 10000; position: fixed; top: 0px; width: 100%; border-bottom: 10px solid #95C123; }
#desktitle { font-size: 30px; position: fixed; left: 50px; }
ul { list-style: none; background: #0b0b0bff; }
ul li { display: inline-block; position: relative; width: 180px; max-width: 19%; }
ul li a { display: block; padding: 5px; color: #FFF; text-decoration: none; text-align: center; font-size: 18px; z-index: 9999; width: 100%; }
ul li ul.dropdown li { display: block; width: 180px; max-width: 100%; }
ul li ul.dropdown { background: #0b0b0bff; position: absolute; z-index: 9999; display: none; }
ul li a:hover { background: rgba(255, 255, 255, 0.6); }
ul li:hover ul.dropdown { display: block; }
.fixed-menu [aria-current='page'] { text-decoration: underline 0.15rem; text-underline-offset: 0.3rem; }
.active { font-weight: 800; text-decoration: underline; }

/* ==========================================================================
   3. RESPONSIVE NAVIGATION BREAKPOINTS
   ========================================================================== */
@media (min-width: 45em) {
    #logo { width: 120px; position: absolute; bottom: 3%; right: 3%; z-index: 999; display: inline; }
}
@media only screen and (max-width: 1024px) {
    #desktitle { display: none; }
    ul li a { font-size: 14px; padding: 5px 10px; }
    ul li ul.last { background: #0b0b0bff; position: fixed; right: 0px; z-index: 9999; display: none; }
    .fixed-menu { text-align: left; }
}

/* ==========================================================================
   4. GENERAL UTILITY BUTTONS
   ========================================================================== */
.button { background-color: rgba(40, 40, 40, 0.75); text-decoration: none; padding: 0.5vw 0.75vw; font-size: 15px; color: #ffffff; line-height: 1.5; margin-bottom: 2%; border-color: white; border-radius: 0 0 5px 5px; border-style: solid; border-width: 0 1px 1px 1px; }
.button:hover, .button:active { background: #007B80; }
.clear-all-btn { background-color: #dc3545; color: white; padding: 10px 20px; border: none; border-radius: 20px; font-weight: bold; cursor: pointer; font-family: 'Raleway', sans-serif; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.clear-all-btn:hover { background-color: #c82333; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3); }

.arrow { border: solid white; border-width: 0 5px 5px 0; display: inline-block; padding: 3px; }
.right { transform: rotate(-45deg); -webkit-transform: rotate(-45deg); }
.left { transform: rotate(135deg); -webkit-transform: rotate(135deg); }
.up { transform: rotate(-135deg); -webkit-transform: rotate(-135deg); }
.down { transform: rotate(45deg); -webkit-transform: rotate(45deg); }

/* ==========================================================================
   5. PWA TOAST ALERTS & MAP HIGHLIGHTS
   ========================================================================== */
#offline-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 400px; background: rgba(0, 88, 113, 0.9); backdrop-filter: blur(10px); color: white; padding: 15px; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 9999; transition: opacity 0.5s ease, transform 0.5s ease; }
#offline-toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 3.5s; }
.toast-hidden { display: none !important; opacity: 0; pointer-events: none; transform: translate(-50%, 20px) !important; }
.toast-content { display: flex; align-items: center; gap: 12px; }
.toast-icon { font-size: 1.5rem; }
#offline-toast p { margin: 0; font-size: 0.9rem; line-height: 1.3; }

@keyframes fadein { from { bottom: 0; opacity: 0; } to { bottom: 30px; opacity: 1; } }
@keyframes fadeout { from { bottom: 30px; opacity: 1; } to { bottom: 0; opacity: 0; } }

body.is-offline ul li:has(a[href*="360"]), body.is-offline a[href*="360"] { display: none !important; }
.fav-marker-icon { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)) hue-rotate(45deg) brightness(1.2) !important; }

/* ==========================================================================
   6. BUSINESS LISTING CARDS & PAGINATION LAYOUT
   ========================================================================== */
.container { padding: 2rem 1.25rem; }
@media (min-width: 1024px) { .container { padding: 2rem 4rem; max-width: 1440px; margin: 0 auto; } }
.projectTypes { position: relative; }
.projectTypes .venue { max-width: 100%; display: flex; flex-direction: column; position: sticky; top: -50%; background-color: #fff; }
.projectTypes .venue .venue_slide { position: relative; width: 100%; }
.projectTypes .venue .venue_content { height: auto; }
.projectTypes .venue .venue_content .venue-title { font-family: Raleway; font-size: 30px; font-weight: 600; line-height: 45px; text-align: left; color: #000; margin-bottom: .25rem; }
.projectTypes .venue .venue_content .venue-subtitle { font-family: Raleway; font-size: 20px; font-weight: 600; line-height: 22px; text-align: left; color: #b08417; margin-bottom: 1.25rem; }

@media screen and (min-width: 1024px) {
    .projectTypes .venue { top: 0; flex-direction: row-reverse; gap: 2rem; height: 100dvh; max-width: 1920px; margin: 0 auto; min-height: 800px; position: sticky; }
    .projectTypes .venue .venue_slide { width: 100%; height: 100dvh; min-height: 400px; }
    .projectTypes .venue .venue_content { width: 50%; left: 0; display: flex; flex-direction: column; justify-content: top; height: 90dvh; min-height: 600px; }
    .projectTypes .venue .venue_content .venue-title { font-family: Raleway; font-size: 30px; font-weight: 600; line-height: 45px; text-align: left; }
    .projectTypes .venue .venue_content .venue-subtitle { font-family: Raleway; font-size: 26px; font-weight: 500; line-height: 33.8px; text-align: left; margin-top: 0rem; }
}

.venue:target { animation: highlight 2s ease-out; }
@keyframes highlight { 0% { background-color: #fffbe6; } 100% { background-color: transparent; } }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 40px 0; font-family: 'Raleway', sans-serif; }
.pagination a { text-decoration: none; padding: 10px 16px; border: 2px solid #b08417; color: #b08417; border-radius: 6px; font-weight: 600; font-size: 14px; transition: all 0.3s ease; background: #fff; }
.pagination a:hover { background-color: #95C123; border-color: #95C123; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(149, 193, 35, 0.3); }
.pagination a.active { background-color: #95C123; border-color: #95C123; color: #fff; cursor: default; pointer-events: none; }
.pagination .nav-btn { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

/* ==========================================================================
   7. GOOGLE REVIEWS & REVIEW SCROLLING
   ========================================================================== */
.reviews-box { margin-top: 12px; padding: 10px; background-color: #ffffff; border-radius: 8px; border: 1px solid #e0e0e0; font-family: 'Roboto', Arial, sans-serif; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.google-stars { color: #fbbc04; font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 5px; margin-bottom: 2px; }
.review-count { color: #70757a; font-size: 0.85rem; font-weight: 400; }
.venue:hover .reviews-box { border-color: #b08417; transition: border-color 0.3s ease; }
.review-btn { display: inline-block; margin-top: 5px; padding: 4px 8px; background-color: #95C123; color: #ffffff !important; text-decoration: none; border-radius: 4px; font-size: 0.85rem; font-weight: 500; transition: background-color 0.2s; }
.review-btn:hover { background-color: #b08417; box-shadow: 0 1px 3px rgba(60,64,67,0.3); }

.reviews-scroll-box { max-height: 120px; overflow-y: auto; margin-top: 10px; padding-right: 5px; border-top: 1px solid #eee; }
.reviews-scroll-box::-webkit-scrollbar { width: 6px; }
.reviews-scroll-box::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

.google-snippet { padding: 10px 0; border-bottom: 1px solid #f0f0f0; font-size: 0.85rem; line-height: 1.4; position: relative; padding-left: 12px; border-left: 3px solid #fbbc04; }
.google-snippet:last-child { border-bottom: none; }

/* ==========================================================================
   8. CLIENT-SIDE FAVORITES MODAL & PERSISTENT MAP BUTTONS
   ========================================================================== */
.fav-modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.fav-modal-content { background-color: #fff; margin: 5% auto; padding: 25px; border-radius: 12px; width: 95%; max-width: 500px; position: relative; max-height: 80vh; overflow-y: auto; scrollbar-width: thin; }
.fav-modal-content::-webkit-scrollbar { width: 8px; }
.fav-modal-content::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; color: #888; }

#fav-list { list-style: none; padding: 0; margin-top: 20px; background: #ffffff; }
/* FIXED OVERRIDES: Disables top navigation style bleeding inside list elements */
#fav-list li { padding: 12px; border-bottom: 1px solid #eee; display: flex !important; justify-content: space-between; align-items: center; width: 100% !important; max-width: 100% !important; }
.fav-btn { padding: 6px 24px; background: #95C123; color: white; border: none; border-radius: 10px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; }
.view-favs-btn { position: fixed; bottom: 20px; left: 20px; padding: 12px 24px; background: #95C123; color: white; border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; }
.view-favs-btn2 { position: fixed; bottom: 20px; right: 20px; padding: 12px 24px; background: #95C123; color: white; border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; }
.view-favs-map-btn { background-color: #b08417; position: fixed; top: 100px; color: white; padding: 12px 24px; border-radius: 30px; text-decoration: none; font-weight: bold; display: inline-block; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: transform 0.3s ease; }
.view-favs-map-btn:hover { background-color: #95C123; transform: scale(1.05); }
/* MODAL STYLES: for fav and biz/top */
           /* modal style switch */
        /* Base styles */
        body {
            font-family: sans-serif;
            margin: 0;
            padding: 0;
            background: #f0f2f5;
        }

        /* Main Container */
        .content-container {
            margin: 20px auto;
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        /* --- MODAL STATE STYLES --- */
        /* Triggered when body has the 'modal-view' class */
        
        /* 1. Hide the menu */
        body.modal-view .fixed-menu {
            display: none;
        }

        /* 2. Transform the container into a modal backdrop */
        body.modal-view {
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        /* 3. Style the content as a modal box */
        body.modal-view .content-container {
            margin: 0;
            width: 90%;
            max-width: 1200px;
            animation: fadeIn 0.3s ease;
        }
       
         /* Close Button Style */
        .close-btn {
            display: none; /* Hidden by default in full screen */
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 24px;
            font-weight: bold;
            color: #666;
            cursor: pointer;
            line-height: 1;
            padding: 5px;
        }

        .close-btn:hover {
            color: #000;
        }
         /* Reveal the close button only in modal view */
        body.modal-view .close-btn {
            display: block;
        }

        /* Transform body into backdrop */
        body.modal-view {
            background: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            box-sizing: border-box;
        }

        @keyframes fadeIn {
            from { transform: translateY(-20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
/* --- UNIVERSAL MODAL OVERRIDES FOR ALL PAGES --- */

/* 1. Hide the global navigation header when in modal view */
body.modal-view .fixed-menu, 
body.modal-view header, 
body.modal-view #top-navigation-menu { 
    display: none !important; 
}

/* 2. Strip margins and force iframe contents to display beautifully as a modal card */
body.modal-view {
    background: #ffffff !important; /* Cleans up muddy background leaks */
    margin: 0 !important;
    padding: 10px !important;
    height: auto !important;
}

body.modal-view #content-container,
body.modal-view .main-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    padding: 10px !important;
}
dialog {
  border: none;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 1200px;
  max-width: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Pulls the modal back by exactly 50% of its own size */
  background: white;
}

/* Adds a dark background overlay */
dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  padding: 24px;
  text-align: center;
 }
