/* Custom CSS for MatchaNear.Me */

:root {
    --primary-color: #2c2c2c;
    --secondary-color: #666;
    --border-color: #e0e0e0;
    --background-color: #fafafa;
    --white: #ffffff;
    --light-gray: #f5f5f5;
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--primary-color);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

/* Home page green background */
.home-page {
    /* Use matcha light background from enhanced styles if available */
    background-color: #f1f8e9;
}

/* Make ALL home sections transparent so the green body shows through */
.home-page .minimal-header,
.home-page .minimal-hero,
.home-page .quick-stats,
.home-page .directory-section,
.home-page .collections-section,
.home-page .main-content,
.home-page .main-footer {
    background-color: transparent !important;
}

/* Keep white backgrounds for cards and interactive elements */
.home-page .filter-bar,
.home-page .country-card,
.home-page .listing-card {
    background-color: var(--white);
}

.home-page .container {
    max-width: 1400px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Header */
.minimal-header {
    border-bottom: none;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 300;
}

.brand:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.brand-icon {
    font-size: 20px;
    margin-right: 8px;
}

.brand-text {
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Hero Section */
.minimal-hero {
    padding: 100px 0 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.home-page .hero-image {
    flex-shrink: 0;
    width: 240px;
    height: 240px;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page .hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
}

.hero-title {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--secondary-color);
    line-height: 1.7;
    margin: 0 0 24px 0;
    font-weight: 300;
}

.hero-welcome {
    font-size: 13px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
    opacity: 0.8;
}

/* Quick Stats */
.quick-stats {
    background-color: transparent;
    padding: 60px 0;
    border: none;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.quick-stats .stat-item {
    display: flex !important;
    flex-direction: column !important;
    text-align: center;
    flex: 0 0 auto;
}

.quick-stats .stat-number {
    font-size: 42px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 8px;
    letter-spacing: 1px;
    line-height: 1;
    order: 1;
}

.quick-stats .stat-label {
    font-size: 11px;
    color: var(--secondary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block !important;
    font-weight: 300;
    order: 2;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.section-header {
    text-align: left;
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* Search and Location Buttons */
.search-location-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    transition: all 0.2s ease;
    cursor: pointer;
}

.action-button:hover {
    border-color: var(--primary-color);
    background-color: var(--background-color);
    transform: translateY(-1px);
}

.button-icon {
    font-size: 16px;
}

.minimal-listings {
    max-width: 100%;
}

/* Listing Cards */
.listing-card {
    border: 1px solid var(--border-color);
    margin-bottom: 0;
    background-color: var(--white);
    transition: all 0.2s ease;
}

.listing-card:hover {
    border-color: var(--secondary-color);
}

.listing-content {
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 20px;
}

.listing-image {
    flex-shrink: 0;
}

.listing-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.listing-info {
    flex-grow: 1;
}

.venue-name-jp {
    font-size: 24px;
    font-weight: 300;
    margin: 0 0 4px 0;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.venue-name-en {
    font-size: 14px;
    font-weight: 300;
    margin: 0 0 8px 0;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.venue-location {
    font-size: 13px;
    color: var(--secondary-color);
    margin: 0 0 8px 0;
    font-weight: 400;
}

.venue-description {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.listing-action {
    flex-shrink: 0;
}

.view-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 400;
    color: var(--secondary-color);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.stats-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.stats-title {
    font-size: 28px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: #2c2c2c;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.3;
}

/* Cities Section */
.cities-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.cities-section .section-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.city-card {
    background-color: var(--white);
    border: 1px solid #000000;
    overflow: hidden;
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.city-card:hover {
    border-color: var(--secondary-color);
}

.city-image {
    height: 180px;
    overflow: hidden;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.city-card:hover .city-image img {
    transform: scale(1.05);
}

.city-info {
    padding: 20px;
}

.city-name {
    font-size: 18px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.city-count {
    font-size: 14px;
    color: var(--secondary-color);
    margin: 0;
}

/* Lifestyle Section */
.lifestyle-section {
    padding: 80px 0;
    background-color: var(--white);
}

.lifestyle-block {
    background-color: var(--background-color);
    padding: 32px;
    border: 1px solid var(--border-color);
    height: 100%;
}

.lifestyle-title {
    font-size: 20px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lifestyle-text {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.lifestyle-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.lifestyle-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.blog-teaser {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.blog-image {
    height: 160px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 24px;
    flex-grow: 1;
}

.blog-title {
    font-size: 18px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-excerpt {
    color: var(--secondary-color);
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 14px;
}

.blog-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.blog-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* Pagination */
.pagination-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.pagination-numbers {
    text-align: center;
}

.page-number, .page-dots {
    display: inline-block;
    margin: 0 8px;
    font-size: 14px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.page-number:hover {
    color: var(--primary-color);
}

.page-number.active {
    color: var(--primary-color);
    font-weight: 500;
}

.page-dots {
    cursor: default;
}

.page-dots:hover {
    color: var(--secondary-color);
}

/* Featured Cities */
.featured-cities {
    background-color: var(--background-color);
    padding: 80px 0;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.city-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.city-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.city-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.city-count {
    font-size: 12px;
    color: var(--secondary-color);
}

/* About Section */
.about-minimal {
    background-color: var(--white);
    padding: 80px 0;
}

.about-text {
    font-size: 16px;
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 40px;
}

.matcha-types {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 400px;
    margin: 0 auto;
}

.type-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
}

.type-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.type-desc {
    font-size: 12px;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* Footer */
.main-footer {
    border-top: 1px solid var(--border-color);
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-section {
    height: 100%;
}

.footer-title {
    font-size: 16px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-story {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--background-color);
    color: var(--secondary-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    font-weight: 300;
    color: var(--primary-color);
}

.footer-brand .brand-icon {
    font-size: 16px;
    margin-right: 8px;
}

.footer-brand .brand-text {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.copyright {
    font-size: 12px;
    color: var(--secondary-color);
    margin: 0;
}

/* SEO Footer Section */
.footer-seo-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-seo-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-seo-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-seo-links li {
    margin-bottom: 8px;
}

.footer-seo-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-seo-links a:hover {
    color: var(--primary-color);
}

/* Directory Section */
.directory-section {
    padding: 60px 0;
    background-color: transparent !important;
}

.directory-section .section-header {
    text-align: center;
    margin-bottom: 28px;
}

.directory-section .section-title {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.directory-section .section-subtitle {
    font-size: 14px;
    color: var(--secondary-color);
    line-height: 1.4;
    font-weight: 300;
}

/* Clean country sections - clickable, no cards */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.country-section {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
    padding: 20px;
}

.country-section:hover {
    transform: translateY(-2px);
}

.country-flag {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.country-name {
    font-size: 16px;
    font-weight: 300;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.country-meta {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 300;
}

/* Collections Section */
.collections-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.collections-section .section-header {
    text-align: center;
    margin-bottom: 28px;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.collection-card {
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
    color: var(--primary-color);
}

.collection-card:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
    text-decoration: none;
}

.collection-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.collection-title {
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.collection-desc {
    font-size: 12px;
    color: var(--secondary-color);
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    margin: 20px auto 0;
    width: 100%;
    max-width: 1400px;
    grid-column: 1 / -1;
}

.load-more-btn {
    padding: 18px 42px;
    background-color: var(--white);
    border: 1px solid #000000;
    border-radius: 0;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    background-color: var(--background-color);
    color: var(--primary-color);
    transform: none;
    box-shadow: none;
}

.load-more-btn:active {
    transform: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .minimal-hero {
        padding: 60px 0 40px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .home-page .hero-image {
        width: 180px;
        height: 180px;
        opacity: 0.1;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-welcome {
        font-size: 12px;
    }
    
    .stats-row {
        gap: 50px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .search-container {
        padding: 0 20px;
    }
    
    .featured-section,
    .cities-section,
    .lifestyle-section {
        padding: 60px 0;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-title,
    .section-title {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cities-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-block,
    .lifestyle-block {
        padding: 24px;
    }
    
    .footer-content {
        padding: 40px 0 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .minimal-hero {
        padding: 40px 0 30px;
    }
    
    .hero-content {
        gap: 30px;
    }
    
    .home-page .hero-image {
        width: 140px;
        height: 140px;
    }
    
    .hero-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .hero-welcome {
        font-size: 11px;
    }
    
    .quick-stats {
        padding: 40px 20px;
    }
    
    .stats-row {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-label {
        font-size: 9px;
    }
    
    .search-container {
        gap: 12px;
    }
    
    .location-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .feature-block,
    .lifestyle-block {
        padding: 20px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .blog-teaser {
        flex-direction: column;
    }
    
    .blog-image {
        height: 140px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */

/* Mapbox Map */
.map-section {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    padding: 4px;
}

.map-container {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
}

.venue-map-marker {
    background-color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #6B9F78;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 18px;
}

