/* MN Coffee Web - Main Stylesheet */

/* Color Variables */
:root {
    --primary-color: #000000; /* Black - now primary */
    --secondary-color: #333333; /* Dark Gray */
    --accent-color: #FF9500; /* iOS Orange */
    --success-color: #34C759; /* iOS Green */
    --warning-color: #FF9F0A; /* iOS Yellow */
    --error-color: #FF3B30; /* iOS Red */
    
    /* Background colors */
    --background-primary: #FFFFFF;
    --background-secondary: #F2F2F7; /* iOS System Gray 6 */
    --background-tertiary: #FAFAFA;
    
    /* Text colors */
    --text-primary: #000000;
    --text-secondary: #3C3C43; /* iOS System Gray */
    --text-tertiary: #8E8E93; /* iOS System Gray 2 */
    --text-quaternary: #C7C7CC; /* iOS System Gray 4 */
    
    /* Border and separator colors */
    --border-light: #E5E5EA; /* iOS System Gray 5 */
    --border-medium: #D1D1D6; /* iOS System Gray 4 */
    --separator: #C6C6C8;
    
    /* Shadow and elevation */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 4px 20px rgba(0, 0, 0, 0.15);
    
    /* Interactive states */
    --hover-overlay: rgba(0, 0, 0, 0.04);
    --active-overlay: rgba(0, 0, 0, 0.08);
    
    /* Legacy support (will be phased out) */
    --coffee-brown: var(--accent-color);
    --coffee-dark: #E8890B;
    --coffee-light: var(--background-secondary);
    --text-dark: var(--text-primary);
    --text-muted: var(--text-tertiary);
    --shadow: var(--shadow-light);
}

/* Global Styles */
body.coffee-app {
    background-color: var(--background-secondary);
    color: var(--text-primary);
    line-height: 1.47;
    font-size: 17px; /* iOS body text size */
}

/* Bootstrap Primary Button Overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: white !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* Header */
.app-header {
    background: var(--background-primary);
    border-bottom: 0.5px solid var(--separator);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.app-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Mobile Header Layout */
.mobile-header-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.desktop-title {
    display: none; /* Hidden by default (mobile first) */
}

.app-title .brand-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.app-title .brand-link:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav {
    display: none; /* Hidden by default (mobile first) */
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

/* App Store Badges */
.app-badges {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Desktop badges - shown only on desktop in navigation */
.desktop-badges {
    margin-left: 16px;
}

/* Mobile badges - shown only on mobile in header */
.mobile-badges {
    display: flex;
}

.app-badge-link {
    display: block;
    transition: opacity 0.2s ease;
}

.app-badge-link:hover {
    opacity: 0.8;
}

.app-badge {
    height: 40px;
    width: auto;
}

/* Responsive adjustments for app badges */
@media (max-width: 1024px) {
    .desktop-badges {
        gap: 8px;
        margin-left: 12px;
    }
    
    .desktop-badges .app-badge {
        height: 36px;
    }
}

/* Mobile-specific styling */
@media (max-width: 768px) {
    .desktop-badges {
        display: none !important;
    }
    
    .mobile-badges {
        display: flex !important;
        gap: 8px;
        justify-content: center;
    }
    
    .mobile-badges .app-badge {
        height: 32px;
    }
}

.desktop-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 0;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: -0.01em;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.desktop-nav .nav-link:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.desktop-nav .nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Mobile Navigation */
.mobile-nav {
    display: block; /* Shown by default (mobile first) */
}

/* Breadcrumbs */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--text-muted);
}

/* Main Content */
.app-main {
    min-height: calc(100vh);
    padding: 0;
}

/* Bottom Tab Navigation */
.bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid var(--separator);
    z-index: 1000;
    padding: 8px 0 34px; /* Extra padding for iPhone home indicator */
}

.tabs-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-tertiary);
    transition: color 0.2s ease;
    min-width: 60px;
}

.tab-item:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.tab-item.active {
    color: var(--secondary-color);
}

.tab-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.tab-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Map Container */
.map-container {
    position: relative;
    height: calc(100vh);
    width: 100%;
}

.map-view {
    width: 100%;
    height: 100%;
}

