* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Remove tap highlight on mobile */
button, a, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Chakra Petch', sans-serif;
    overflow: hidden;
    background-color: #f5f5f0;
    -webkit-font-smoothing: antialiased;      /* Improves thin/clean look on WebKit/macOS */
    -moz-osx-font-smoothing: grayscale;       /* Firefox on macOS */
    text-rendering: optimizeLegibility;       /* Better kerning and ligatures */
}

/* Header Navbar */
.header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 32px;
    z-index: 1270; /* Above search overlay (1260) */
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Hidden on mobile by default */
}

.header-logo {
    height: 48px;
    width: auto;
    display: block;
    transition: opacity 0.2s, transform 0.2s;
}

.logo-link:hover .header-logo {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Desktop: Show centered logo */
@media (min-width: 769px) {
    .header-center {
        display: block;
    }
}

/* Hamburger Menu */
.menu-toggle {
    position: fixed;
    top: 19px;
    left: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1300;
    transition: transform 0.2s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Search Toggle Button */
.search-toggle {
    position: fixed;
    top: 19px;
    left: 80px; /* Position next to hamburger (32px + 24px icon + 24px gap) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300;
    transition: transform 0.2s;
}

.search-toggle:hover {
    transform: scale(1.1);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.open .hamburger-line {
    background-color: white;
}

.menu-toggle.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.header-left {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-link {
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.logo-link:hover {
    opacity: 0.7;
    transform: translateY(-2px);
}

.header-left .logo {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.badge {
    display: inline-flex;
    height: auto;
    border-radius: 0;
    overflow: visible;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border: 3px solid #2d3e2f;
    text-transform: uppercase;
    position: relative;
    z-index: 1270; /* Above search overlay (1260) */
    transition: opacity 0.3s ease;
}

.badge-label {
    background-color: rgba(45, 62, 47, 0.85);
    color: white;
    padding: 8px 12px;
    white-space: nowrap;
    border-right: 3px solid #2d3e2f;
}

.badge-value {
    background-color: #487531;
    color: white;
    padding: 8px 12px;
    font-weight: 900;
    white-space: nowrap;
}

/* Map Styles */
#map {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
}

/* Green overlay for TreeTwin theme (only in street view) */
.leaflet-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(72, 117, 49, 0.15);
    pointer-events: none;
    z-index: 1000;
}

/* Hide green overlay in satellite view */
.leaflet-container.hide-green-overlay::after {
    display: none;
}

/* Remove/minimize map labels */
.leaflet-container {
    background-color: #242424;
}

/* Green tint for map tiles (only in street view) - DISABLED for Mapbox */
/* .leaflet-container.street-view .leaflet-tile {
    filter: sepia(0.25) hue-rotate(60deg) saturate(1.1);
} */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fefefe;
    margin: 100px auto 5%;
    padding: 30px;
    border: 3px solid #2d4a1f;
    border-radius: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: #333;
}

h2 {
    color: #2d3e2f;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 28px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a5a4c;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="file"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 3px solid #7a7a6e;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s, background-color 0.3s;
    background-color: #fafaf8;
    color: #2d3e2f;
}

input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #487531;
    background-color: #ffffff;
}

