/* Branford Page Styles */
/* Inspired by shopdineexplorebranford.com */

.branford-page {
    font-family: 'Montserrat', sans-serif;
    background-color: #FDF6EC;
}

.branford-page h1,
.branford-page h2,
.branford-page h3 {
    font-family: 'Playfair Display', serif;
}

/* Header */
.branford-header {
    background-color: #FDF6EC;
    padding: 1rem 2rem;
    position: relative;
}

.branford-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e3a6e 0%, #2a4a8a 25%, #f0b323 50%, #2a4a8a 75%, #1e3a6e 100%);
}

.branford-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.branford-header .logo img {
    height: 150px;
}

.branford-header .main-nav {
    display: flex;
    gap: 2rem;
}

.branford-header .main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.branford-header .main-nav a:hover,
.branford-header .main-nav a.active {
    color: #2EA3F2;
    border-bottom-color: #2EA3F2;
}

/* Hero Section */
.branford-hero {
    background-color: #FDF6EC;
    padding: 4rem 2rem;
    text-align: center;
}

.branford-hero h1 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.branford-hero p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-container input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    outline: none;
}

.search-container input:focus {
    box-shadow: 0 4px 20px rgba(46, 163, 242, 0.2);
}

/* Search Results */
.search-results {
    max-width: 600px;
    margin: 1.5rem auto 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-results.active {
    display: block;
}

.search-results .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

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

.search-results .result-item:hover {
    background: #f8f9fa;
}

.search-results .result-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.25rem;
}

.search-results .result-info .result-category {
    font-size: 0.8rem;
    color: #2EA3F2;
}

.search-results .result-phone {
    color: #666;
    font-size: 0.9rem;
}

.search-results .no-results-msg {
    padding: 1.5rem;
    text-align: center;
    color: #666;
}

/* Town Navigation */
.town-nav-section {
    background-color: #F5EDE0;
    padding: 1.5rem 2rem;
    text-align: center;
}

.town-nav-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

.town-nav-badge {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.town-nav-badge:hover {
    border-color: #2EA3F2;
    color: #2EA3F2;
}

.town-nav-badge.active {
    background-color: #2EA3F2;
    border-color: #2EA3F2;
    color: #fff;
}

/* Featured Section */
.featured-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Featured Card */
.featured-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.featured-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background-color: #4CAF50;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.featured-card .card-image {
    height: 140px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

.featured-card .card-image.dark-bg {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.featured-card .card-image img {
    max-height: 100px;
    max-width: 85%;
    object-fit: contain;
}

.featured-card .card-image .placeholder-logo {
    font-size: 2.5rem;
    color: #ccc;
}

.featured-card .card-content {
    padding: 1.25rem;
}

.featured-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.featured-card .category-tag {
    display: inline-block;
    background-color: #E8F4FD;
    color: #2EA3F2;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.featured-card .info-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.featured-card .info-row svg {
    width: 18px;
    height: 18px;
    fill: #999;
}

.featured-card .visit-link {
    color: #2EA3F2;
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 0.75rem;
    display: inline-block;
}

/* Category Tabs */
.category-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: #fff;
    color: #666;
    font-size: 1.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab:hover {
    border-color: #2EA3F2;
    color: #2EA3F2;
}

.category-tab.active {
    background-color: #2EA3F2;
    border-color: #2EA3F2;
    color: #fff;
}

.results-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Restaurant List */
.restaurant-list-section {
    padding: 0 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.restaurant-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.restaurant-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.restaurant-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.restaurant-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.restaurant-item .category {
    display: inline-block;
    background-color: #E8F4FD;
    color: #2EA3F2;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}

.restaurant-item .phone {
    color: #2EA3F2;
    font-size: 1.2rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.restaurant-item .phone:hover {
    text-decoration: underline;
}

/* About Dining Section */
.about-dining {
    background-color: #F5EDE0;
    padding: 4rem 2rem;
}

.about-dining h2 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.about-dining .intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    color: #666;
    line-height: 1.8;
}

.dining-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dining-category {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.dining-category h3 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1rem;
}

.dining-category p {
    color: #666;
    line-height: 1.7;
}

/* Footer */
.branford-footer {
    background-color: #43516C;
    padding: 3rem 2rem;
    text-align: center;
}

.branford-footer .footer-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.branford-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Homepage Styles */
.homepage {
    font-family: 'Montserrat', sans-serif;
    background-color: #FDF6EC;
}

.homepage h1,
.homepage h2,
.homepage h3 {
    font-family: 'Playfair Display', serif;
}

/* Card Tags Row (for homepage with town badges) */
.featured-card .card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.featured-card .town-tag {
    display: inline-block;
    background-color: #1e3a6e;
    color: #fff;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.featured-card .town-tag:hover {
    background-color: #2a4a8a;
}

/* Homepage towns section override */
.homepage .towns-section {
    background-color: #F5EDE0;
    padding: 3rem 2rem;
}

.homepage .towns-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Map Section for Town Pages */
.branford-page .map-section {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.branford-page .map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.branford-page .map-section h2 {
    color: #1e3a6e;
    margin-bottom: 0;
    font-size: 1.75rem;
}

.branford-page .map-toggle {
    display: none;
    padding: 0.5rem 1rem;
    background: #1e3a6e;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.branford-page .map-toggle:hover {
    background: #2a4a8a;
}

.branford-page #mapContainer {
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .branford-header .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .branford-header .main-nav {
        gap: 1rem;
    }

    .branford-hero h1 {
        font-size: 2rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .category-tab {
        white-space: nowrap;
    }

    .restaurant-list {
        grid-template-columns: 1fr;
    }

    .branford-page .map-toggle {
        display: block;
    }

    .branford-page #mapContainer {
        display: none;
        height: 400px;
    }

    .branford-page #mapContainer.show {
        display: block;
    }
}
