/**
 * Capiznon Geo - Main Styles
 * Bohemian Beach Vibe with Art Nouveau touches
 */

/* ============================================
   CSS Custom Properties - Bohemian Beach Palette
   ============================================ */
:root {
    /* Primary Colors - Warm Beach Sunset */
    --cg-primary: #f59e0b;
    --cg-primary-light: #fbbf24;
    --cg-primary-dark: #d97706;
    
    /* Accent Colors - Ocean & Sand */
    --cg-ocean-deep: #92400e;
    --cg-ocean-mid: #b45309;
    --cg-ocean-shallow: #d97706;
    --cg-ocean-foam: #fef3c7;
    
    /* Sand Colors */
    --cg-sand: #fef3c7;
    --cg-sand-light: #fef9c3;
    --cg-sand-dark: #fde68a;
    
    /* Status Colors */
    --cg-success: #10b981;
    --cg-success-dark: #059669;
    --cg-success-light: #34d399;
    --cg-warning: #f59e0b;
    --cg-danger: #ef4444;
    
    /* Base Colors */
    --cg-dark: #451a03;
    --cg-light: #fffbeb;
    
    /* Design Tokens */
    --cg-radius: 1rem;
    --cg-radius-lg: 1.5rem;
    --cg-radius-xl: 2rem;
    --cg-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.15);
    --cg-shadow-lg: 0 12px 40px -8px rgba(245, 158, 11, 0.25);
    --cg-shadow-xl: 0 24px 60px -12px rgba(245, 158, 11, 0.35);
    --cg-shadow-glow: 0 0 40px rgba(245, 158, 11, 0.4);
}

.cg-badge-cuisine {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 9px;
  font-weight: 600;
  background-color: #f3f1ea;
  color: #4b646e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cg-popup-cuisines {
  margin-top: 4px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cg-location-cuisines {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* Map location list panel as drawer (mobile) / side panel (desktop) */
.cg-list-panel {
    transform: translateX(110%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 40;
}

.cg-list-panel.cg-list-panel-open {
    transform: translateX(0);
}

@media (max-width: 1023px) {
    .cg-list-panel {
        top: 1rem;
        right: 0.5rem;
        bottom: 1rem;
        left: auto;
        width: min(90vw, 360px);
    }
}

/* ============================================
   Bohemian Base Styles
   ============================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Display', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(130deg, #fff9f2 0%, #fff3e0 45%, #ffe7d0 100%);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Sigmar One', cursive;
}

/* ============================================
   Art Nouveau Inspired Background Patterns
   ============================================ */
.boho-pattern {
    position: relative;
    overflow: hidden;
}

.boho-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.boho-pattern::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 215, 170, 0.4) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Art Nouveau Decorative Elements */
.boho-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.boho-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.boho-circle-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    top: 10%;
    right: -100px;
}

.boho-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    bottom: 20%;
    left: -50px;
}

.boho-circle-3 {
    width: 150px;
    height: 150px;
    border: 3px solid #f59e0b;
    background: transparent;
    top: 40%;
    right: 10%;
}

.boho-flower {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0.1;
}

.geo-triangle-1 {
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid var(--cg-danger);
    top: 15%;
    left: 5%;
    transform: rotate(15deg);
}

.geo-triangle-2 {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 90px solid var(--cg-success);
    bottom: 30%;
    right: 15%;
    transform: rotate(-20deg);
}

/* ============================================
   Bohemian Wave Pattern
   ============================================ */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.wave-divider .shape-fill {
    fill: #fffbeb;
}

/* ============================================
   Map Container with Bohemian Styling
   ============================================ */
#cg-map {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: 1;
    border-radius: 0;
}

@media (min-width: 768px) {
    #cg-map {
        border-radius: var(--cg-radius-xl) 0 0 var(--cg-radius-xl);
    }
}

.map-fullscreen #cg-map {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    z-index: 10;
    border-radius: 0;
}

/* ============================================
   Leaflet Bohemian Customizations
   ============================================ */
.leaflet-container {
    font-family: 'Outfit', system-ui, sans-serif;
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
}

.leaflet-popup-content-wrapper {
    border-radius: var(--cg-radius-lg);
    box-shadow: var(--cg-shadow-xl);
    padding: 0;
    overflow: hidden;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.95));
    backdrop-filter: blur(12px);
}

.leaflet-popup-content {
    margin: 0;
    min-width: 280px;
    max-width: 320px;
}

.leaflet-popup-tip-container {
    margin-top: -1px;
}

.leaflet-popup-tip {
    box-shadow: var(--cg-shadow);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 243, 199, 0.95));
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: var(--cg-shadow-lg) !important;
    border-radius: var(--cg-radius-lg) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: white !important;
    color: #92400e !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom a:hover {
    background: #fef3c7 !important;
    color: #f59e0b !important;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
    border-radius: var(--cg-radius) 0 0 0;
    padding: 4px 10px !important;
    font-size: 10px;
}

