/*
 Theme Name:   Cityo Child
 Theme URI:    https://themeforest.net/item/cityo-multiple-listing-directory-wordpress-theme/23710691
 Description:  Cityo Child Theme - Clean version with Coffee Places functionality moved to plugin
 Author:       ApusTheme
 Author URI:   https://themeforest.net/user/apustheme
 Template:     cityo
 Version:      3.0.0
 Text Domain:  cityo-child
*/

/* ==========================================================================
   Coffee Places Plugin Notice Styles
   ========================================================================== */

.coffee-places-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-size: 14px;
    text-align: center;
}

.coffee-places-notice p {
    margin: 0;
}

/* ==========================================================================
   Child Theme Custom Styles
   ========================================================================== */

/* Add your custom theme styles here */
/* Coffee Places functionality has been moved to the Coffee Places plugin */

/* Example: Custom button styles */
.custom-button {
    background: #007cba;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-button:hover {
    background: #005a87;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .coffee-places-notice {
        margin: 10px;
        padding: 12px;
        font-size: 13px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .coffee-places-notice {
        display: none;
    }
}
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f5f5f5;
    color: #666;
    font-style: italic;
}

.map-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 4px;
    text-align: center;
    padding: 20px;
}

/* Admin Settings Page Styling */
.coffee-admin-settings .card {
    margin-bottom: 20px;
}

.coffee-admin-settings .form-table th {
    width: 200px;
}

.coffee-admin-settings .system-status {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.coffee-admin-settings .system-status td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.coffee-admin-settings .system-status tr:last-child td {
    border-bottom: none;
}

/* Elementor Compatibility Fixes */
.elementor-editor-active .coffee-error-notice,
.elementor-editor-active .coffee-success-notice {
    z-index: 99999;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .coffee-error-notice,
    .coffee-success-notice {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .map-loading,
    .map-error {
        height: 150px;
        font-size: 14px;
    }
}

/* Preserve theme's listing dropdown menu styles */
.listing-action .dropdown-menu .menu-item,
.listing-action .dropdown-menu a,
.listing-action .dropdown-menu button {
    background: #f9f9f9 !important;
    border-left: 4px solid #884513 !important;
    color: inherit !important;
    padding: 15px !important;
    border-radius: 0 !important;
}

/* Coffee Shop Archive Styles */
.coffee-shop-archive-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 40px 0;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    border-radius: 10px;
}

.coffee-shop-archive-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
}

.coffee-shop-archive-header .archive-description {
    font-size: 1.2em;
    opacity: 0.9;
}

.coffee-shop-map-container {
    margin: 30px 0;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.coffee-shop-map-container h2 {
    color: #8B4513;
    margin-bottom: 20px;
}

/* Filter Styles */
.coffee-shop-filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.amenity-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amenity-checkboxes label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.amenity-checkboxes input {
    width: auto;
    margin-right: 5px;
}

/* Coffee Shop Grid */
.coffee-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.coffee-shop-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coffee-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.coffee-shop-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.coffee-shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coffee-shop-image .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f0f0f0;
    color: #8B4513;
    font-size: 3em;
}

.price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8B4513;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9em;
}

.coffee-shop-content {
    padding: 20px;
}

.coffee-shop-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
}

.coffee-shop-title a {
    color: #333;
    text-decoration: none;
}

.coffee-shop-title a:hover {
    color: #8B4513;
}

.coffee-shop-rating {
    margin: 10px 0;
}

.coffee-shop-rating .stars {
    color: #D4AF37;
    margin-right: 5px;
}

.coffee-shop-rating .rating-text {
    color: #666;
    font-size: 0.9em;
}

.coffee-shop-address {
    margin: 10px 0;
    color: #666;
}

.coffee-shop-address i {
    margin-right: 5px;
    color: #8B4513;
}

.coffee-specialties {
    margin: 10px 0;
    font-style: italic;
    color: #555;
}