/* Custom file input styling */
.file-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.file-input-label {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #487531;
    border: 3px solid #2d4a1f;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0px #2d4a1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-input-label:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.file-input-label:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

.file-name {
    color: #5a6a5c;
    font-size: 14px;
    font-style: italic;
}

/* Custom select dropdown styling */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23487531" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

select:hover {
    border-color: #487531;
}

select option {
    font-family: 'Chakra Petch', sans-serif;
    padding: 12px;
    background-color: #ffffff;
    color: #2d3e2f;
}

.coordinates {
    color: #5a6a5c;
    font-family: monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#imagePreview {
    margin-top: 12px;
}

#imagePreview img {
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border: 3px solid #2d4a1f;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background-color: #487531;
    color: white;
    border: 3px solid #2d4a1f;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0px #2d4a1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.btn-primary:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

.help-text {
    display: block;
    margin-top: 4px;
    color: #5a6a5c;
    font-size: 12px;
    font-family: 'Chakra Petch', sans-serif;
    font-style: normal;
}

.btn-twin-tree {
    margin-top: 16px;
}

.btn-learn-more {
    display: inline-block;
    padding: 4px 10px;
    margin-top: 2px;
    margin-bottom: 2px;
    background-color: white;
    color: #487531;
    border: 2px solid #487531;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-learn-more:hover {
    background-color: #f5f5f0;
}

.btn-learn-more:active {
    background-color: #e8e8e0;
}

/* Tree Action Buttons Container */
.tree-action-buttons {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
    flex-wrap: wrap;
}

/* Share Button */
.btn-share-tree {
    display: inline-block;
    padding: 4px 10px;
    background-color: #487531;
    color: white;
    border: 2px solid #2d3e2f;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-share-tree:hover {
    background-color: #3a5f28;
}

.btn-share-tree:active {
    background-color: #2d3e2f;
}

/* Checkout Page Styles */
.checkout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
    padding: 20px;
}

.checkout-content {
    background-color: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: #487531;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 24px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.checkout-content h1 {
    color: #2d3e2f;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 32px;
}

.message {
    color: #4a5a4c;
    font-size: 18px;
    margin-bottom: 8px;
}

.submessage {
    color: #7a8a7c;
    font-size: 16px;
    margin-bottom: 32px;
}

.countdown {
    background-color: #f0f0e8;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.countdown p {
    color: #5a6a5c;
    font-size: 18px;
    font-weight: 600;
}

#countdown {
    color: #487531;
    font-weight: 700;
    font-size: 24px;
}

.tree-details {
    text-align: left;
    background-color: #fafaf8;
    padding: 24px;
    border-radius: 0;
    border: 3px solid #7a7a6e;
    box-shadow: 4px 4px 0px #b0b0a8;
}

.tree-details h3 {
    color: #2d3e2f;
    margin-bottom: 16px;
    font-weight: 600;
}

.tree-details p {
    color: #5a6a5c;
    margin-bottom: 8px;
    font-size: 16px;
}

.tree-details strong {
    color: #3a4a3c;
}

