/* Base styles */
:root {
    font-size: 16px;
    --container-width: min(90%, 62.5rem);
    --spacing-unit: 1rem;
    --city-blue: #1A4D8F;
    --essay-gutter: clamp(1rem, 4vw, 2.5rem);
    --essay-prose: min(45rem, 70ch);
}

body { 
    font-family: Cabin, "Segoe UI", system-ui, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #2c3e50;
    line-height: 1.8;
    font-size: 1rem;
}

body.tour-list-page {
    background: #fff;
}

body:has(.container .stop-hero) {
    background: #eef2f7;
}

body:has(.container .stop-hero) .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(calc(100% - 1.25rem), 70rem);
    max-width: 70rem;
    margin: 1rem auto 2.25rem;
    padding: 1.1rem 1.1rem 2.4rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0.3rem 1.15rem rgba(26, 40, 64, 0.08);
    box-sizing: border-box;
    gap: 0.7rem 1.6rem;
    align-items: start;
}

body:has(.container .stop-hero) h1 {
    grid-column: 1 / -1;
    text-align: left;
    margin: 0.1rem 0 0.2rem;
    padding: 0 3.2rem 0.7rem 0;
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    line-height: 1.2;
}

body:has(.container .stop-hero) .stop-hero {
    margin: 0;
    width: 100%;
    background: #d9e3ee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(26, 40, 64, 0.1);
}

body:has(.container .stop-hero) .photo-credit {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #5a6a7c;
}

body:has(.container .stop-hero) .tour-stop-bar {
    margin: 0;
}

body:has(.container .stop-hero) .here-now {
    margin: 0;
}

body:has(.container .stop-hero) .here-now[hidden] {
    display: none !important;
}

body:has(.container .stop-hero) .navigation-buttons {
    grid-column: 1 / -1;
    margin: 0.2rem 0 0.1rem;
    gap: 0.7rem;
    flex-wrap: wrap;
}

body:has(.container .stop-hero) .content a {
    color: var(--city-blue);
}

body:has(.container .stop-hero) .stop-gallery {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0.15rem 0 0.2rem;
}

body:has(.container .stop-hero) .stop-gallery-title {
    font-family: Besley, Georgia, serif;
    font-size: 1.12rem;
    color: #1a365d;
    margin: 0.15rem 0 0.7rem;
    font-weight: 700;
}

body:has(.container .stop-hero) .stop-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
    gap: 0.7rem;
}

body:has(.container .stop-hero) .stop-gallery-item {
    margin: 0;
    background: #e8eef5;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(26, 40, 64, 0.08);
}

body:has(.container .stop-hero) .stop-gallery-item .tour-img,
body:has(.container .stop-hero) .stop-gallery-item .tour-img img {
    display: block;
    width: 100%;
    height: 8.4rem;
    object-fit: cover;
    object-position: center 55%;
}

body:has(.container .stop-hero) .stop-gallery-item figcaption {
    padding: 0.4rem 0.55rem 0.55rem;
    font-size: 0.78rem;
    color: #5a6a7c;
    line-height: 1.35;
}

body:has(.container .stop-hero) .stop-gallery-item figcaption a {
    color: var(--city-blue);
}

body:has(.container .stop-hero) .content {
    grid-column: 1 / -1;
    width: min(100%, 42.5rem);
    max-width: 42.5rem;
    margin: 0.4rem auto 0;
    text-align: left;
    font-size: 1.0625rem;
    line-height: 1.72;
}

body:has(.container .stop-hero) .content p {
    margin: 0 0 1.1rem;
}

body:has(.container .stop-hero) .content > h3:first-child {
    font-family: Cabin, "Segoe UI", system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: #4a5d73;
    margin: 0 0 1.15rem;
    line-height: 1.45;
}

body:has(.container .stop-hero) .current-use {
    margin: 1.4rem 0 1.5rem;
    padding: 1rem 1.1rem;
}

body:has(.container .stop-hero) .comments-section {
    margin: 2.1rem 0 0;
}

