﻿/* Main Styles for Craft Review PWA */
:root {
    --primary-color: #8b4513;
    --secondary-color: #d2691e;
    --accent-color: #f4a460;
    --light-color: #f5f5f5;
    --dark-color: #333;
    --error-color: #cc0000;
    --success-color: #009900;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: var(--dark-color);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

    header h1 {
        text-align: center;
        margin-bottom: 0.5rem;
        font-size: 1.5rem;
    }

nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    font-size: 0.9rem;
}

    nav a.active {
        border-bottom: 2px solid white;
    }

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

h2 {
    text-align: center;
    margin: 1rem 0;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Form Section Styles */
.form-section {
    margin-bottom: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-subsection {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

    .form-subsection:last-child {
        border-bottom: none;
    }

.required {
    color: var(--error-color);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}

    input[type="text"]:focus,
    textarea:focus,
    select:focus {
        outline: none;
        border-color: var(--secondary-color);
    }

textarea {
    min-height: 80px;
    resize: vertical;
}

/* Character Count Display */
.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.3rem;
}

/* Rating Slider Styles */
.rating-slider {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
}

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        transition: background-color 0.2s;
    }

    input[type="range"]::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--primary-color);
        cursor: pointer;
        transition: background-color 0.2s;
        border: none;
    }

    input[type="range"]::-webkit-slider-thumb:hover {
        background: var(--secondary-color);
    }

    input[type="range"]::-moz-range-thumb:hover {
        background: var(--secondary-color);
    }

.rating-value {
    margin-left: 1rem;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 60px;
}

/* Location Section Styles */
.location-section {
    position: relative;
}

.location-input {
    display: flex;
    gap: 0.5rem;
}

    .location-input button {
        background-color: var(--secondary-color);
        border: none;
        border-radius: var(--radius);
        padding: 0.5rem;
        cursor: pointer;
    }

        .location-input button img {
            width: 20px;
            height: 20px;
            filter: brightness(0) invert(1);
        }

.location-map {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 0;
}

.selected-location {
    margin-top: 0.5rem;
    font-weight: bold;
    color: var(--success-color);
}

/* Tasting Count Selection */
.tasting-count {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
    width: 100%;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M12 15l-5-5h10l-5 5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    cursor: pointer;
}

/* Product Review Styles */
.product-review {
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(139, 69, 19, 0.05);
    cursor: pointer;
}

    .product-header h4 {
        margin: 0;
    }

.product-collapse-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-body {
    padding: 1rem;
}

    .product-body.collapsed {
        display: none;
    }

/* Photo Upload Styles */
.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ddd;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

    .photo-upload:hover {
        border-color: var(--secondary-color);
    }

    .photo-upload img {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
        opacity: 0.7;
    }

    .photo-upload span {
        font-size: 0.9rem;
        color: #777;
    }

    .photo-upload input[type="file"] {
        display: none;
    }

.photo-preview {
    height: 150px;
    background-color: #f8f8f8;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .photo-preview img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.photo-info {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #777;
}

.photo-name {
    font-weight: bold;
}

.photo-size {
    margin-left: 0.5rem;
}

/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 2rem;
}