/* Checkout Buttons */
.checkout-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-certificate {
    padding: 12px 24px;
    background-color: #487531;
    color: white;
    border: 3px solid #2d4a1f;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 4px 4px 0px #2d4a1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-certificate:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.btn-certificate:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

.checkout-buttons .btn-primary {
    width: auto;
    flex: 1;
    min-width: 180px;
}

.checkout-buttons .btn-certificate {
    flex: 1;
    min-width: 180px;
}

/* Desktop: Larger font for checkout buttons */
@media (min-width: 769px) {
    .btn-primary,
    .btn-certificate {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .checkout-buttons {
        flex-direction: column;
    }

    .checkout-buttons .btn-certificate {
        order: 1;
    }

    .checkout-buttons .btn-primary {
        order: 2;
        width: 100%;
    }

    .checkout-buttons .btn-certificate {
        width: 100%;
    }
}

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
    pointer-events: none;
}

/* Info Popup */
.info-popup {
    position: absolute;
    z-index: 1000;
    background-color: white;
    border: 3px solid #2d4a1f;
    border-radius: 0;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 300px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-info {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.close-info:hover {
    color: #333;
}

.info-content img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.info-content .tree-name {
    color: #2d3e2f;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
}

.info-content .tree-coords,
.info-content .tree-first-twinned {
    color: #5a6a5c;
    font-size: 12px;
    margin-bottom: 4px;
}

.twinners-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e0;
}

.twinners-section h4 {
    color: #4a5a4c;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.twinners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.twinner-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    background-color: #fafaf8;
    border-radius: 6px;
}

.twinner-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    margin-bottom: 0;
}

.twinner-item .twinner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.twinner-item .twinner-name {
    color: #2d3e2f;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.twinner-item .twinner-date {
    color: #7a8a7c;
    font-size: 11px;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-navbar {
        padding: 0 16px;
        height: 60px;
    }

    .menu-toggle {
        top: 12px;
        left: 16px;
    }

    .search-toggle {
        top: 12px;
        left: 64px; /* 16px + 24px icon + 24px gap */
    }

    .header-left {
        position: static;
        transform: none;
        margin-right: auto;
        margin-left: 48px;
    }

    .header-left .logo {
        font-size: 22px;
    }

    .header-right {
        margin-left: auto;
    }

    .badge {
        height: auto;
        font-size: 12px;
        line-height: 1;
        box-shadow: none;
    }

    .badge-label,
    .badge-value {
        padding: 7px 9px;
    }

    .hide-mobile {
        display: none;
    }

    .modal-content {
        margin: 80px auto 20px;
        padding: 24px;
        width: 95%;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    h2 {
        font-size: 24px;
    }

    .checkout-content {
        padding: 32px 24px;
    }

    .checkout-content h1 {
        font-size: 28px;
    }

    .info-popup {
        width: calc(100% - 40px);
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header-right {
        gap: 8px;
        margin-left: auto;
    }

    .badge {
        height: auto;
        font-size: 11px;
        line-height: 1;
        box-shadow: none;
    }

    .badge-label,
    .badge-value {
        padding: 6px 7px;
    }

    .modal-content {
        margin: 80px auto 20px;
        padding: 20px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .checkout-content {
        padding: 24px 16px;
    }

    .success-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }

    .checkout-content h1 {
        font-size: 24px;
    }

    .message {
        font-size: 16px;
    }
}

/* Custom Leaflet Marker */
.tree-marker {
    background-color: #487531;
    border: 3px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tree-marker:hover {
    background-color: #3a5f28;
    transform: scale(1.1);
    cursor: pointer;
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.close-image-modal:hover,
.close-image-modal:focus {
    color: #bbb;
}

.modal-image-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.image-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #f1f1f1;
    padding: 16px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

.twinner-item img.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.twinner-item img.clickable:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Help Tooltip Overlay */
.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 117, 49, 0.90) 0%, rgba(45, 62, 47, 0.90) 100%);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 32px 32px 32px;
    animation: fadeIn 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.help-overlay.hidden {
    display: none;
}

.help-overlay h2 {
    font-family: 'Chakra Petch', sans-serif;
    color: white;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 32px;
    text-align: center;
}

.help-overlay .how-it-works {
    max-width: 700px;
    margin-bottom: 24px;
}

.help-overlay .how-it-works h3 {
    color: #2d3e2f;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-tile {
    background-color: white;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #487531;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-content strong {
    display: block;
    color: #2d3e2f;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.step-content p {
    color: #5a6a5c;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.how-it-works-content {
    background-color: transparent;
    border-radius: 0;
    padding: 32px;
    box-shadow: none;
}

.how-it-works-content p {
    color: white;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.how-it-works-content p:last-child {
    margin-bottom: 0;
}

.how-it-works-content strong {
    color: white;
    font-weight: 600;
}

@media (max-width: 768px) {
    .help-overlay {
        padding: 20px 20px 40px 20px;
        justify-content: flex-start !important;
    }

    .help-overlay h2 {
        margin-top: 0;
        font-size: 28px;
    }

    .help-overlay .how-it-works {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .how-it-works-content {
        padding: 24px;
    }

    .menu-overlay {
        padding: 100px 20px 40px 20px;
        justify-content: flex-start;
    }

    .menu-item-btn:first-of-type {
        margin-top: 0;
    }

    .menu-overlay-content {
        max-width: 100%;
    }

    .how-it-works-content p {
        font-size: 15px;
        margin-bottom: 16px;
    }

    .overlay-button-group {
        margin-bottom: 12px;
    }
}

.overlay-button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.get-started-btn,
.close-overlay-btn {
    padding: 14px 28px;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.get-started-btn {
    background-color: #487531;
    color: white;
    border: 3px solid #2d4a1f;
    box-shadow: 4px 4px 0px #2d4a1f;
}

.get-started-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.get-started-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

.get-started-btn .fab-icon {
    font-size: 20px;
    line-height: 1;
    font-weight: 300;
}

.close-overlay-btn {
    background-color: white;
    color: #487531;
    border: 3px solid #2d4a1f;
    box-shadow: 4px 4px 0px #2d4a1f;
}

.close-overlay-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.close-overlay-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

@media (max-width: 480px) {
    .overlay-button-group {
        flex-direction: column;
        width: 100%;
    }

    .get-started-btn,
    .close-overlay-btn {
        width: 100%;
    }
}

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

.help-tooltip p {
    margin: 0;
    color: #2d3e2f;
    font-size: 14px;
    font-weight: 600;
    padding-right: 20px;
}

.close-help {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    font-weight: 300;
    color: #7a8a7c;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-help:hover {
    color: #2d3e2f;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 117, 49, 0.90) 0%, rgba(45, 62, 47, 0.90) 100%);
    backdrop-filter: blur(4px);
    z-index: 1250;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    animation: fadeIn 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-overlay.hidden {
    display: none;
}

.menu-overlay-content {
    max-width: 500px;
    text-align: center;
}

.menu-overlay-content h2 {
    color: white;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
}

.menu-item-btn {
    width: 100%;
    background: white;
    color: #2d3e2f;
    border: 3px solid #2d3e2f;
    border-radius: 0;
    padding: 16px 24px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.1s ease;
    display: block;
    text-align: center;
}

.menu-item-btn:hover {
    background: #f5f5f0;
}

.menu-item-btn:active {
    background: #e8f5e9;
}

.close-menu {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 24px;
    font-weight: 300;
    color: white;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 1101;
}

.close-menu:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 117, 49, 0.95) 0%, rgba(45, 62, 47, 0.95) 100%);
    backdrop-filter: blur(8px);
    z-index: 1260; /* Higher than menu overlay */
    display: flex;
    flex-direction: column;
    padding: 80px 20px 20px 20px;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.search-overlay.hidden {
    display: none;
}

.search-overlay-content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Search Input */
.search-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 16px 48px 16px 16px;
    font-size: 18px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 500;
    border: 3px solid white;
    border-radius: 0;
    background: white;
    color: #2d3e2f;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    transform: translate(-2px, -2px);
}

.search-input::placeholder {
    color: rgba(45, 62, 47, 0.4);
}

.search-clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-52%);
    background: none;
    border: none;
    color: #487531;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    line-height: 1;
}

.search-clear-btn:hover {
    color: #2d4a1f;
}

/* Search Results */
.search-results {
    background: white;
    border: 3px solid #2d4a1f;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

.search-results.hidden {
    display: none;
}

/* Loading State */
.search-loading {
    padding: 40px;
    text-align: center;
    color: #487531;
    font-weight: 600;
}

.search-loading.hidden {
    display: none;
}

.search-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8f5e9;
    border-top-color: #487531;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* Search Sections */
.search-section {
    border-bottom: 2px solid #e8e8e0;
}

.search-section:last-child {
    border-bottom: none;
}

.search-section.hidden {
    display: none;
}

.search-section-header {
    padding: 12px 16px;
    background: #f5f5f0;
    color: #2d3e2f;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #e8e8e0;
}

.search-list {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Search Items */
.search-item {
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f5f5f0;
}

.search-item:hover {
    background: #e8f5e9;
    transform: translateX(2px);
}

.search-item:last-child {
    border-bottom: none;
}

.search-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-name {
    color: #2d3e2f;
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.search-item-meta {
    color: #7a8a7c;
    font-size: 13px;
    display: block;
}

/* Empty State */
.search-empty {
    padding: 60px 20px;
    text-align: center;
    color: #7a8a7c;
}

.search-empty.hidden {
    display: none;
}

.search-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.3;
}

.search-empty p {
    font-size: 18px;
    font-weight: 600;
    color: #5a6a5c;
    margin: 0 0 8px 0;
}

.search-empty small {
    font-size: 14px;
    color: #7a8a7c;
}

/* Floating Action Buttons Container */
.fab-container {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1001;
    align-items: center;
}

/* Floating Action Button */
.fab-button {
    padding: 14px 36px;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.1s ease;
    white-space: nowrap;
    flex: 1;
    max-width: 260px;
    min-height: 58px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

.fab-primary {
    background-color: #487531;
    color: white;
    border: 3px solid #2d3e2f;
    box-shadow: 4px 4px 0px #2d3e2f;
}

.fab-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d3e2f;
}

.fab-primary:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d3e2f;
}

.fab-secondary {
    background-color: white;
    color: #487531;
    border: 3px solid #2d4a1f;
    box-shadow: 4px 4px 0px #2d4a1f;
}

.fab-secondary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.fab-secondary:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

.fab-icon {
    font-size: 24px;
    line-height: 1;
    font-weight: 300;
}

.fab-text {
    line-height: 1;
}

/* Desktop: Make FAB button wider */
@media (min-width: 769px) {
    .fab-button {
        padding: 14px 50px;
        max-width: 300px;
    }
}

/* Crosshair */
.crosshair {
    position: fixed;
    top: calc(50% + 35px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: 1001;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.crosshair-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #487531;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.crosshair-lines {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.crosshair-line {
    position: absolute;
    background-color: #487531;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.crosshair-line-h {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.crosshair-line-v {
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    transform: translateX(-50%);
}

/* Placement Controls */
.placement-controls {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 12px;
    z-index: 1001;
    width: auto;
    max-width: none;
}

.btn-confirm,
.btn-cancel {
    flex: 1;
    padding: 12px 24px;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    white-space: nowrap;
}

.btn-confirm {
    background-color: #487531;
    color: white;
    border: 3px solid #2d4a1f;
    box-shadow: 4px 4px 0px #2d4a1f;
}

.btn-confirm:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.btn-confirm:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

.btn-cancel {
    background-color: #e07676;
    color: white;
    border: 3px solid #b85555;
    box-shadow: 4px 4px 0px #b85555;
}

.btn-cancel:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #b85555;
}

.btn-cancel:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #b85555;
}

.btn-location {
    flex: 1;
    padding: 12px 24px;
    background-color: white;
    color: #487531;
    border: 3px solid #2d4a1f;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0px #2d4a1f;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
    white-space: nowrap;
}

.btn-location:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2d4a1f;
}

.btn-location:active {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0px #2d4a1f;
}

/* Map dimming in placement mode - removed, using overlay instead */

/* Step Screen */
.step-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(72, 117, 49, 0.90) 0%, rgba(45, 62, 47, 0.90) 100%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

.step-screen.active {
    display: flex;
}

.step-container {
    max-width: 600px;
    width: 100%;
    position: relative;
}

.step-form {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.step-form.hidden {
    display: none;
}

.step-form.fade-out {
    opacity: 0;
}

.step-title {
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.3;
}

.step-subtitle {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
}

.step-input, .step-select {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    border: 3px solid #2d4a1f !important;
    border-radius: 0;
    background: white;
    color: #2d4a1f;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 4px 4px 0 #2d4a1f;
}

.step-input:focus, .step-select:focus {
    outline: none;
    background: #f5f5f5;
}

.step-input::placeholder, .step-select::placeholder {
    color: rgba(45, 74, 31, 0.3);
    opacity: 1;
}

.step-help {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.step-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.btn-step-next, .btn-step-checkout, .btn-step-back {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border: 3px solid;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-step-next, .btn-step-checkout {
    background: #487531;
    color: white;
    border-color: #2d4a1f;
    box-shadow: 4px 4px 0 #2d4a1f;
}

.btn-step-next:hover, .btn-step-checkout:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #2d4a1f;
}

.btn-step-next:active, .btn-step-checkout:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #2d4a1f;
}

.btn-step-checkout:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0 #2d4a1f;
}

.btn-step-back {
    background: white;
    color: #487531;
    border-color: #2d4a1f;
    box-shadow: 4px 4px 0 #2d4a1f;
}

.btn-step-back:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #2d4a1f;
}

