﻿/* Check-in Styles for Barrel Crawl */
:root {
    --primary-color: #8b4513;
    --secondary-color: #d2691e;
    --accent-color: #f4a460;
    --light-color: #f5f5f5;
    --dark-color: #333;
}

.checkin-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 70px; /* Space for bottom navigation */
}

.checkin-section {
    background-color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 16px;
    text-align: center;
}

.location-help-text {
    background-color: rgba(139, 69, 19, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}

    .location-help-text p {
        margin-bottom: 8px;
        margin-top: 0;
    }

        .location-help-text p:last-child {
            margin-bottom: 0;
        }

.location-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    transition: background-color 0.2s;
}

    .location-button:hover {
        background-color: var(--secondary-color);
    }

.location-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.map-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid #eee;
}

/* Important: Make sure location results are visible when populated */
.location-results {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

/* Styling for location result items */
.location-result {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .location-result:last-child {
        border-bottom: none;
    }

    .location-result:hover {
        background-color: rgba(139, 69, 19, 0.05);
    }

    .location-result.selected {
        background-color: rgba(139, 69, 19, 0.1);
        border-left: 3px solid var(--primary-color);
    }

.location-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.location-address {
    font-size: 14px;
    color: #666;
}

.location-distance {
    font-size: 12px;
    color: var(--secondary-color);
    margin-top: 4px;
}

/* Producer card styling */
.producer-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    position: relative;
}

    .producer-card.selected {
        border-left: 3px solid var(--primary-color);
        background-color: rgba(139, 69, 19, 0.05);
    }

.producer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.producer-title {
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    font-size: 18px;
}

.producer-distance {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.producer-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.producer-amenities {
    font-size: 13px;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
}

/* Check-in form styles */
.checkin-form {
    margin-top: 24px;
}

.form-group {
    margin-bottom: 16px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 500;
    }

.textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    min-height: 80px;
    box-sizing: border-box;
}

    .textarea:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.char-count {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}

.photo-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .photo-upload:hover {
        border-color: var(--primary-color);
    }

.photo-upload-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23777" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.photo-preview {
    display: none;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 16px;
    position: relative;
}

    .photo-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-preview .retake-button {
        position: absolute;
        bottom: 10px;
        right: 10px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 4px;
        padding: 6px 12px;
        font-size: 14px;
        cursor: pointer;
    }

.share-options {
    display: flex;
    align-items: center;
}

.share-option {
    display: flex;
    align-items: center;
    cursor: pointer;
}

    .share-option input[type="checkbox"] {
        margin-right: 8px;
    }

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

    .primary-button:hover {
        background-color: var(--secondary-color);
    }

    .primary-button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

.form-actions {
    text-align: center;
    margin-top: 24px;
}