/* ============================================
   Bohemian Custom Markers
   ============================================ */
.cg-marker-wrapper {
    background: none !important;
    border: none !important;
}

.cg-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: var(--cg-shadow-lg), 0 0 0 3px rgba(255,255,255,0.9);
    border: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.cg-marker::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: linear-gradient(135deg, #fbbf24, #fef3c7);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cg-marker:hover {
    transform: rotate(-45deg) scale(1.15) translateY(-4px);
    box-shadow: var(--cg-shadow-xl), 0 0 0 4px rgba(255,255,255,1);
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.cg-marker:hover::before {
    opacity: 1;
}

.cg-marker-inner {
    transform: rotate(45deg);
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.cg-marker-featured {
    width: 52px;
    height: 52px;
    animation: float 3s ease-in-out infinite;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.cg-marker-featured::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 2px dashed #fbbf24;
    animation: spin-slow 10s linear infinite;
}

@keyframes float {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-6px); }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { box-shadow: var(--cg-shadow-lg), 0 0 0 0 rgba(245, 158, 11, 0.4); }
    50% { box-shadow: var(--cg-shadow-lg), 0 0 0 12px rgba(245, 158, 11, 0); }
}

/* ============================================
   Bohemian Marker Cluster
   ============================================ */
.marker-cluster {
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    border-radius: 50%;
    box-shadow: var(--cg-shadow-lg);
    border: 3px solid white;
}

.marker-cluster div {
    background: white;
    border-radius: 50%;
    margin: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #92400e;
    font-family: 'Outfit', sans-serif;
}

.marker-cluster-small {
    width: 44px;
    height: 44px;
}

.marker-cluster-small div {
    width: 34px;
    height: 34px;
    font-size: 13px;
}

.marker-cluster-medium {
    width: 54px;
    height: 54px;
}

.marker-cluster-medium div {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.marker-cluster-large {
    width: 64px;
    height: 64px;
}

.marker-cluster-large div {
    width: 50px;
    height: 50px;
    font-size: 17px;
}

/* ============================================
   Bohemian Location Popup
   ============================================ */
.cg-popup {
    font-family: 'Outfit', sans-serif;
}

.cg-popup-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.cg-popup-content {
    padding: 1.25rem;
    background: linear-gradient(180deg, white 0%, #fef3c7 100%);
}

.cg-popup-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #451a03;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.cg-popup-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #fbbf24;
}

.cg-popup-excerpt {
    font-size: 0.875rem;
    color: #92400e;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.cg-popup-footer {
    display: flex;
    gap: 0.5rem;
}

.cg-popup-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cg-popup-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cg-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.cg-popup-btn-secondary {
    background: white;
    color: #92400e;
    border: 2px solid #fbbf24;
    font-weight: 600;
}

.cg-popup-btn-secondary:hover {
    background: #fef3c7;
    border-color: #f59e0b;
}

/* Leaflet popup close button */
.leaflet-popup-close-button {
    width: 32px !important;
    height: 32px !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    color: #b45309 !important;
    top: 8px !important;
    right: 8px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.leaflet-popup-close-button:hover {
    color: #ef4444 !important;
    background: #fef3c7 !important;
}

/* ============================================
   Bohemian Sidebar & Filters
   ============================================ */
.cg-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #fbbf24 transparent;
}

.cg-sidebar::-webkit-scrollbar {
    width: 6px;
}

.cg-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.cg-sidebar::-webkit-scrollbar-thumb {
    background: #fbbf24;
    border-radius: 3px;
}

/* Filter Panel */
.cg-filter-panel {
    background: linear-gradient(180deg, white 0%, #fef3c7 100%);
    border-radius: var(--cg-radius-xl);
    box-shadow: var(--cg-shadow-xl);
    overflow: hidden;
    border: 2px solid #fbbf24;
}

.cg-filter-header {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: white;
    padding: 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.cg-filter-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cg-filter-toggle {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.cg-filter-toggle:hover {
    background: rgba(255,255,255,0.25);
}

.cg-filter-body {
    padding: 1.25rem;
}

.cg-filter-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #fbbf24;
    border-radius: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: #451a03;
    background: white;
    transition: all 0.2s ease;
}

.cg-filter-control:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Select styling only (keeps checkbox native) */
select.cg-filter-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f59e0b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.cg-filter-control[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border-radius: 0.4rem;
    appearance: auto;
    background-image: none;
}

/* ============================================
   Bohemian Location Cards
   ============================================ */
.cg-location-card {
    background: linear-gradient(135deg, white, #fef9c3);
    border-radius: var(--cg-radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid #fbbf24;
    position: relative;
}

.cg-location-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fef3c7 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.cg-location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--cg-shadow-xl);
    border-color: #f59e0b;
}

.cg-location-card:hover::before {
    opacity: 1;
}

.cg-location-card.active {
    border-color: #f59e0b;
    box-shadow: var(--cg-shadow-glow);
}

/* ============================================
   Bohemian Status Badges
   ============================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.status-open {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.status-closed {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* ============================================
   Bohemian Gallery
   ============================================ */
.cg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.cg-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--cg-radius);
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid #fbbf24;
}

.cg-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--cg-shadow-lg);
}