.btn-step-back:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #2d4a1f;
}

.photo-upload-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.upload-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #2d4a1f;
    color: white;
    border: 3px solid #1a2e14;
    border-radius: 0;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0 #1a2e14;
}

.upload-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #1a2e14;
}

.upload-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #1a2e14;
}

.step-photo-preview {
    margin-top: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-photo-preview img {
    max-width: 100%;
    max-height: 250px;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.step-price-display {
    text-align: center;
    color: white;
    font-size: 24px;
    margin: 20px 0;
}

.step-price-display strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .step-title {
        font-size: 20px;
    }

    .step-input, .step-select {
        font-size: 13px;
        padding: 16px;
    }

    .btn-step-next, .btn-step-checkout, .btn-step-back {
        font-size: 14px;
        padding: 12px 24px;
        min-width: 120px;
    }

    .step-buttons {
        flex-direction: column-reverse;
        width: 100%;
    }

    .btn-step-next, .btn-step-checkout, .btn-step-back {
        width: 100%;
    }

    .crosshair {
        top: calc(50% + 30px);
    }

    .fab-container {
        bottom: 30px;
        flex-direction: column;
        gap: 10px;
        width: calc(100% - 40px);
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
    }

    .fab-button {
        padding: 12px 20px;
        font-size: 18px;
        max-width: 100%;
        width: 100%;
    }

    .fab-icon {
        font-size: 20px;
    }

    .placement-controls {
        bottom: 16px;
        width: calc(100% - 32px);
        max-width: 400px;
        flex-wrap: wrap;
    }

    .btn-confirm,
    .btn-cancel,
    .btn-location {
        padding: 12px 20px;
        font-size: 13px;
        width: calc(50% - 6px);
        flex: none;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    align-items: center;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #2d3e2f;
    padding: 14px 18px;
    border: 2px solid #487531;
    box-shadow: 3px 3px 0 rgba(72, 117, 49, 0.3);
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 600;
    font-size: 14px;
    max-width: 400px;
    pointer-events: auto;
    animation: dropDown 0.4s ease;
    line-height: 1.4;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: fit-content;
}

.toast.fade-out {
    opacity: 0;
}

.toast.error {
    border-color: #487531;
    box-shadow: 3px 3px 0 rgba(72, 117, 49, 0.3);
}

@keyframes dropDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }

    .toast {
        min-width: auto;
        width: 100%;
        font-size: 13px;
        padding: 14px 16px;
    }
}

/* Quantity Stepper */
.quantity-stepper {
    margin: 20px 0;
    text-align: center;
}

.quantity-label {
    display: block;
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.stepper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.stepper-btn {
    width: 48px;
    height: 48px;
    background: white;
    color: #487531;
    border: 2px solid #2d4a1f;
    box-shadow: 3px 3px 0 #2d4a1f;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.stepper-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #2d4a1f;
}

.stepper-btn:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 #2d4a1f;
}

.stepper-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: 3px 3px 0 #2d4a1f;
}

.stepper-value {
    min-width: 60px;
    padding: 12px 20px;
    background: white;
    color: #2d3e2f;
    border: 2px solid #2d4a1f;
    box-shadow: 3px 3px 0 #2d4a1f;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .stepper-btn {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .stepper-value {
        min-width: 50px;
        padding: 10px 16px;
        font-size: 18px;
    }
}