.suggestion-note {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

    .suggestion-note p {
        margin-bottom: 16px;
    }

.button-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .button-outline:hover {
        background-color: var(--primary-color);
        color: white;
    }

.venue-suggestion-form {
    margin-top: 24px;
}

    .venue-suggestion-form h3 {
        margin-bottom: 16px;
        color: var(--primary-color);
    }

.product-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

    .product-input:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.hidden {
    display: none !important;
}

/* Tag styling for suggested venues */
.product-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Producer note for suggested venues */
.producer-note {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

/* Notification styling */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 80%;
}

    .notification.info {
        background-color: #3498db;
    }

    .notification.success {
        background-color: #2ecc71;
    }

    .notification.error {
        background-color: #e74c3c;
    }

    .notification.warning {
        background-color: #f39c12;
    }

/* Responsive adjustments */
@media (max-width: 600px) {
    .checkin-container {
        padding: 10px;
    }

    .map-container {
        height: 250px;
    }

    .photo-preview {
        height: 180px;
    }
}

/* Ensure active nav item is highlighted */
.nav-item.active {
    color: var(--primary-color);
}

/* No results message */
.no-results {
    padding: 16px;
    text-align: center;
    color: #777;
    font-style: italic;
}

/* Improved location result styling */
.location-result {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
    background-color: white;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

    .location-result:hover {
        background-color: rgba(139, 69, 19, 0.05);
    }

    .location-result.selected {
        background-color: rgba(139, 69, 19, 0.1);
        border-left: 3px solid var(--primary-color);
    }

.location-name {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-size: 18px;
}

.location-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.location-distance {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 500;
}

/* Confirm button for producer selection */
.confirm-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: block;
    width: 100%;
    margin-top: 10px;
}

    .confirm-button:hover {
        background-color: var(--secondary-color);
    }

/* Fix to ensure photo upload area is visible */
.photo-upload {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    margin-bottom: 15px;
}

/* Improved form layout */
.checkin-form {
    margin-top: 20px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Ensure these elements don't show initially */
.location-results,
/*.checkin-form,*/
.suggestion-note,
.venue-suggestion-form {
    display: none;
}

/* Remove display:none so we can control visibility with .hidden class */
.location-results {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin: 15px 0;
    padding: 5px;
}
.hidden {
    display: none !important;
}
/* Fix for location results container */
.location-results {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0;
    padding: 5px;
    overflow-y: auto;
    border-radius: 8px;
}

/* Fix for location result items */
.location-result {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    overflow: hidden; /* Prevents content from spilling out */
}

/* Ensure the confirm button stays contained */
.confirm-button {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure all text content wraps properly */
.location-name, .location-address, .location-distance {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Make sure the map stays contained too */
.map-container {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix for the checkin form to stay within bounds */
.checkin-form {
    max-width: 100%;
    box-sizing: border-box;
}
/* Ensure the main container respects boundaries */
.checkin-container {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden; /* Critical - prevents child elements from extending outside */
    width: 100%;
    box-sizing: border-box;
}

/* Force all sections to respect parent container width */
.checkin-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Make sure location results container stays within bounds */
#locationResults {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    margin: 15px 0;
    display: block;
}

/* Fix individual result items */
.location-result,
.producer-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word; /* Forces text to wrap */
    overflow: hidden;
}

/* Fix the confirm button styling */
.confirm-button {
    width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
}

/* Fix the fixed-width elements */
.location-name,
.location-address,
.location-distance,
.producer-title,
.producer-address,
.producer-distance {
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Fix container boundaries */
.checkin-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 70px; /* Space for bottom navigation */
    overflow: hidden; /* Prevent content from spilling out */
}

/* Ensure section properly contains everything */
.checkin-section {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    overflow: hidden; /* Critical fix */
    position: relative; /* Create positioning context */
}

/* Fix map display */
.map-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}

/* Fix location results display */
.location-results {
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal overflow */
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 5px;
    position: relative; /* Position in the flow properly */
}

/* Ensure results stay contained */
.location-result, .producer-card {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    overflow: hidden;
}

/* Ensure consistent behavior for hidden elements */
.hidden {
    display: none !important;
}

/* Update notification styling to appear center screen */
.notification {
    position: fixed;
    top: 50%; /* Center vertically */
    left: 50%;
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 1050; /* Higher than header (1000) */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 80%;
    min-width: 250px;
    animation: fadeInOut 3s ease-in-out;
}

/* Optional animation for smoother appearance/disappearance */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.notification.info {
    background-color: rgba(52, 152, 219, 0.95);
}

.notification.success {
    background-color: rgba(46, 204, 113, 0.95);
}

.notification.error {
    background-color: rgba(231, 76, 60, 0.95);
}

.notification.warning {
    background-color: rgba(243, 156, 18, 0.95);
}

/* Additional styles for the updated check-in flow */

/* Loading spinner animation */
.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No producers found options */
.no-producers-options {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    border-radius: var(--radius);
    margin-top: 1rem;
}

    .no-producers-options h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .no-producers-options p {
        color: #666;
        margin-bottom: 1.5rem;
    }

.option-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Secondary button styling */
.secondary-button {
    background-color: #f0f0f0;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .secondary-button:hover {
        background-color: var(--primary-color);
        color: white;
    }

/* Update existing styles for better flow */
.location-help-text {
    background-color: rgba(139, 69, 19, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    text-align: center;
}

/* Ensure proper spacing for producer selection */
.location-result {
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .option-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}
/* Additional styles for the updated check-in flow */

/* Product tag styling (for suggested venues) */
.product-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Header styling when producer is selected */
.section-title .product-tag {
    font-size: 14px;
    vertical-align: middle;
}

/* Loading spinner animation */
.loading-spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No producers found options */
.no-producers-options {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #f9f9f9;
    border-radius: var(--radius);
    margin-top: 1rem;
}

    .no-producers-options h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

    .no-producers-options p {
        color: #666;
        margin-bottom: 1.5rem;
    }

.option-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Secondary button styling */
.secondary-button {
    background-color: #f0f0f0;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

    .secondary-button:hover {
        background-color: var(--primary-color);
        color: white;
    }

/* Update existing styles for better flow */
.location-help-text {
    background-color: rgba(139, 69, 19, 0.05);
    border-left: 3px solid var(--primary-color);
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    text-align: center;
}

/* Ensure proper spacing for producer selection */
.location-result {
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (min-width: 480px) {
    .option-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}
/* Instagram-like Checkin Flow Styles */

/* Step Containers */
.checkin-step {
    width: 100%;
    transition: transform 0.3s, opacity 0.3s;
    .form-group

{
    margin-bottom: 15px;
}

.checkin-step.hidden {
    display: none !important;
}

.checkin-step.active {
    display: block;
}

/* Step Header with Back Button */
.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.back-button {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .back-button:hover {
        background-color: rgba(139, 69, 19, 0.1);
    }

/* Photo Step Styling */
.photo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.photo-upload {
    width: 100%;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    background-color: rgba(139, 69, 19, 0.05);
    cursor: pointer;
    transition: all 0.3s;
}

    .photo-upload:hover {
        background-color: rgba(139, 69, 19, 0.1);
    }

.photo-upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%238b4513" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"></path><circle cx="12" cy="13" r="4"></circle></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.photo-upload span {
    font-size: 18px;
    color: var(--primary-color);
    font-weight: 500;
}

.photo-preview {
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: none;
}

    .photo-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .photo-preview .retake-button {
        position: absolute;
        bottom: 16px;
        right: 16px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

/* Message Step Styling */
.message-content {
    display: flex;
    flex-direction: column;
}

.textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    transition: border-color 0.3s;
}

    .textarea:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.char-count {
    display: flex;
    justify-content: flex-end;
    font-size: 14px;
    color: #777;
    margin-top: 4px;
}

/* Preview Step Styling */
.preview-post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
}

.preview-post-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.preview-user {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    margin-right: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23999" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px;
}

.preview-info {
    display: flex;
    flex-direction: column;
}

.preview-username {
    font-weight: 600;
    font-size: 15px;
}

.preview-time {
    font-size: 13px;
    color: #777;
}

.preview-venue {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 17px;
    margin-bottom: 2px;
}

.preview-location {
    font-size: 14px;
    color: #666;
}

.preview-image {
    width: 100%;
    height: 250px;
    background-color: #f5f5f5;
    overflow: hidden;
}

    .preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.preview-actions {
    display: flex;
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.preview-icon {
    margin-right: 20px;
    color: #666;
    width: 24px;
    height: 24px;
}

.preview-checked-in {
    padding: 8px 16px;
    background-color: #f5f5f5;
}

.checked-in-badge {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
}

.preview-message {
    padding: 16px;
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

/* Button Styling */
.form-actions {
    margin-top: 24px;
}

.primary-button {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .primary-button:hover {
        background-color: var(--secondary-color);
    }

    .primary-button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
    }

/* Animation for step transitions */
@keyframes slideIn {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.3s forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-30px);
        opacity: 0;
    }
}

.slide-out {
    animation: slideOut 0.3s forwards;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .photo-upload, .photo-preview {
        height: 200px;
    }

    .preview-image {
        height: 200px;
    }

    /* Ensure form elements have enough space */
    .form-group {
        margin-bottom: 15px;
    }

    /* Reduce padding to save space */
    .checkin-section {
        padding: 12px;
    }

    /* Ensure the textarea doesn't push content too far */
    .textarea {
        min-height: 100px;
    }
}
/* Venue Suggestion Form Styles */
.venue-suggestion-form {
    padding: 0;
    max-width: 100%;
    box-sizing: border-box;
}

    .venue-suggestion-form h3 {
        margin-bottom: 16px;
        color: var(--primary-color);
    }

    .venue-suggestion-form h4 {
        margin-top: 12px;
        margin-bottom: 8px;
        color: var(--secondary-color);
        font-size: 16px;
        border-bottom: 1px solid #eee;
        padding-bottom: 4px;
    }

.form-scrollable {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 12px;
}

.form-group {
    margin-bottom: 14px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        font-size: 14px;
    }

        .form-group label.required::after {
            content: "*";
            color: #cc0000;
            margin-left: 4px;
        }

.product-input,
.textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: white;
}

    .product-input:focus,
    .textarea:focus {
        outline: none;
        border-color: var(--primary-color);
    }

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group.half {
    flex: 1;
    min-width: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.primary-button,
.secondary-button {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

    .primary-button:hover {
        background-color: var(--secondary-color);
    }

.secondary-button {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

    .secondary-button:hover {
        background-color: #f5f5f5;
    }

@media (max-width: 480px) {
    .form-scrollable {
        max-height: 65vh;
    }

    .form-row {
        flex-direction: column;
        gap: 5px;
    }

    .form-group.half {
        width: 100%;
    }

    .primary-button,
    .secondary-button {
        padding: 10px 16px;
        font-size: 15px;
    }
}
/* Additional styles for venue type selection and mixed venue display */

/* Venue Type Selection */
.venue-type-selection {
    padding: 20px;
    text-align: center;
}

    .venue-type-selection h3 {
        color: var(--primary-color);
        margin-bottom: 20px;
    }

.venue-type-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .venue-type-options h4 {
        color: var(--secondary-color);
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

.type-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.type-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background-color: white;
    border: 2px solid var(--accent-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    min-height: 80px;
}

    .type-button:hover {
        background-color: var(--accent-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .type-button:active {
        transform: translateY(0);
    }

    /* Emoji icons for venue types */
    .type-button::before {
        font-size: 2rem;
        margin-bottom: 5px;
    }

/* Venue type label in search results */
.venue-type-label {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Different colors for different venue types */
.location-result[data-venue-type="producer"] .venue-type-label {
    background-color: var(--primary-color);
}

.location-result[data-venue-type="premium"] .venue-type-label {
    background-color: #9b59b6; /* Purple for premium venues */
}

/* Updated tag styling for new/unverified venues */
.product-tag {
    display: inline-block;
    background-color: #27ae60; /* Green for new venues */
    color: white;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: 500;
}

    .product-tag.unverified {
        background-color: #e74c3c; /* Red for unverified */
    }

    .product-tag.suggested {
        background-color: #f39c12; /* Orange for suggested */
    }

/* Form adjustments for different venue types */
.venue-suggestion-form.premium-type .producer-only {
    display: none;
}

.venue-suggestion-form.producer-type .premium-only {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .type-buttons {
        grid-template-columns: 1fr;
    }

    .type-button {
        flex-direction: row;
        justify-content: flex-start;
        padding: 12px 15px;
        min-height: 60px;
    }

        .type-button::before {
            font-size: 1.5rem;
            margin-bottom: 0;
            margin-right: 10px;
        }
}

/* Location validation message */
.location-validation-message {
    background-color: #fff4e6;
    border: 1px solid #ffb74d;
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #f57c00;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .location-validation-message::before {
        content: "📍";
        font-size: 1.2rem;
    }

/* Loading state for reverse geocoding */
.address-loading {
    position: relative;
}

    .address-loading::after {
        content: "";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        border: 2px solid #f3f3f3;
        border-top: 2px solid var(--primary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Enhanced venue selection styling */
.location-result {
    position: relative;
    padding: 15px;
    transition: all 0.2s ease;
}

    .location-result.unverified {
        border-left: 3px solid #e74c3c;
    }

        .location-result.unverified::after {
            content: "New";
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: #e74c3c;
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: bold;
        }