button[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

    button[type="submit"]:hover {
        background-color: var(--secondary-color);
    }

footer {
    text-align: center;
    padding: 1rem;
    color: #777;
    font-size: 0.8rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

/* Error Styling */
.error {
    border-color: var(--error-color) !important;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    background-color: #333;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: none;
    max-width: 300px;
    max-height: 100px;
    overflow: auto;
    text-align: center;
}

    .notification.info {
        background-color: #2196F3;
    }

    .notification.success {
        background-color: var(--success-color);
    }

    .notification.warning {
        background-color: #FF9800;
    }

    .notification.error {
        background-color: var(--error-color);
    }

/* Media Queries */
@media (max-width: 600px) {
    .form-section {
        padding: 1rem;
    }

    .product-header {
        padding: 0.8rem;
    }

    .product-body {
        padding: 0.8rem;
    }

    button[type="submit"] {
        width: 100%;
    }
}

/* Location Results */
.location-results {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.location-result-item {
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .location-result-item:last-child {
        border-bottom: none;
    }

    .location-result-item:hover {
        background-color: rgba(139, 69, 19, 0.05);
    }

.location-name {
    font-weight: bold;
    color: var(--primary-color);
}

.location-address {
    font-size: 0.9rem;
    color: #666;
}

.location-distance {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

/* Producer Information Styling */
.producer-selected {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--accent-color);
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.producer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.producer-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.producer-address {
    color: var(--dark-color);
}

.producer-amenities,
.producer-hours,
.producer-phone {
    font-size: 0.9rem;
    color: var(--dark-color);
}

.producer-social {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

    .producer-social a {
        color: var(--secondary-color);
        text-decoration: none;
    }

        .producer-social a:hover {
            text-decoration: underline;
        }

.producer-website a {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0.3rem 0.8rem;
    color: white;
    background-color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

    .producer-website a:hover {
        background-color: var(--secondary-color);
    }

/* Discover Page Styles */
.discover-container {
    max-width: 1000px;
    margin: 0 auto;
}

.discover-map-container {
    margin-bottom: 1rem;
}

.discover-map {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 0;
}

.search-controls {
    display: block;
}

.search-results {
    display: none; /* Set to block by discover.js after search */
}

/* Radius Slider */
.radius-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radius-value {
    font-weight: bold;
    min-width: 70px;
}

/* Producer List */
.producer-list-container {
    margin-top: 1rem;
}

.list-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.selection-count {
    font-weight: bold;
    color: var(--primary-color);
}

.list-actions {
    display: flex;
    gap: 0.5rem;
}

.secondary-button {
    background-color: #f0f0f0;
    color: var(--dark-color);
    border: 1px solid #ddd;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

    .secondary-button:hover {
        background-color: #e0e0e0;
    }

    .secondary-button:disabled,
    .primary-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.3s;
}

    .primary-button:hover {
        background-color: var(--secondary-color);
    }

/* Producer List Table */
.producer-list {
    border: 1px solid #eee;
    border-radius: var(--radius);
    overflow: hidden;
}

.producer-list-header {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr;
    background-color: #f5f5f5;
    padding: 0.8rem;
    font-weight: bold;
    border-bottom: 1px solid #eee;
}

.producer-list-content {
    max-height: 400px;
    overflow-y: auto;
}

.producer-item {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr;
    padding: 0.8rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

    .producer-item:last-child {
        border-bottom: none;
    }

    .producer-item:hover {
        background-color: rgba(139, 69, 19, 0.05);
    }

    .producer-item.selected {
        background-color: rgba(139, 69, 19, 0.1);
    }

.select-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-col {
    font-weight: 500;
}

.producer-address {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.2rem;
}

.distance-col {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.rating-col {
    display: flex;
    align-items: center;
}

.star-rating {
    display: flex;
    color: #f4a460;
}

/* Tour Plan Styles */
.tour-plan-container {
    margin-top: 1rem;
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tour-actions {
    display: flex;
    gap: 0.5rem;
}

.tour-locations {
    margin-top: 1rem;
}

.tour-location-item {
    background-color: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.tour-location-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.tour-location-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.tour-location-number {
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.tour-location-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tour-location-address,
.tour-location-hours,
.tour-location-amenities {
    font-size: 0.9rem;
}

.tour-location-contact {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.tour-location-phone,
.tour-location-website {
    font-size: 0.9rem;
}

.tour-location-ratings {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.producer-rating,
.top-product {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Share Options */
.share-options {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.share-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

    .share-button img {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
        opacity: 0.8;
        transition: opacity 0.3s;
    }

    .share-button:hover img {
        opacity: 1;
    }

/* Map Marker Styles */
.user-location-marker {
    background: none;
    border: none;
}

.user-marker-icon {
    width: 20px;
    height: 20px;
    background-color: #3388ff;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.numbered-marker {
    background: none;
    border: none;
}

.marker-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.map-popup {
    padding: 5px;
}

.popup-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.popup-address {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.popup-distance {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Checkbox styling */
.producer-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Tour Map Container */
.tour-map-container {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 0;
}

/* Cluster Styles */
.marker-cluster-small {
    background-color: rgba(139, 69, 19, 0.6);
}

    .marker-cluster-small div {
        background-color: rgba(139, 69, 19, 0.8);
        color: #fff;
    }

.marker-cluster-medium {
    background-color: rgba(139, 69, 19, 0.7);
}

    .marker-cluster-medium div {
        background-color: rgba(139, 69, 19, 0.9);
        color: #fff;
    }

.marker-cluster-large {
    background-color: rgba(139, 69, 19, 0.8);
}

    .marker-cluster-large div {
        background-color: rgba(139, 69, 19, 1);
        color: #fff;
    }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .producer-list-header,
    .producer-item {
        grid-template-columns: 50px 2fr 1fr 1fr;
    }

    .tour-location-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-buttons {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .list-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .producer-list-header,
    .producer-item {
        grid-template-columns: 40px 3fr 1fr 1fr;
        font-size: 0.9rem;
    }

    .tour-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

        .tour-actions button {
            width: 100%;
        }
}

/* Additional styles for the updated discover page */

/* Choice Section Styles */
.choice-container {
    padding: 1.5rem;
    text-align: center;
}

.choice-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.choice-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius);
    padding: 2rem;
    width: 250px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

    .choice-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-color: var(--primary-color);
    }

.choice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.choice-button h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.choice-button p {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Section Header with Back Button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.back-button {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 0.9rem;
}

    .back-button:hover {
        text-decoration: underline;
    }

/* Search Form for Single Producer */
.search-form {
    padding: 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

/* Location Help Text */
.location-help-text {
    margin-bottom: 1rem;
    padding: 0.8rem;
    background-color: rgba(139, 69, 19, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 4px;
}

    .location-help-text p {
        margin-bottom: 0.5rem;
        font-weight: 500;
    }

    .location-help-text ul {
        padding-left: 1.5rem;
        font-size: 0.9rem;
    }

/* Single Producer Result */
#singleProducerResult {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.producer-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.producer-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.producer-detail-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.producer-detail-distance {
    color: var(--secondary-color);
    font-weight: bold;
}

.producer-detail-address {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.producer-detail-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.producer-detail-phone,
.producer-detail-website {
    font-size: 1rem;
}

.producer-detail-info-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.producer-detail-hours,
.producer-detail-amenities {
    margin-bottom: 0.5rem;
}

.producer-detail-map {
    height: 300px;
    width: 100%;
    margin-top: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.location-button {
    background-color: var(--secondary-color);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .location-button img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    .location-button:hover {
        background-color: var(--primary-color);
    }

/* Actions Row */
.actions-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .choice-options {
        flex-direction: column;
        align-items: center;
    }

    .choice-button {
        width: 90%;
        max-width: 300px;
    }

    .producer-detail-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .actions-row {
        flex-direction: column;
    }

        .actions-row button {
            width: 100%;
        }
}
/* Additional styles for the single producer search */
.search-help {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.3rem;
    font-style: italic;
}

.producer-detail {
    background-color: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.producer-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.producer-detail-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.producer-detail-distance {
    color: var(--secondary-color);
    font-weight: bold;
}

.producer-detail-address {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.producer-detail-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.producer-detail-info-section {
    border-top: 1px solid #eee;
    margin-top: 1rem;
    padding-top: 1rem;
}

.producer-detail-hours,
.producer-detail-amenities {
    margin-bottom: 0.5rem;
}

.producer-social {
    margin-top: 0.5rem;
}

.producer-detail-map {
    height: 300px;
    width: 100%;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
}

.actions-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .producer-detail-header {
        flex-direction: column;
    }

    .producer-detail-distance {
        margin-top: 0.5rem;
    }

    .producer-detail-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .actions-row {
        flex-direction: column;
    }

        .actions-row button {
            width: 100%;
        }
}
refine-message {
    color: #cc0000;
    font-weight: bold;
    background-color: #fff4f4;
    padding: 0.5rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

/* Location Selection Methods */
.location-selection-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.location-method {
    position: relative;
}

    .location-method input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .location-method label {
        display: flex;
        align-items: center;
        padding: 0.8rem;
        border: 2px solid #eee;
        border-radius: var(--radius);
        cursor: pointer;
        transition: all 0.2s ease;
        background-color: white;
    }

    .location-method input[type="radio"]:checked + label {
        border-color: var(--primary-color);
        background-color: rgba(139, 69, 19, 0.05);
    }

    .location-method:hover label {
        border-color: var(--accent-color);
    }

.method-icon {
    font-size: 1.2rem;
    margin-right: 1rem;
    display: inline-block;
}

.location-input-method {
    margin-bottom: 1rem;
}

#searchLocationButton {
    background-color: var(--secondary-color);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #searchLocationButton:hover {
        background-color: var(--primary-color);
    }

.map-instruction {
    padding: 0.8rem;
    background-color: rgba(139, 69, 19, 0.05);
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .location-selection-methods {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .location-method {
        flex: 1;
        min-width: 200px;
    }
}
/* Starting point styling */
.tour-location-item.starting-point {
    background-color: #f5f5f5;
    border-left: 4px solid var(--primary-color);
}

.tour-location-number-start {
    background-color: #f5f5f5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
}

.starting-icon {
    width: 20px;
    height: 20px;
}

.user-marker-icon {
    width: 20px;
    height: 20px;
    background-color: #4285F4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}
/* Authentication Button Styling */
.auth-button {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    transition: background-color 0.2s;
    text-decoration: none;
    color: white;
}

    .auth-button:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

.auth-text {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 500;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Authentication state classes for conditional display */
.is-authenticated .auth-only {
    display: block;
}

.is-authenticated .guest-only {
    display: none;
}

.auth-only {
    display: none;
}

/* Or use data attributes for more control */
[data-auth-show="logged-in"] {
    display: none;
}

body.is-authenticated [data-auth-show="logged-in"] {
    display: block;
}

body.is-authenticated [data-auth-show="logged-out"] {
    display: none;
}
.choice-image-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

/* Enhance the choice-icon container to properly center the image */
.choice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

/* For responsive design on smaller screens */
@media (max-width: 768px) {
    .choice-image-icon {
        width: 40px;
        height: 40px;
    }
}

<!-- Add these CSS styles to style.css -->
.search-section {
    margin-bottom: 1.5rem;
}

.divider-with-text {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    border: none;
    border-top: 1px solid #ddd;
}

.divider-text {
    padding: 0 1rem;
    color: #999;
    font-weight: bold;
    font-size: 0.9rem;
}

.near-me-section {
    text-align: center;
}

.find-near-me-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--secondary-color);
}

    .find-near-me-button:hover {
        background-color: var(--primary-color);
    }

    .find-near-me-button .location-pin-icon {
        width: 24px;
        height: 24px;
        fill: white;
    }

/* Remove the old location button styling from location-button class */
.location-button {
    background-color: var(--secondary-color);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem;
    cursor: pointer;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .location-button:hover {
        background-color: var(--primary-color);
    }

.location-pin-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Add these styles to your style.css file */

/* Step Container Styles */
.step-container {
    margin-bottom: 1.5rem;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.step-back-button {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

    .step-back-button:hover {
        text-decoration: underline;
    }

/* Location Method Buttons */
.location-method-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.location-method-button {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border: 2px solid #eee;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

    .location-method-button:hover {
        border-color: var(--secondary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .location-method-button:active {
        transform: translateY(0);
    }

.method-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 30px;
    text-align: center;
}

.method-label {
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark-color);
}

/* Current Location Step */
.current-location-content {
    background-color: rgba(139, 69, 19, 0.05);
    padding: 1rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

    .current-location-content p {
        margin-bottom: 1.5rem;
        font-size: 1rem;
    }

/* Radius Container */
.radius-container {
    background-color: white;
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #eee;
}

/* Map Styles */
.location-map-compact {
    height: 250px;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

/* Location Button with Icon */
#currentLocationButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.location-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Selected Location */
.selected-location {
    margin: 0.5rem 0;
    font-weight: 500;
    color: var(--primary-color);
    padding: 0.5rem;
    background-color: rgba(139, 69, 19, 0.05);
    border-radius: var(--radius);
    display: none;
}

    .selected-location:not(:empty) {
        display: block;
    }

/* Responsive Adjustments */
@media (min-width: 768px) {
    .location-method-buttons {
        flex-direction: row;
        justify-content: space-between;
    }

    .location-method-button {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .method-icon {
        font-size: 2rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .location-map-compact {
        height: 200px;
    }
}
/* Add to your CSS */
.full-width-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 16px;
    box-sizing: border-box;
}

    .full-width-input:focus {
        border-color: var(--secondary-color);
        outline: none;
    }

.back-to-search {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius);
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.2s ease;
}

    .back-to-search:hover {
        background-color: var(--primary-color);
        color: white;
    }

/* Adjust the Results heading to have space for the back button */
.search-results .form-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
/* Compact choice options styling */
.compact-choice-container {
    padding: 0 1rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.compact-option-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.option-button {
    display: flex;
    align-items: center;
    background-color: white;
    border: 1px solid #eee;
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    width: 100%;
}

    .option-button:hover, .option-button:focus {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        border-color: var(--accent-color);
    }

.option-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    min-width: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-content {
    flex: 1;
}

.option-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.option-description {
    font-size: 0.85rem;
    color: var(--text-secondary, #666);
    margin: 0;
}

/* Specific button colors */
.beverage-button {
    border-left: 4px solid #ffc107;
}

.producer-button {
    border-left: 4px solid #4caf50;
}

.tour-button {
    border-left: 4px solid #2196f3;
}

/* Media Queries for responsive design */
@media (min-width: 768px) {
    /* For desktop */
    .compact-option-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .option-button {
        flex: 1;
        min-width: 200px;
        max-width: 300px;
        padding: 1rem 1.2rem;
    }

    .option-title {
        font-size: 1.1rem;
    }

    .option-description {
        font-size: 0.9rem;
    }

    .option-icon {
        font-size: 1.8rem;
    }
}

/* Adjustments for very small screens */
@media (max-width: 350px) {
    .option-button {
        padding: 0.6rem 0.8rem;
    }

    .option-icon {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }

    .option-title {
        font-size: 0.9rem;
    }

    .option-description {
        font-size: 0.75rem;
    }
}