/* Tour page specific styles */

/* Section divider override */
.section-divider {
    border-top-color: var(--color-border-light);
}

/* Tour Opening - The Road Story */
.tour-opening {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    padding: var(--space-lg) 0;
}

.tour-epigraph {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-accent);
}

.epigraph-attribution {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-left: var(--space-sm);
}

.epigraph-attribution:hover {
    color: var(--color-text-muted);
    text-decoration: none;
}

.tour-lede {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.tour-lede:last-of-type {
    margin-bottom: 0;
}

.tour-lede-closer {
    color: var(--color-accent);
    font-weight: 600;
    font-style: italic;
}

@media (min-width: 700px) {
    .tour-opening {
        padding: var(--space-xl) 0;
    }
    
    .tour-epigraph {
        font-size: 1.1rem;
        padding-left: var(--space-lg);
    }
    
    .tour-lede {
        font-size: 1.15rem;
    }
}

/* Tour Offer - What We Bring */
.tour-offer {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius);
}

.tour-offer-heading {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.tour-offer-intro {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.tour-offer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 600px) {
    .tour-offer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tour-offer-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.offer-type {
    font-size: 0.95rem;
    color: var(--color-accent);
    font-weight: 600;
}

.offer-work {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.tour-offer-footer {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0;
}

/* Booking section */
.booking-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.booking-header h2 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

@media (min-width: 600px) {
    .booking-header h2 {
        font-size: 1.4rem;
    }
}

.booking-header p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (min-width: 600px) {
    .booking-header p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.booking-header em {
    color: var(--color-accent);
}

.booking-container {
    background: var(--color-surface);
    padding: var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
}

@media (min-width: 600px) {
    .booking-container {
        padding: var(--space-xl);
    }
}

.booking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

/* Small muted note under booking button */
.booking-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    text-align: center;
    font-style: italic;
}

@media (min-width: 800px) {
    .booking-layout {
        grid-template-columns: 1fr 340px;
        gap: var(--space-2xl);
    }
}

.booking-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.booking-section h3 {
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.section-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.section-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: var(--space-xs);
}

/* Checkbox and radio groups */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.checkbox-item:hover,
.radio-item:hover {
    background: rgba(0,0,0,0.3);
}

.checkbox-item:has(input:checked),
.radio-item:has(input:checked) {
    border-color: var(--color-accent);
    background: rgba(196, 165, 53, 0.1);
}

.checkbox-item input,
.radio-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.checkbox-label,
.radio-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text);
}

.checkbox-price,
.radio-price {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* Select dropdowns */
.booking-select {
    width: 100%;
    padding: 10px 14px;
    padding-right: 40px;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    color: #e8e0d5;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c4a535' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-select:hover {
    border-color: var(--color-accent);
    background-color: rgba(0,0,0,0.4);
}

.booking-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 165, 53, 0.15);
}

/* 
 * Native <select> dropdown styling is extremely limited.
 * The open dropdown panel is rendered by the OS/browser, not CSS.
 * These rules help where supported but won't fix all browsers.
 */
.booking-select option {
    background-color: #1a1612;
    color: #e8e0d5;
    padding: 10px 14px;
    font-size: 0.9rem;
    /* Remove any potential border-radius on options */
    border-radius: 0;
}

.booking-select option:checked {
    background-color: #2a2520;
    color: #e8e0d5;
}

/* Firefox specific - has better option support */
@-moz-document url-prefix() {
    .booking-select {
        text-indent: 0.01px;
        text-overflow: '';
    }
    .booking-select option {
        background-color: #1a1612;
        color: #e8e0d5;
        padding: 8px 12px;
        border-radius: 0;
    }
    .booking-select option:checked {
        background: linear-gradient(0deg, #2a2520 0%, #2a2520 100%);
    }
}

/* Duration slider */
.slider-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.slider-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
}

.slider-days {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.slider-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent);
}

.duration-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
}

.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.15s ease;
}

.duration-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.duration-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--color-accent);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Simple accommodation checkbox */
.accommodation-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.accommodation-checkbox:hover {
    background: rgba(0,0,0,0.3);
}

.accommodation-checkbox:has(input:checked) {
    border-color: var(--color-accent);
    background: rgba(196, 165, 53, 0.1);
}

.accommodation-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.accommodation-checkbox .checkbox-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text);
}

.accommodation-checkbox.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.accommodation-checkbox.disabled input {
    cursor: not-allowed;
}

.accommodation-checkbox .checkbox-price {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 500;
}

.accommodation-checkbox .checkbox-price.discount {
    color: #6ab56a;
}

/* Booking summary (right side) */
.booking-right {
    position: relative;
}

@media (min-width: 800px) {
    .booking-summary {
        position: sticky;
        top: var(--space-lg);
    }
}

.booking-summary {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
}

.booking-summary h3 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    text-align: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.summary-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
    min-height: 60px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.summary-label {
    color: var(--color-text-muted);
}

.summary-value {
    color: var(--color-text);
}

.summary-item.discount .summary-label,
.summary-item.discount .summary-value {
    color: #6ab56a;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 2px solid var(--color-accent);
    margin-bottom: var(--space-md);
}

.total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.summary-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
    margin-bottom: var(--space-lg);
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.input-field {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius);
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: inherit;
}

.input-field::placeholder {
    color: var(--color-text-muted);
}

.input-field:focus {
    outline: none;
    border-color: var(--color-accent);
}

.textarea-field {
    min-height: 80px;
    resize: vertical;
}

input[type="date"].input-field {
    cursor: pointer;
}

input[type="date"].input-field::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

.btn-book {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
    font-weight: 600;
}

.booking-terms {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.5;
    margin-top: var(--space-sm);
}

/* Events section (Where We've Been) */
.events-section {
    text-align: center;
    margin: var(--space-xl) 0;
}

.events-section h2 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

@media (min-width: 600px) {
    .events-section h2 {
        font-size: 1.3rem;
    }
}

.events-intro {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
}

.event-card {
    text-align: center;
}

.event-card a {
    text-decoration: none;
    display: block;
    padding: var(--space-sm);
    border-radius: var(--radius);
    transition: background 0.2s ease;
}

.event-card a:hover {
    background: rgba(255,255,255,0.03);
}

.event-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto var(--space-sm);
    display: block;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.event-card:hover .event-logo {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.event-name {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
    margin-bottom: 2px;
}

.event-card:hover .event-name {
    color: var(--color-text);
}

.event-location {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-light);
    transition: color 0.3s ease;
}

.event-card:hover .event-location {
    color: var(--color-text-muted);
}

/* Contact section */
.contact-section {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border-light);
    margin-top: var(--space-xl);
}

.contact-section h2 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

@media (min-width: 600px) {
    .contact-section h2 {
        font-size: 1.3rem;
    }
}

.contact-section p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.contact-email {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--color-accent);
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.contact-email:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-bg);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