@media (min-width: 760px) {
    body:has(.container .stop-hero) .container {
        grid-template-columns: minmax(13.5rem, 18.75rem) minmax(0, 1fr);
        padding: 1.45rem 1.8rem 2.75rem;
        width: min(calc(100% - 2.5rem), 70rem);
        margin-top: 1.35rem;
    }

    body:has(.container .stop-hero) h1 {
        padding-right: 0;
    }

    body:has(.container .stop-hero) .stop-hero {
        grid-column: 1;
        grid-row: 2 / span 2;
        align-self: start;
    }

    body:has(.container .stop-hero) .photo-credit {
        grid-column: 1;
    }

    body:has(.container .stop-hero) .tour-stop-bar {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
    }

    body:has(.container .stop-hero) .tour-mini-map {
        grid-column: 2;
        grid-row: 3;
        margin: 0;
        min-height: 11.5rem;
    }

    body:has(.container .stop-hero) .here-now {
        grid-column: 2;
    }

    body:has(.container .stop-hero) .navigation-buttons,
    body:has(.container .stop-hero) .content,
    body:has(.container .stop-hero) .stop-gallery {
        grid-column: 1 / -1;
    }
}

@media (max-width: 759px) {
    body:has(.container .stop-hero) .container {
        width: min(calc(100% - 0.7rem), 70rem);
        margin: 0.55rem auto 1.35rem;
        padding: 0.95rem 0.9rem 1.85rem;
        border-radius: 10px;
    }
}

.container { 
    width: var(--container-width);
    margin: 2.5rem auto;
    background: #fff;
    padding: clamp(1.5rem, 5vw, 3rem);
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0,0,0,0.05);
}

.tour-list-body {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0 clamp(1rem, 4vw, 2.5rem) 2rem;
    background: #fff;
}

h1 { 
    color: #1a365d;
    font-family: Besley, Georgia, serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 0.125rem solid #e2e8f0;
    padding-bottom: 1.5rem;
}

h2 {
    color: #1a365d;
    font-family: Besley, Georgia, serif;
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.content {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.9;
    color: #2d3748;
    text-align: justify;
    max-width: 50rem;
    margin: 0 auto;
}

.content p {
    margin-bottom: 2rem;
}

/* Menu Grid Styles */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.2rem;
    margin: 0;
    padding: 0;
}

.menu-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(26,77,143,0.10);
    border: 1.5px solid #e3eaf3;
    overflow: hidden;
    text-decoration: none;
    color: #1A4D8F;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    margin: 0;
    height: 100%;
}

.menu-card:hover, .menu-card:focus {
    box-shadow: 0 12px 36px rgba(26,77,143,0.18);
    border-color: #FFD700;
    transform: translateY(-8px) scale(1.04) rotate(-1deg);
    background: #f0f6fc;
}

.menu-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    background-color: #cfdbeb;
    border-bottom: 2px solid #e3eaf3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.menu-card-img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

@supports not (aspect-ratio: 1 / 1) {
    .menu-card-image {
        height: 0;
        padding-bottom: 100%;
    }
}

.menu-card-title {
    font-family: Besley, Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: center;
    color: #1A4D8F;
    padding: 0.7rem 0.5rem 0.7rem 0.5rem;
    background: #fff;
    letter-spacing: 0.01em;
    flex: 1 0 auto;
    line-height: 1.2;
}

.menu-card-desc {
    font-size: 1rem;
    color: #4a5568;
    text-align: center;
    padding: 0 1rem 1.2rem 1rem;
    background: #fff;
}

@media (max-width: 700px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1.2rem;
    }
    .comments-section.card-style, .comments-section, .comment-form {
        padding: 0.7rem 0.2rem !important;
        margin: 1rem 0 !important;
        border-radius: 10px;
        box-sizing: border-box;
        width: 100%;
        max-width: 100vw;
    }
    .comment-form input[type="text"],
    .comment-form textarea,
    .comment-form button {
        width: 100% !important;
        box-sizing: border-box;
        font-size: 1rem;
        padding: 0.7rem 0.5rem;
        margin: 0;
        min-width: 0;
        max-width: 100vw;
    }
    .comment-form textarea {
        min-height: 120px;
    }
    .comment-form button {
        font-size: 1rem;
        padding: 0.7rem 0.5rem;
        border-radius: 8px;
    }
    .comments-section h2 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* Comments Section Styles */