.coffee-amenities {
    margin: 15px 0;
}

.amenity-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin: 2px;
}

.coffee-shop-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.coffee-shop-actions .btn {
    flex: 1;
    text-align: center;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
}

/* Coffee platform specific button styles - override theme completely */
button.coffee-btn.btn-primary,
a.coffee-btn.btn-primary,
.coffee-shop-card .btn-primary.coffee-btn,
.coffee-shop-actions .btn-primary.coffee-btn,
.coffee-location-search-widget .btn-primary.coffee-btn,
.coffee-shop-single .btn-primary.coffee-btn,
.coffee-shop-archive .btn-primary.coffee-btn {
    /* Reset all theme button styles */
    background: #8B4513 !important;
    background-color: #8B4513 !important;
    background-image: none !important;
    color: white !important;
    border: 2px solid #8B4513 !important;
    border-color: #8B4513 !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* Coffee button hover states */
button.coffee-btn.btn-primary:hover,
button.coffee-btn.btn-primary:focus,
button.coffee-btn.btn-primary:active,
a.coffee-btn.btn-primary:hover,
a.coffee-btn.btn-primary:focus,
a.coffee-btn.btn-primary:active,
.coffee-shop-card .btn-primary.coffee-btn:hover,
.coffee-shop-actions .btn-primary.coffee-btn:hover,
.coffee-location-search-widget .btn-primary.coffee-btn:hover,
.coffee-shop-single .btn-primary.coffee-btn:hover,
.coffee-shop-archive .btn-primary.coffee-btn:hover {
    background: #A0522D !important;
    background-color: #A0522D !important;
    background-image: none !important;
    color: white !important;
    border-color: #A0522D !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Coffee secondary button styles */
button.coffee-btn.btn-secondary,
a.coffee-btn.btn-secondary,
.coffee-shop-card .btn-secondary.coffee-btn,
.coffee-shop-actions .btn-secondary.coffee-btn,
.coffee-location-search-widget .btn-secondary.coffee-btn,
.coffee-shop-single .btn-secondary.coffee-btn,
.coffee-shop-archive .btn-secondary.coffee-btn {
    background: #f0f0f0 !important;
    background-color: #f0f0f0 !important;
    background-image: none !important;
    color: #333 !important;
    border: 2px solid #ddd !important;
    border-color: #ddd !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    font-weight: 400 !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

/* Coffee secondary button hover states */
button.coffee-btn.btn-secondary:hover,
button.coffee-btn.btn-secondary:focus,
button.coffee-btn.btn-secondary:active,
a.coffee-btn.btn-secondary:hover,
a.coffee-btn.btn-secondary:focus,
a.coffee-btn.btn-secondary:active,
.coffee-shop-card .btn-secondary.coffee-btn:hover,
.coffee-shop-actions .btn-secondary.coffee-btn:hover,
.coffee-location-search-widget .btn-secondary.coffee-btn:hover,
.coffee-shop-single .btn-secondary.coffee-btn:hover,
.coffee-shop-archive .btn-secondary.coffee-btn:hover {
    background: #e0e0e0 !important;
    background-color: #e0e0e0 !important;
    background-image: none !important;
    color: #333 !important;
    border-color: #ccc !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Prevent theme JavaScript from affecting coffee buttons */
.coffee-btn {
    /* Lock in our styles against any dynamic changes */
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure coffee buttons don't inherit theme dropdown styles */
.coffee-btn:not(.dropdown-toggle) {
    background-position: initial !important;
    background-repeat: initial !important;
}

/* Single Coffee Shop Styles */
.coffee-shop-single {
    margin: 30px 0;
}

.coffee-shop-header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.coffee-shop-title {
    font-size: 2.5em;
    color: #8B4513;
    margin-bottom: 20px;
}

.coffee-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.coffee-quick-info .price-range {
    background: #8B4513;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.coffee-quick-info .amenities-count {
    color: #666;
    font-size: 0.9em;
}

.coffee-quick-info .phone-link {
    color: #8B4513;
    text-decoration: none;
}

.coffee-quick-info .phone-link:hover {
    text-decoration: underline;
}

.coffee-shop-actions {
    text-align: right;
}

.coffee-shop-actions .btn {
    margin-left: 10px;
    padding: 12px 25px;
    font-size: 1em;
}

.coffee-shop-gallery {
    margin-bottom: 30px;
}

.coffee-shop-gallery .main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.coffee-shop-description,
.coffee-specialties-section,
.coffee-menu-section,
.coffee-atmosphere-section,
.coffee-reviews-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.coffee-shop-description h2,
.coffee-specialties-section h3,
.coffee-menu-section h3,
.coffee-atmosphere-section h3,
.coffee-reviews-section h3 {
    color: #8B4513;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Coffee Shop Menu Items (Food/Drink Menu) */
.coffee-menu-items-grid,
.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.coffee-menu-item,
.coffee-shop-single .menu-item,
.coffee-menu .menu-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.coffee-menu-item .item-header,
.coffee-shop-single .menu-item .item-header,
.coffee-menu .menu-item .item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.coffee-menu-item .item-name,
.coffee-shop-single .menu-item .item-name,
.coffee-menu .menu-item .item-name {
    font-size: 1.1em;
    margin: 0;
    color: #333;
}

.coffee-menu-item .item-price,
.coffee-shop-single .menu-item .item-price,
.coffee-menu .menu-item .item-price {
    font-weight: bold;
    color: #8B4513;
    font-size: 1.1em;
}

.coffee-menu-item .item-description,
.coffee-shop-single .menu-item .item-description,
.coffee-menu .menu-item .item-description {
    color: #666;
    font-size: 0.9em;
    margin: 8px 0;
}

.coffee-menu-item .item-category,
.coffee-shop-single .menu-item .item-category,
.coffee-menu .menu-item .item-category {
    background: #8B4513;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

/* Features */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-tag {
    background: #D4AF37;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

/* Sidebar */
.coffee-shop-sidebar {
    padding-left: 20px;
}

.sidebar-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sidebar-section h4 {
    color: #8B4513;
    margin-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.sidebar-section .address,
.sidebar-section .phone,
.sidebar-section .email,
.sidebar-section .website {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.sidebar-section i {
    margin-right: 10px;
    color: #8B4513;
    width: 15px;
}

.sidebar-section a {
    color: #8B4513;
    text-decoration: none;
}

.sidebar-section a:hover {
    text-decoration: underline;
}

/* Operating Hours */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.hour-item:last-child {
    border-bottom: none;
}

.hour-item .day {
    font-weight: bold;
    color: #333;
}

.hour-item .time {
    color: #666;
}

/* Amenities */
.amenities-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.amenity-item {
    display: flex;
    align-items: center;
}

.amenity-item i {
    color: #28a745;
    margin-right: 8px;
}

/* Social Media */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: #e0e0e0;
}

.social-link i {
    margin-right: 8px;
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .coffee-shop-grid {
        grid-template-columns: 1fr;
    }

    .filter-row {
        flex-direction: column;
    }

    .filter-item {
        min-width: 100%;
    }

    .coffee-shop-header {
        text-align: center;
    }

    .coffee-shop-actions {
        text-align: center;
        margin-top: 20px;
    }

    .coffee-quick-info {
        justify-content: center;
    }

    .coffee-shop-sidebar {
        padding-left: 0;
        margin-top: 30px;
    }

    .coffee-menu-items-grid,
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
}

/* Location Search Widget */
.coffee-location-search-widget {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.location-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-search-header h3 {
    margin: 0;
    color: #8B4513;
}

#get-location-btn {
    padding: 8px 15px;
    font-size: 0.9em;
}

#distance-filter {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

#distance-filter label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

#distance-radius {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Nearby Coffee Shops Results */
.nearby-coffee-shops {
    margin-top: 20px;
}

.nearby-coffee-shops h3 {
    color: #8B4513;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.nearby-shops-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nearby-shop-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #8B4513;
}

.nearby-shop-item h4 {
    margin: 0 0 8px 0;
    font-size: 1.1em;
}

.nearby-shop-item h4 a {
    color: #8B4513;
    text-decoration: none;
}

.nearby-shop-item h4 a:hover {
    text-decoration: underline;
}

.nearby-shop-item .distance {
    font-weight: bold;
    color: #666;
    margin: 5px 0;
}

.nearby-shop-item .rating {
    color: #D4AF37;
    margin: 5px 0;
}

.nearby-shop-item .address {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Location Results Loading */
#location-results p {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Button States */
.btn-success {
    background: #28a745;
    color: white;
    border: none;
}

.btn-success:hover {
    background: #218838;
}

/* City Selector Widget Styles */
.coffee-city-selector-widget {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

/* Hero Style - Higher specificity for Elementor */
.elementor-widget-coffee_city_selector .coffee-city-selector-widget.style-hero,
.coffee-city-selector-widget.style-hero {
    padding: 40px 30px !important;
    text-align: center !important;
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
}

.coffee-city-selector-widget.style-hero .city-selector-hero-header {
    margin-bottom: 30px;
}

.coffee-city-selector-widget.style-hero .hero-title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
}

.coffee-city-selector-widget.style-hero .hero-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

/* Compact Style - Higher specificity for Elementor */
.elementor-widget-coffee_city_selector .coffee-city-selector-widget.style-compact,
.coffee-city-selector-widget.style-compact {
    padding: 20px !important;
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
}

.coffee-city-selector-widget.style-compact .selector-title {
    font-size: 1.3em;
    color: #8B4513;
    margin: 0 0 20px 0;
}

/* City Search Container */
.city-search-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Current City Display */
.current-city-display {
    background: rgba(0,0,0,0.05);
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coffee-city-selector-widget.style-compact .current-city-display {
    background: white;
    border: 2px solid #e0e0e0;
    color: #333;
}

.current-city-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.current-city-info i {
    color: #28a745;
    font-size: 1.1em;
}

.current-city-text {
    font-size: 0.9em;
    opacity: 0.8;
}

.current-city-name {
    font-size: 1.1em;
    font-weight: 600;
}

.change-city-btn {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    color: inherit;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-city-btn:hover {
    background: rgba(0,0,0,0.15);
    border-color: rgba(0,0,0,0.3);
}

.coffee-city-selector-widget.style-compact .change-city-btn {
    background: #8B4513;
    border-color: #8B4513;
    color: white;
}

.coffee-city-selector-widget.style-compact .change-city-btn:hover {
    background: #A0522D;
    border-color: #A0522D;
}

/* Elementor-specific overrides for background color control */
.elementor-widget-coffee_city_selector .coffee-city-selector-widget {
    background: transparent !important;
    background-color: transparent !important;
}

/* Allow Elementor background color control to override default styles */
.elementor-widget-coffee_city_selector .elementor-widget-container > .coffee-city-selector-widget {
    background: inherit !important;
    background-color: inherit !important;
}

/* Ensure Elementor's background color setting works */
.elementor-widget-coffee_city_selector[style*="background"] .coffee-city-selector-widget,
.elementor-widget-coffee_city_selector .elementor-widget-container[style*="background"] .coffee-city-selector-widget {
    background: inherit !important;
    background-color: inherit !important;
}

/* City Input Section */
.city-input-section {
    margin-bottom: 25px;
}

.city-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-with-geolocation {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.city-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    font-size: 1.1em;
    background: rgba(255,255,255,0.9);
    color: inherit;
    transition: all 0.3s ease;
}

.city-input::placeholder {
    color: rgba(0,0,0,0.5);
}

.city-input:focus {
    outline: none;
    border-color: #007cba;
    background: rgba(255,255,255,1);
}

.coffee-city-selector-widget.style-compact .city-input {
    background: white;
    border-color: #ddd;
    color: #333;
}

.coffee-city-selector-widget.style-compact .city-input::placeholder {
    color: #999;
}

.coffee-city-selector-widget.style-compact .city-input:focus {
    border-color: #8B4513;
    background: white;
}

/* Geolocation Button */
.geolocation-btn {
    background: #007cba;
    border: 2px solid #007cba;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
    white-space: nowrap;
}

.geolocation-btn:hover {
    background: #005a87;
    border-color: #005a87;
}

.coffee-city-selector-widget.style-compact .geolocation-btn {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.coffee-city-selector-widget.style-compact .geolocation-btn:hover {
    background: #218838;
    border-color: #218838;
}

/* Mobile Responsive for Location Widget */
@media (max-width: 768px) {
    .location-search-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .location-search-header h3 {
        font-size: 1.2em;
    }

    #get-location-btn {
        width: 100%;
    }
}

/* City Suggestions Dropdown */
.city-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 5px;
    overflow: hidden;
}

.suggestions-header {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9em;
    font-weight: 600;
    color: #6c757d;
}

.suggestions-list {
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f3f4;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-content i {
    color: #8B4513;
    font-size: 0.9em;
    width: 16px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
}

.suggestion-main {
    font-weight: 600;
    color: #333;
    font-size: 1em;
    margin-bottom: 2px;
}

.suggestion-secondary {
    color: #6c757d;
    font-size: 0.85em;
}

.no-suggestions {
    padding: 20px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Popular Cities Section */
.popular-cities-section {
    margin-bottom: 25px;
}

.popular-cities-header {
    margin-bottom: 15px;
}

.popular-label {
    font-size: 0.95em;
    font-weight: 600;
    opacity: 0.9;
}

.coffee-city-selector-widget.style-compact .popular-label {
    color: #666;
}

.popular-cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.popular-city-btn {
    background: rgba(255,255,255,0.9);
    border: 2px solid rgba(0,0,0,0.1);
    color: inherit;
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    text-align: left;
    justify-content: center;
}

.popular-city-btn:hover {
    background: rgba(255,255,255,1);
    border-color: #007cba;
    transform: translateY(-2px);
}

.popular-city-btn i {
    font-size: 0.8em;
    opacity: 0.8;
}

.coffee-city-selector-widget.style-compact .popular-city-btn {
    background: white;
    border-color: #e0e0e0;
    color: #333;
}

.coffee-city-selector-widget.style-compact .popular-city-btn:hover {
    background: #f8f9fa;
    border-color: #8B4513;
    color: #8B4513;
}

/* Search Options Section */
.search-options-section {
    display: flex;
    gap: 15px;
    align-items: end;
}

.radius-selector-wrapper {
    flex: 0 0 auto;
}

.radius-selector-wrapper label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 600;
    opacity: 0.9;
}

.coffee-city-selector-widget.style-compact .radius-selector-wrapper label {
    color: #666;
}

.radius-selector {
    padding: 12px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95em;
    min-width: 120px;
}

.coffee-city-selector-widget.style-compact .radius-selector {
    background: white;
    border-color: #ddd;
    color: #333;
}

.search-button-wrapper {
    flex: 1;
}

.coffee-city-selector-widget .coffee-search-btn {
    width: 100%;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.coffee-city-selector-widget .coffee-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.coffee-city-selector-widget .coffee-search-btn i {
    font-size: 1em;
}

/* Status Messages */
.city-selector-messages {
    margin-top: 20px;
}

.geolocation-status {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.coffee-city-selector-widget.style-compact .geolocation-status {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
}

.status-message {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95em;
}

.status-message i {
    font-size: 1.1em;
}

.search-error-message .alert {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: white;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.coffee-city-selector-widget.style-compact .search-error-message .alert {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Mobile Responsive Styles for City Selector */
@media (max-width: 768px) {
    .coffee-city-selector-widget.style-hero {
        padding: 30px 20px;
    }

    .coffee-city-selector-widget.style-hero .hero-title {
        font-size: 2em;
    }

    .coffee-city-selector-widget.style-hero .hero-subtitle {
        font-size: 1em;
    }

    .input-with-geolocation {
        flex-direction: column;
        gap: 12px;
    }

    .geolocation-btn {
        justify-content: center;
        padding: 12px 15px;
    }

    .geolocation-text {
        display: inline;
    }

    .popular-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .popular-city-btn {
        padding: 10px 12px;
        font-size: 0.85em;
    }

    .search-options-section {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .radius-selector-wrapper {
        flex: none;
    }

    .current-city-display {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .current-city-info {
        justify-content: center;
    }

    .change-city-btn {
        align-self: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .coffee-city-selector-widget.style-hero {
        padding: 25px 15px;
    }

    .coffee-city-selector-widget.style-hero .hero-title {
        font-size: 1.8em;
    }

    .popular-cities-grid {
        grid-template-columns: 1fr;
    }

    .city-input, .geolocation-btn, .radius-selector {
        padding: 12px 15px;
    }

    .coffee-city-selector-widget .coffee-search-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .suggestion-item {
        padding: 12px 15px;
    }

    .suggestions-header {
        padding: 10px 15px;
    }
}

/* Animation for smooth transitions */
.city-input-section,
.current-city-display,
.city-suggestions,
.geolocation-status,
.search-error-message {
    transition: all 0.3s ease;
}

/* Loading states */
.coffee-search-btn.loading .btn-text {
    display: none;
}

.coffee-search-btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.coffee-search-btn.loading .btn-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus states for accessibility */
.city-input:focus,
.geolocation-btn:focus,
.popular-city-btn:focus,
.change-city-btn:focus,
.coffee-search-btn:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 2px;
}

.coffee-city-selector-widget.style-compact .city-input:focus,
.coffee-city-selector-widget.style-compact .geolocation-btn:focus,
.coffee-city-selector-widget.style-compact .popular-city-btn:focus,
.coffee-city-selector-widget.style-compact .change-city-btn:focus {
    outline-color: #8B4513;
}
    }
}

/* User Dashboard Styles */
.coffee-user-reviews,
.coffee-user-favorites,
.coffee-user-shops {
    margin: 20px 0;
}

.user-review-item,
.favorite-shop-item,
.user-coffee-shop-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.user-review-item .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-review-item h4 {
    margin: 0;
    color: #8B4513;
}

.user-review-item .review-date {
    color: #666;
    font-size: 0.9em;
}

.user-review-item .review-rating {
    margin: 10px 0;
}

.user-review-item .review-rating .stars {
    color: #D4AF37;
    margin-right: 5px;
}

.user-review-item .review-content {
    margin: 15px 0;
    color: #333;
}

.user-review-item .review-actions {
    margin-top: 15px;
}

.user-review-item .review-actions a {
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
}

/* Favorite Shops */
.favorite-shop-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.favorite-shop-item .shop-image {
    flex-shrink: 0;
}

.favorite-shop-item .shop-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.favorite-shop-item .shop-info {
    flex: 1;
}

.favorite-shop-item h4 {
    margin: 0 0 8px 0;
    color: #8B4513;
}

.favorite-shop-item .shop-rating {
    margin: 5px 0;
}

.favorite-shop-item .shop-rating .stars {
    color: #D4AF37;
    margin-right: 5px;
}

.favorite-shop-item .shop-address,
.favorite-shop-item .shop-price {
    color: #666;
    font-size: 0.9em;
    margin: 3px 0;
}

.favorite-shop-item .shop-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.favorite-shop-item .shop-actions .btn {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* User Coffee Shops */
.add-coffee-shop {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
}

.user-coffee-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.user-coffee-shop-item .shop-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.user-coffee-shop-item .shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.user-coffee-shop-item h4 {
    margin: 0;
    color: #8B4513;
    font-size: 1.2em;
}

.shop-status {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

.shop-status.status-publish {
    background: #28a745;
    color: white;
}

.shop-status.status-pending {
    background: #ffc107;
    color: #333;
}

.shop-status.status-draft {
    background: #6c757d;
    color: white;
}

.user-coffee-shop-item .shop-rating {
    margin: 8px 0;
}

.user-coffee-shop-item .shop-rating .stars {
    color: #D4AF37;
    margin-right: 5px;
}

.user-coffee-shop-item .no-reviews {
    color: #999;
    font-style: italic;
}

.user-coffee-shop-item .shop-address,
.user-coffee-shop-item .shop-price {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.user-coffee-shop-item .shop-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.user-coffee-shop-item .shop-actions .btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.9em;
    text-align: center;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .favorite-shop-item {
        flex-direction: column;
        text-align: center;
    }

    .favorite-shop-item .shop-image {
        align-self: center;
    }

    .user-coffee-shops-grid {
        grid-template-columns: 1fr;
    }

    .user-coffee-shop-item .shop-actions {
        flex-direction: column;
    }
}

/* Coffee Blog System Styles */
.coffee-author-page {
    margin: 30px 0;
}

.coffee-author-header {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #8B4513;
}

.author-info {
    padding-left: 20px;
}

.author-name {
    color: #8B4513;
    margin-bottom: 10px;
    font-size: 2.2em;
}

.author-expertise {
    margin-bottom: 15px;
}

.expertise-badge {
    background: #D4AF37;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
}

.author-bio {
    margin: 15px 0;
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
}

.coffee-profile {
    margin: 20px 0;
}

.coffee-profile .profile-item {
    margin: 8px 0;
    color: #666;
}

.coffee-profile .profile-item strong {
    color: #8B4513;
    margin-right: 8px;
}

.author-social {
    margin-top: 20px;
}

.author-social .social-link {
    display: inline-block;
    margin-right: 15px;
    padding: 8px 15px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.author-social .social-link:hover {
    background: #8B4513;
    color: white;
}

.author-social .social-link i {
    margin-right: 5px;
}

/* Author Stats */
.author-stats {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #8B4513;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Author Articles */
.author-articles {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.author-articles h2 {
    color: #8B4513;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.coffee-article-card {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coffee-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.coffee-article-card .article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.coffee-article-card .article-content {
    padding: 20px;
}

.article-categories {
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    background: #8B4513;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 5px;
}

.article-title {
    margin: 10px 0;
    font-size: 1.3em;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #8B4513;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9em;
    margin: 15px 0;
}

.article-actions {
    margin-top: 15px;
}

.article-actions .btn {
    padding: 8px 20px;
    font-size: 0.9em;
}

/* Related Posts */
.coffee-related-posts {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.coffee-related-posts h3 {
    color: #8B4513;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.related-post-item .related-post-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-item .related-post-content {
    padding: 15px;
}

.related-post-item h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.related-post-item h4 a {
    color: #333;
    text-decoration: none;
}

.related-post-item h4 a:hover {
    color: #8B4513;
}

.related-post-excerpt {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 10px;
}

.related-post-meta {
    color: #999;
    font-size: 0.8em;
}

.related-post-meta .author,
.related-post-meta .date {
    margin-right: 10px;
}

/* Blog Responsive */
@media (max-width: 768px) {
    .coffee-author-header {
        text-align: center;
    }

    .author-info {
        padding-left: 0;
        margin-top: 20px;
    }

    .author-stats .row {
        text-align: center;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
}