/* Map Search Bar */
.map-search-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-input-container {
    position: relative;
    flex: 1;
    max-width: calc(100% - 180px); /* Make shorter to avoid overlap with Mapbox controls */
}

.search-input {
    padding-left: 45px;
    padding-right: 45px;
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-medium);
    background: var(--background-primary);
    color: var(--text-primary);
    font-size: 17px;
    height: 44px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

.btn-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 16px;
}

/* Search dropdown styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-large);
    border: 1px solid var(--border-secondary);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 4px;
}

.search-results-list {
    padding: 8px 0;
}

.search-result-item {
    padding: 16px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid var(--border-quaternary);
}

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

.search-result-item:hover {
    background-color: var(--background-secondary);
}

.search-result-item.highlighted {
    background-color: var(--accent-blue);
    color: var(--white);
}

.search-result-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.search-result-item:hover .search-result-name,
.search-result-item.highlighted .search-result-name {
    color: inherit;
}

.search-result-address {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.search-result-item:hover .search-result-address,
.search-result-item.highlighted .search-result-address {
    color: inherit;
    opacity: 0.8;
}

.search-result-rating {
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-result-item:hover .search-result-rating,
.search-result-item.highlighted .search-result-rating {
    color: inherit;
    opacity: 0.7;
}

.search-result-distance {
    font-size: 12px;
    color: var(--accent-blue);
    margin-top: 2px;
}

.search-result-distance em {
    font-style: italic;
    font-weight: 500;
}

.search-result-item:hover .search-result-distance,
.search-result-item.highlighted .search-result-distance {
    color: inherit;
    opacity: 0.9;
}

.search-result-stars {
    color: var(--yellow);
    font-size: 12px;
}

.search-result-item:hover .search-result-stars,
.search-result-item.highlighted .search-result-stars {
    color: var(--yellow);
}

.search-result-rating-text {
    font-size: 12px;
}

.search-result-no-rating {
    font-size: 12px;
    font-style: italic;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

.filter-controls {
    display: flex;
    gap: 8px;
}

.btn-filter {
    background: var(--background-primary);
    border: none;
    border-radius: 22px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-medium);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.btn-filter.active {
    background: var(--secondary-color);
    color: var(--background-primary);
}

/* Map Controls */
.map-controls {
    position: absolute;
    right: 20px;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.btn-map-control {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: var(--background-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-map-control:hover {
    background: var(--hover-overlay);
    color: var(--text-primary);
}

/* Shop Popup - Modern iOS Design */
.shop-popup {
    position: absolute;
    width: 350px;
    background: var(--background-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
    z-index: 1001;
    border: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.popup-content {
    padding: 24px;
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    transition: background-color 0.15s ease;
}

.popup-content:hover {
    background: var(--hover-overlay);
}

.btn-close-popup {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--background-secondary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    font-size: 16px;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.btn-close-popup:hover {
    background: var(--border-light);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* Popup Arrow/Triangle Pointer */
.shop-popup::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    z-index: 1000;
}

/* Arrow pointing left (popup is to the right of marker) */
.shop-popup.arrow-left::before {
    border-right-color: var(--background-primary);
    left: -24px;
    top: 45%;
    transform: translateY(-50%);
}

/* Arrow pointing right (popup is to the left of marker) */
.shop-popup.arrow-right::before {
    border-left-color: var(--background-primary);
    right: -24px;
    top: 45%;
    transform: translateY(-50%);
}

/* Arrow pointing up (popup is below marker) */
.shop-popup.arrow-up::before {
    border-bottom-color: var(--background-primary);
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
}

/* Arrow pointing down (popup is above marker) */
.shop-popup.arrow-down::before {
    border-top-color: var(--background-primary);
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
}

/* Shop Title */
.shop-title {
    margin: 0 0 12px 0;
    padding-right: 40px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.27;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Status and Rating Row */
.status-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

/* Status Info */
.status-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--error-color); /* Default: closed = red */
    margin-top: 6px;
    flex-shrink: 0;
}

.status-dot.open {
    background: var(--success-color); /* Open = green */
}

.status-dot.closing-soon {
    background: var(--warning-color); /* Closing soon = yellow */
}

.status-dot.closed {
    background: var(--error-color); /* Closed = red */
}

.status-text-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.status-time {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Rating Info */
.rating-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.stars-container {
    display: flex;
    gap: 2px;
}

.stars-container .star {
    font-size: 14px;
    color: var(--warning-color);
}

.stars-container .star.empty {
    color: var(--border-medium);
}

.rating-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 2px;
}

.review-count {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--background-secondary);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    border: none;
}

.feature-tag.highlight {
    background: var(--accent-color);
    color: var(--background-primary);
}

.feature-tag.highlight.coffee {
    background: var(--accent-color);
}

.feature-tag.highlight.wifi {
    background: var(--secondary-color);
}

.feature-tag.highlight.outdoor {
    background: var(--success-color);
}

.feature-tag i {
    font-size: 12px;
}

/* Description */
.shop-description-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.47;
    margin: 0;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.popup-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
}

.popup-actions .btn-primary {
    background: var(--primary-color);
    color: white;
}

.popup-actions .btn-primary:hover {
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    transform: scale(1.02);
}

.popup-actions .btn-outline-primary {
    background: var(--background-secondary);
    color: var(--primary-color);
    border: 1px solid var(--border-light);
}

.popup-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    color: var(--background-primary);
    text-decoration: none;
    transform: scale(1.02);
}

/* Shops List Container */
.shops-list-container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Shops Search Bar */
.shops-search-bar {
    background: var(--background-primary);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    margin-bottom: 20px;
    border: 0.5px solid var(--border-light);
}

.filter-sort-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    gap: 15px;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-filter-pill {
    background: var(--background-secondary);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.btn-filter-pill:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.btn-filter-pill.active {
    background: var(--secondary-color);
    color: var(--background-primary);
}

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 5px;
}

.results-count {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.location-prompt {
    text-align: right;
}

/* Shop Cards */
.shops-list {
    display: grid;
    gap: 16px;
}

.shop-card {
    background: var(--background-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    border: 0.5px solid var(--border-light);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.shop-card-content {
    display: flex;
    padding: 20px;
    gap: 15px;
}

.shop-photo-container {
    flex-shrink: 0;
}

.shop-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.shop-photo-placeholder {
    width: 80px;
    height: 80px;
    background: var(--background-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 1.5rem;
}

.shop-info {
    flex: 1;
    min-width: 0;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

.shop-name {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.shop-address {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0 0 8px 0;
    font-weight: 400;
}

.shop-status-distance {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.shop-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

/* Rating Stars */
.shop-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: var(--warning-color);
    font-size: 14px;
}

.rating-text {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Status Indicators */
.shop-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.open {
    background: var(--success-color);
}

.status-indicator.closed {
    background: var(--error-color);
}

.status-indicator.closing-soon {
    background: var(--warning-color);
}

.status-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Shop Detail Page */
.shop-detail-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
}

.shop-header {
    position: relative;
    padding-bottom: 20px;
}

.shop-photo-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.shop-hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-photo-placeholder-large {
    width: 100%;
    height: 250px;
    background: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.shop-info-header {
    padding: 20px;
}

.shop-info-header h1 {
    margin: 0 0 10px 0;
    font-size: 1.8rem;
    color: #333;
}

.shop-rating-large {
    margin-bottom: 15px;
}

.shop-rating-large .stars {
    font-size: 1.2rem;
}

.shop-rating-large .rating-text {
    font-size: 1rem;
    margin-left: 10px;
}

.shop-status-large {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.shop-status-large .status-indicator {
    width: 12px;
    height: 12px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    flex-wrap: wrap;
}

/* Detail Sections */
.shop-details {
    padding: 0 20px 20px;
}

.detail-section {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    color: var(--coffee-brown);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.detail-section h3 i {
    margin-right: 8px;
}

/* Hours Table */
.hours-table {
    width: 100%;
    margin-top: 10px;
}

.hours-table td {
    padding: 8px 0;
    border: none;
}

.hours-table .day {
    font-weight: 500;
    width: 100px;
}

.hours-table tr.today {
    background: #f8f9fa;
    font-weight: 600;
}

.todays-hours {
    background: var(--coffee-light);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.amenity-item i {
    color: var(--coffee-brown);
    font-size: 1.1rem;
}

/* Detail Map */
.detail-map {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results-content h3 {
    margin: 20px 0 10px;
    color: #333;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--coffee-brown);
    margin-bottom: 15px;
}

/* Responsive Design */
/* Desktop and larger screens */
@media (min-width: 769px) {
    .desktop-nav {
        display: block !important; /* Show desktop navigation */
    }
    
    .mobile-nav {
        display: none !important; /* Hide mobile bottom tabs */
    }
    
    .mobile-badges {
        display: none !important; /* Hide mobile app badges */
    }
    
    .desktop-badges {
        display: flex !important; /* Show desktop app badges */
    }
    
    .mobile-header-layout {
        display: none !important; /* Hide mobile layout */
    }
    
    .desktop-title {
        display: block !important; /* Show desktop title */
    }
    
    .app-main {
        min-height: calc(100vh - 80px); /* Adjust for no bottom tabs */
        padding-bottom: 0;
    }
    
    .header-content {
        justify-content: space-between;
        align-items: center;
    }
}

/* Mobile and tablet screens */
@media (max-width: 768px) {
    .app-header {
        padding: 10px 0;
    }
    
    .header-content {
        justify-content: center;
        padding: 0 20px;
    }
    
    .desktop-title {
        display: none !important; /* Hide desktop title */
    }
    
    .mobile-header-layout {
        display: flex !important; /* Show mobile layout */
    }
    
    .desktop-nav {
        display: none !important; /* Hide desktop nav on mobile */
    }
    
    /* Full height map on mobile to go behind bottom tabs */
    .map-container {
        height: 100vh;
    }
    
    /* Adjust shop popup for mobile positioning */
    .shop-popup {
        width: calc(100% - 32px);
        max-width: 350px;
        /* Position will be handled by JavaScript, but ensure it doesn't go off screen */
    }
    
    .shop-title {
        font-size: 20px;
        padding-right: 32px;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    /* Ensure popup doesn't get hidden behind bottom navigation when near bottom */
    .shop-popup.near-bottom {
        bottom: 80px !important; /* Above the bottom tabs */
        top: auto !important;
    }
    
    /* Ensure map controls don't get too close to bottom navigation */
    .map-controls {
        bottom: 100px; /* Add bottom positioning for mobile if needed */
    }
    
    .map-search-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input-container {
        max-width: 100%; /* Full width on mobile */
    }
    
    .filter-sort-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .results-summary {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .shop-card-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .shop-photo {
        width: 100%;
        height: 150px;
    }
    
    .shop-photo-placeholder {
        width: 100%;
        height: 150px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tabs-container {
        padding: 0 10px;
    }
    
    .tab-item {
        min-width: 50px;
        padding: 8px 8px;
    }
    
    .tab-label {
        font-size: 0.7rem;
    }
}

/* Modern Coffee Shop Detail View Styles - Based on React Native Design */
:root {
    --modern-background: #F5F5F5;
    --modern-card-background: #F8F9FA;
    --modern-primary: #1C1C1E;
    --modern-secondary: #8E8E93;
    --modern-success: #1E3237;
    --modern-warning: #FF9500;
    --modern-text: #1C1C1E;
    --modern-secondary-text: #6D6D70;
    --modern-separator: #E5E5E7;
    --modern-shadow: rgba(0, 0, 0, 0.1);
}

.shop-detail-container {
    background: var(--modern-background);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 0 16px 32px 16px;
}

.detail-header {
    background: var(--modern-background);
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0 -16px 0 -16px;
    padding-left: 16px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--modern-text);
    cursor: pointer;
    padding: 8px;
    margin: -8px 0 -8px -8px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

.header-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--modern-text);
    margin: 0;
    flex: 1;
}

.detail-content {
    padding-top: 8px;
}

.shop-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--modern-text);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.category-header {
    font-size: 20px;
    font-weight: 600;
    color: var(--modern-text);
    margin: 24px 0 16px 0;
    letter-spacing: -0.3px;
}

.status-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.status-container {
    display: flex;
    align-items: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    margin-right: 6px;
    background-color: var(--error-color); /* Default: closed = red */
}

.status-dot.open {
    background-color: var(--success-color); /* Open = green */
}

.status-dot.closing-soon {
    background-color: var(--warning-color); /* Closing soon = yellow */
}

.status-dot.closed {
    background-color: var(--error-color); /* Closed = red */
}

.status-text-container {
    display: flex;
    flex-direction: column;
    margin-left: 6px;
}

.status-text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.status-text.open {
    color: var(--success-color); /* Open = green */
}

.status-text.closing-soon {
    color: var(--warning-color); /* Closing soon = yellow */
}

.status-text.closed {
    color: var(--error-color); /* Closed = red */
}

.status-details {
    font-size: 13px;
    color: var(--modern-secondary-text);
    font-weight: 500;
    margin-top: 1px;
}

.rating-container {
    display: flex;
    align-items: center;
}

.stars {
    display: flex;
    margin-right: 8px;
}

.stars i {
    font-size: 14px;
    color: var(--modern-warning);
    margin-right: 2px;
}

.stars .far {
    color: var(--modern-separator);
}

.rating-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--modern-text);
    margin-right: 6px;
    letter-spacing: -0.2px;
}

.review-count {
    font-size: 13px;
    color: var(--modern-secondary-text);
    font-weight: 500;
}

.feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-badge {
    background: var(--modern-card-background);
    border: 1px solid var(--modern-separator);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    color: var(--modern-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.feature-badge i {
    font-size: 12px;
    color: var(--modern-primary);
}

.ai-summary-section {
    margin-bottom: 16px;
}

.ai-overview, .ai-description {
    font-size: 16px;
    color: var(--modern-text);
    line-height: 1.5;
    margin: 0 0 12px 0;
}

.feature-card {
    background: var(--modern-card-background);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px var(--modern-shadow);
}

.feature-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.feature-card-header i {
    font-size: 18px;
    color: var(--modern-primary);
    margin-right: 8px;
}

.feature-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--modern-text);
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    width: 48%;
    margin-bottom: 8px;
    margin-right: 2%;
}

.feature-item i {
    font-size: 14px;
    margin-right: 6px;
    flex-shrink: 0;
}

.feature-item .fa-check {
    color: var(--modern-success);
}

.feature-item .fa-times-circle {
    color: var(--modern-secondary);
}

.feature-item span {
    font-size: 14px;
    color: var(--modern-text);
    font-weight: 400;
    flex: 1;
}

.essential-card {
    background: var(--modern-card-background);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 12px var(--modern-shadow);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--modern-text);
    margin: 0 0 16px 0;
    letter-spacing: -0.3px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row i {
    font-size: 18px;
    color: var(--modern-primary);
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--modern-secondary-text);
    margin-bottom: 4px;
    letter-spacing: -0.1px;
}

.info-value {
    font-size: 16px;
    color: var(--modern-text);
    font-weight: 400;
    line-height: 1.4;
}

.hours-status {
    font-weight: 600;
    margin-bottom: 4px;
}

.hours-status.open {
    color: var(--modern-success);
}

.hours-status.closed {
    color: var(--modern-warning);
}

.hours-details {
    font-size: 14px;
    color: var(--modern-secondary-text);
    line-height: 1.4;
}

.day-hours {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid var(--modern-separator);
}

.day-hours:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: 500;
    color: var(--modern-text);
    font-size: 14px;
    min-width: 80px;
}

.day-time {
    color: var(--modern-secondary-text);
    font-size: 14px;
    text-align: right;
}

.website-link {
    font-size: 16px;
    color: var(--modern-primary);
    font-weight: 500;
    text-decoration: underline;
}

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

.directions-button {
    background: var(--modern-primary);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    text-decoration: none;
    color: var(--modern-card-background);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
    min-height: 48px;
    transition: all 0.2s;
}

.directions-button:hover {
    background: #000;
    color: var(--modern-card-background);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--modern-shadow);
}

.directions-button i {
    font-size: 18px;
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .shop-detail-container {
        padding: 0 12px 24px 12px;
    }
    
    .detail-header {
        margin: 0 -12px 0 -12px;
        padding-left: 12px;
    }
    
    .shop-title {
        font-size: 24px;
    }
    
    .feature-item {
        width: 100%;
        margin-right: 0;
    }
    
    .status-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* About Page Styles - React Native Inspired */
.about-container {
    background: #F5F5F5;
    min-height: 100vh;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.about-section-title {
    font-size: 20px;
    font-weight: bold;
    color: #1C1C1E;
    margin-top: 18px;
    margin-bottom: 8px;
}

.about-text {
    font-size: 16px;
    color: #1C1C1E;
    margin-bottom: 10px;
    line-height: 24px;
    text-align: left;
}

.about-feature-list {
    width: 100%;
    margin-bottom: 10px;
}

.about-feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.about-feature-text {
    color: #1C1C1E;
    font-size: 16px;
    margin-left: 10px;
}

.about-contact-button {
    display: flex;
    align-items: center;
    background-color: #1C1C1E;
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 10px;
    margin-top: 4px;
    width: 100%;
    justify-content: center;
    text-decoration: none;
    color: #F5F5F5;
    transition: all 0.2s ease;
}

.about-contact-button:hover {
    background-color: #000;
    color: #F5F5F5;
    text-decoration: none;
    transform: translateY(-1px);
}

.about-contact-button-text {
    color: #F5F5F5;
    font-size: 16px;
    font-weight: bold;
    margin-left: 10px;
}

.about-social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 2px;
}

.about-social-icon {
    margin: 0 12px;
    padding: 8px;
    border-radius: 20px;
    background-color: #F8F9FA;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1C1C1E;
    transition: all 0.2s ease;
}

.about-social-icon:hover {
    background-color: #E5E5E7;
    color: #1C1C1E;
    text-decoration: none;
    transform: scale(1.05);
}

.about-credits {
    font-size: 15px;
    color: #1E3237;
    text-align: center;
    margin-top: 18px;
    margin-bottom: 2px;
}

.about-copyright {
    font-size: 13px;
    color: #6D6D70;
    text-align: center;
    margin-top: 6px;
    font-style: italic;
    margin-bottom: 10px;
}

/* Mobile responsive adjustments for About page */
@media (max-width: 768px) {
    .about-container {
        padding: 16px;
    }
    
    .about-content {
        padding-bottom: 24px;
    }
}

/* ===== REACT NATIVE STYLE SHOPS LIST ===== */

/* Modern colors matching React Native design */
:root {
    --rn-background: #F5F5F5;
    --rn-card-background: #F8F9FA;
    --rn-primary: #1C1C1E;
    --rn-secondary: #8E8E93;
    --rn-success: #1E3237;
    --rn-warning: #FF9500;
    --rn-text: #1C1C1E;
    --rn-secondary-text: #6D6D70;
    --rn-separator: #E5E5E7;
    --rn-shadow: rgba(0, 0, 0, 0.1);
}

/* Main container */
.shops-container {
    background: var(--rn-background);
    min-height: 100vh;
    padding: 16px;
}

/* Search section */
.shops-search-section {
    margin-bottom: 16px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--rn-card-background);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 2px 8px var(--rn-shadow);
    border: 1px solid var(--rn-separator);
}

.search-icon {
    color: var(--rn-secondary);
    margin-right: 12px;
    font-size: 16px;
}


.search-input::placeholder {
    color: var(--rn-secondary);
}

.clear-search-btn {
    background: none;
    border: none;
    color: var(--rn-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-search-btn:hover {
    background: var(--rn-separator);
    color: var(--rn-text);
}

/* Filter toggle */
.filter-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--rn-card-background);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--rn-shadow);
    border: 1px solid var(--rn-separator);
}

.filter-label {
    color: var(--rn-text);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--rn-separator);
    transition: 0.4s;
    border-radius: 14px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--rn-success);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* List section */
.shops-list-section {
    padding: 0;
}

/* Individual shop items */
.shop-list-item {
    position: relative;
    background: var(--rn-card-background);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px var(--rn-shadow);
    border: 1px solid var(--rn-separator);
    transition: all 0.2s ease;
    cursor: pointer;
}

.shop-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--rn-shadow);
}

.shop-content {
    flex: 1;
}

/* Header row */
.shop-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.shop-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--rn-text);
    letter-spacing: -0.3px;
    flex: 1;
    margin: 0;
    margin-right: 12px;
    line-height: 1.3;
}

.shop-distance {
    font-size: 14px;
    font-weight: 600;
    color: var(--rn-text);
    text-align: right;
    white-space: nowrap;
}

/* Status and rating row */
.shop-status-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Status container */
.shop-status-container {
    display: flex;
    align-items: center;
    flex: 1;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    background-color: var(--error-color); /* Default: closed = red */
}

.status-dot.open {
    background-color: var(--success-color); /* Open = green */
}

.status-dot.closing-soon {
    background-color: var(--warning-color); /* Closing soon = yellow */
}

.status-dot.closed {
    background-color: var(--error-color); /* Closed = red */
}

.status-text-container {
    display: flex;
    flex-direction: column;
    margin-left: 6px;
}

.open-status {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.1px;
    color: var(--error-color); /* Default: closed = red */
}

.open-status.open {
    color: var(--success-color); /* Open = green */
}

.open-status.closing-soon {
    color: var(--warning-color); /* Closing soon = yellow */
}

.open-status.closed {
    color: var(--error-color); /* Closed = red */
}

.status-details {
    font-size: 12px;
    color: var(--rn-secondary-text);
    font-weight: 500;
    margin-top: 1px;
}

/* Rating container */
.shop-rating-container {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.rating-stars {
    display: flex;
    margin-right: 6px;
}

.rating-stars i {
    font-size: 12px;
    margin-right: 1px;
}

.filled-star {
    color: var(--rn-warning);
}

.empty-star {
    color: var(--rn-separator);
}

.rating-value {
    font-size: 13px;
    color: var(--rn-text);
    font-weight: 600;
    margin-right: 4px;
}

.review-count {
    font-size: 12px;
    color: var(--rn-secondary-text);
    font-weight: 400;
}

/* Directions button */
.directions-btn {
    padding: 8px;
    border-radius: 20px;
    background-color: var(--rn-background);
    border: 1px solid var(--rn-separator);
    color: var(--rn-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.directions-btn:hover {
    background-color: var(--rn-separator);
    transform: scale(1.05);
}

.directions-btn i {
    font-size: 14px;
}

/* Features section */
.shop-features {
    margin-top: 0;
    margin-bottom: 8px;
}

.feature-tag {
    display: inline-block;
    background: var(--rn-background);
    color: var(--rn-text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 4px;
    border: 1px solid var(--rn-separator);
}

/* Overview section */
.shop-overview {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--rn-separator);
}

.overview-text {
    font-size: 14px;
    color: var(--rn-text);
    line-height: 1.4;
    letter-spacing: -0.2px;
    font-style: italic;
    margin: 0;
}

/* Info section */
.shop-info-section {
    margin-top: 4px;
}

.shop-address {
    font-size: 14px;
    color: var(--rn-secondary-text);
    margin: 0 0 2px 0;
    font-weight: 400;
    line-height: 1.3;
}

.shop-hours {
    font-size: 13px;
    color: var(--rn-secondary-text);
    font-weight: 400;
    margin: 0;
}

/* Link overlay for clicking */
.shop-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    text-decoration: none;
}

/* Ensure buttons are clickable over the overlay */
.directions-btn {
    position: relative;
    z-index: 2;
}

/* No results */
.no-results-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 40px 20px;
}

.no-results-content {
    text-align: center;
}

.no-results-icon {
    font-size: 48px;
    color: var(--rn-separator);
    margin-bottom: 16px;
}

.no-results-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--rn-text);
    margin-bottom: 8px;
}

.no-results-text {
    font-size: 16px;
    color: var(--rn-secondary-text);
    margin-bottom: 20px;
}

.clear-filters-btn {
    background: var(--rn-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: var(--rn-secondary);
    transform: translateY(-1px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .shops-container {
        padding: 12px;
    }
    
    .shop-title {
        font-size: 16px;
    }
    
    .shop-status-rating-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .shop-rating-container {
        order: 3;
        flex: 100%;
        justify-content: flex-start;
        margin-top: 4px;
    }
}