.comments-section {
    margin: 4rem 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.comments-section h2 {
    color: #2c3e50;
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.comments-section h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}

.comment-form {
    background: #fafdff;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(52, 152, 219, 0.08), 0 1.5px 4px rgba(44, 62, 80, 0.04);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1.5px solid #e3eaf3;
    position: relative;
}

.comment-form .form-group {
    margin-bottom: 2.2rem;
}

.comment-form label {
    display: block;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.7rem;
    letter-spacing: 0.01em;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 1.5rem 1.3rem;
    margin-bottom: 0;
    border: 1.5px solid #dbeafe;
    border-radius: 14px;
    font-size: 1.13rem;
    background: #cddeeb;
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 1.5px 4px rgba(44, 62, 80, 0.04);
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    outline: none;
    border: 1.5px solid #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.13);
}

.comment-form textarea {
    min-height: 220px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.7;
}

.comment-form button {
    background: linear-gradient(90deg, #3498db 60%, #6dd5fa 100%);
    color: #fff;
    padding: 1.3rem 3.2rem;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.13);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    display: block;
    width: 100%;
}

.comment-form button:hover,
.comment-form button:focus {
    background: linear-gradient(90deg, #2980b9 60%, #3498db 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 24px rgba(52, 152, 219, 0.18);
}

/* Divider between form and comments */
.comments-section .existing-comments {
    border-top: 2.5px solid #e3eaf3;
    padding-top: 2.5rem;
    margin-top: 3.5rem;
}

/* Responsive adjustments for enhanced form */
@media (max-width: 600px) {
    .comment-form {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        max-width: 98vw;
    }
    .comment-form button {
        font-size: 1rem;
        padding: 1rem 0.5rem;
    }
    .comment-form input[type="text"],
    .comment-form textarea {
        font-size: 1rem;
        padding: 1rem 0.7rem;
    }
}

.existing-comments {
    margin-top: 3rem;
    width: 100%;
}

.comment {
    background: #fff;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #edf2f7;
}

.comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
}

.comment-header strong {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.comment-header span {
    color: #718096;
    font-size: 0.9rem;
}

.comment-text {
    margin: 0;
    line-height: 1.7;
    font-size: 1.05rem;
    color: #4a5568;
    word-wrap: break-word;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .comments-section {
        margin: 3rem 0;
    }
    
    .comments-section h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .comment-form input[type="text"],
    .comment-form textarea {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .comment {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-form button {
        width: 100%;
        padding: 1rem;
        border-radius: 8px;
    }
}

/* Current Use Section Styles */
.current-use {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #e2e8f0;
}

.current-use h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.business-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.business-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.business-type {
    color: #64748b;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.card-style {
    background: #fff;
    border: 2px solid var(--city-blue);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(26,77,143,0.07);
    padding: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.comments-section.card-style {
    padding: 2rem 1rem;
    margin: 2rem 0;
}

.subtitle {
    text-align: center;
    color: #1A4D8F;
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    margin-top: -1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.card-style > .menu-grid {
    margin-top: 0;
    padding: 0;
}

/* Remove old .menu-item styles if not used */
.menu-item { display: none !important; }

/* History Button Styles */
.history-button-container {
    text-align: center;
    margin-top: 1rem;
}

.history-button {
    background: linear-gradient(90deg, #1A4D8F 60%, #2c5282 100%);
    color: white;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(26,77,143,0.15);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.history-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26,77,143,0.2);
    background: linear-gradient(90deg, #2c5282 60%, #1A4D8F 100%);
}

.history-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(26,77,143,0.15);
}

/* Navigation Button Styles */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.nav-button {
    padding: 10px 20px;
    background-color: #1A4D8F;
    color: white;
    border: 1px solid #1A4D8F;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
}

.nav-button:disabled {
    background-color: #cccccc;
    border-color: #cccccc;
    cursor: not-allowed;
}

.nav-button:hover:not(:disabled) {
    background-color: #163e73;
}

/* Begin Tour Button Styles */
#begin-tour-btn {
    margin: 30px auto;
    display: block;
    font-size: 2rem;
    padding: 1.2em 2.5em;
    font-weight: bold;
    letter-spacing: 0.1em;
} 
.stop-hero {
    margin: 0 0 1.5rem;
    width: 100%;
}
.stop-hero img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

body:has(.container .stop-hero) .stop-hero {
    margin: 0 0 1.5rem;
}

body:has(.container .stop-hero) .stop-hero img {
    width: 100%;
    height: auto;
}

body:has(.container .stop-hero) .navigation-buttons {
    width: 100%;
    margin: 1.25rem 0 1.75rem;
    gap: 0.75rem;
}

body:has(.container .stop-hero) .comments-section {
    max-width: 100%;
}

body:has(.container .stop-hero) .comment-form {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 700px) {
    body:has(.container .stop-hero) .container {
        padding-bottom: 2rem;
    }

    body:has(.container .stop-hero) h1 {
        margin-top: 1rem;
        font-size: clamp(1.5rem, 6vw, 1.85rem);
    }

    body:has(.container .stop-hero) .stop-hero img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

    body:has(.container .stop-hero) .navigation-buttons {
        flex-direction: column;
    }

    body:has(.container .stop-hero) .nav-button {
        width: 100%;
        justify-content: center;
    }
}
.menu-card-img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