.cg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Bohemian Lightbox
   ============================================ */
.cg-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(245, 158, 11, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cg-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.cg-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--cg-radius);
    box-shadow: var(--cg-shadow-xl);
}

.cg-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cg-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Bohemian Loading States
   ============================================ */
.cg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.cg-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #fef3c7;
    border-top-color: #f59e0b;
    border-right-color: #f97316;
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Beach-themed loading */
.cg-loading::before {
    content: '🌊';
    position: absolute;
    font-size: 1.5rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(10deg); }
}

/* ============================================
   Bohemian Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .leaflet-popup-content {
        min-width: 260px;
        max-width: 280px;
    }

    .cg-popup-image {
        height: 140px;
    }
}

/* ============================================
   Bohemian Visit Button in Popup
   ============================================ */
.cg-popup-visit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.cg-popup-visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.cg-popup-visit-btn-login {
    background: linear-gradient(135deg, var(--cg-ocean-shallow), var(--cg-ocean-mid));
    box-shadow: 0 4px 12px rgba(71, 52, 114, 0.2);
}

.cg-popup-visit-btn-login:hover {
    box-shadow: 0 6px 16px rgba(71, 52, 114, 0.3);
}

/* ============================================
   Visit Modal
   ============================================ */
.cg-visit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cg-visit-modal.active {
    opacity: 1;
    visibility: visible;
}

.cg-visit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.cg-visit-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.cg-visit-modal.active .cg-visit-modal-content {
    transform: scale(1) translateY(0);
}

.cg-visit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.cg-visit-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.cg-visit-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-visit-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cg-visit-modal-body {
    padding: 1.5rem;
}

.cg-visit-location-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cg-ocean-deep);
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px dashed var(--cg-accent-light);
}

.cg-visit-field {
    margin-bottom: 1.25rem;
}

.cg-visit-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cg-ocean-mid);
    margin-bottom: 0.5rem;
}

.cg-optional {
    font-weight: 400;
    color: var(--cg-ocean-shallow);
}

.cg-visit-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--cg-accent-light);
    border-radius: 0.75rem;
    background: white;
    transition: all 0.2s ease;
    font-family: inherit;
}

.cg-visit-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.cg-visit-date-wrapper {
    display: flex;
    gap: 0.5rem;
}

.cg-visit-date-wrapper .cg-visit-input {
    flex: 1;
}

.cg-visit-today-btn {
    padding: 0.75rem 1rem;
    background: var(--cg-sand);
    color: var(--cg-ocean-deep);
    font-size: 0.875rem;
    font-weight: 600;
    border: 2px solid var(--cg-accent-light);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cg-visit-today-btn:hover {
    background: var(--cg-sand-dark);
    border-color: var(--cg-ocean-shallow);
}

/* Star Ratings */
.cg-visit-ratings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.cg-visit-rating-group label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cg-ocean-mid);
    margin-bottom: 0.5rem;
}

.cg-rating-icon {
    font-size: 1rem;
}

.cg-star-rating {
    display: flex;
    gap: 0.125rem;
}

.cg-star {
    padding: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    transition: all 0.15s ease;
}

.cg-star:hover,
.cg-star.hover {
    color: #fbbf24;
    transform: scale(1.15);
}

.cg-star.active {
    color: #f59e0b;
}

.cg-star svg {
    display: block;
}

/* Modal Footer */
.cg-visit-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--cg-ocean-foam);
}

.cg-visit-btn-cancel {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: white;
    color: var(--cg-ocean-mid);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid var(--cg-ocean-shallow);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cg-visit-btn-cancel:hover {
    background: var(--cg-sand);
    border-color: var(--cg-ocean-mid);
}

.cg-visit-btn-save {
    flex: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cg-visit-btn-save:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.cg-visit-btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success Toast */
.cg-visit-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cg-visit-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Small spinner for buttons */
.cg-spinner-small {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .cg-sidebar,
    .cg-filters,
    .leaflet-control-container,
    .cg-visit-modal {
        display: none !important;
    }

    #cg-map {
        height: 400px !important;
        position: relative !important;
    }
}

/* Hide WordPress admin toolbar on small screens (frontend only) */
@media (max-width: 782px) {
    body.logged-in.admin-bar #wpadminbar {
        display: none !important;
    }

    /* Reset top offset that core admin-bar CSS applies */
    html.wp-toolbar {
        margin-top: 0 !important;
    }

    body.logged-in.admin-bar {
        margin-top: 0 !important;
    }

    html{
        scroll-padding-top: 0px !important;
        margin-top: 0px !important;
    }
}
