@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:wght@400;600;700&display=swap');

body {
    font-family: 'Segoe UI', sans-serif;
    background: #fdfdfd;
    color: #1d2a40;
}

:root {
    --primary-color: #1d2a40;
    --secondary-color: #FFD700;
    --background-light: #fdfdfd;
    --text-dark: #1d2a40;
    --text-light: #fff;
    --card-background: #fff;
    --border-subtle: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-deep: rgba(0, 0, 0, 0.12);
}

.hero-section {
    background: linear-gradient(120deg, #1d2a40 0%, #2C4E6D 100%);
    color: #FFD700;
    padding: 60px 0 40px 0;
    border-radius: 0 0 30px 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(26, 42, 108, 0.15);
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-section .lead {
    color: #fffbe7;
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-search {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-input-group {
    display: flex;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(26, 42, 108, 0.08);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1.1rem;
    border-radius: 30px 0 0 30px;
    outline: none;
    background: #fff;
}

.search-button {
    background: #FFD700;
    color: #1a3353;
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.search-button:hover {
    background: #ffb700;
}

.businesses-section {
    padding: 4rem 0;
    background: #f7fafd;
    margin-top: -2rem;
    border-radius: 2rem 2rem 0 0;
    position: relative;
    z-index: 2;
}

.businesses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin: 40px 0;
}

.business-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #f8f9fa;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.business-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08) !important;
    text-decoration: none;
    color: inherit;
}

.business-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background-color: #f8f9fa;
    transition: opacity 0.2s ease;
}

.business-card img[src*="jshuk-logo.png"] {
    object-fit: contain;
    padding: 8px;
    background-color: #fff;
}

/* Handle broken images gracefully */
.business-card img:not([src]) {
    display: none;
}

.business-card img[src=""] {
    display: none;
}

.business-card h5 {
    font-weight: 700;
    color: #1d2a40;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.business-card .text-muted {
    color: #6c757d !important;
}

.business-card .text-secondary {
    color: #495057 !important;
}

.business-card .view-details, .btn-view {
    background: #FFD700;
    color: #1a3353;
    border: none;
    border-radius: 12px;
    padding: 12px 0;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
}

.business-card .view-details:hover, .btn-view:hover {
    background: #1a3353;
    color: #FFD700;
}

.business-card .category {
    font-size: 1.05rem;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 10px;
}

.business-card .description {
    font-size: 1rem;
    color: #444;
    margin-bottom: 12px;
    min-height: 48px;
}

.business-card .phone {
    font-size: 1.05rem;
    color: #1e3c72;
    margin-bottom: 18px;
}

.business-card .view-details span {
    background: #fff !important;
    color: transparent !important;
    background-image: linear-gradient(90deg, #FFD700 0%, #1a2a6c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    border: none;
    border-radius: 12px;
    padding: 14px 0;
    width: 100%;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 42, 108, 0.10);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.business-card .view-details:hover span {
    background: #fff !important;
    color: transparent !important;
    background-image: linear-gradient(90deg, #1a2a6c 0%, #FFD700 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    box-shadow: 0 4px 16px rgba(26, 42, 108, 0.18);
}

.business-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.business-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.business-card:hover .business-image img {
    transform: scale(1.1);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.business-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.business-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90%;
    margin: 0 auto 0.5rem auto;
    font-size: 1.1rem;
    font-weight: 700;
}

.business-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    background: var(--background-light);
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
}

.business-description {
    color: #495057;
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.business-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.social-links i {
    transition: color 0.3s, transform 0.3s;
}

.social-links i:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    align-self: flex-start; /* Align button to the left */
}

.btn-view:hover {
    background: #2C4E6D;
    box-shadow: 0 8px 24px var(--shadow-medium);
    transform: translateY(-2px);
}

.btn-view i {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.btn-view:hover i {
    transform: translateX(4px);
}

.btn-view span {
    background: linear-gradient(90deg, #FFD700 0%, #1a2a6c 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    font-weight: 700 !important;
}

/* Empty State */
.empty-state {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
}

.empty-state-icon {
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #1d2a40;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .business-card {
        margin-bottom: 1rem;
        min-height: 260px;
    }
    
    .d-flex.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    
    .form-select, .form-control {
        width: 100% !important;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .business-card img {
        width: 50px;
        height: 50px;
    }
    
    .business-card h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0 30px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .business-card {
        padding: 15px;
    }
    
    .business-card .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .business-card img {
        margin: 0 auto 15px auto;
    }
    
    .business-card .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
    
    .business-card .btn {
        width: 100%;
    }
}

/* Utility Classes */
.fw-bold {
    font-weight: 700 !important;
}

.text-center {
    text-align: center !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.rounded {
    border-radius: 0.375rem !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.bg-white {
    background-color: #fff !important;
}

.border-start {
    border-left: 1px solid !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-warning {
    border-color: #FFD700 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.d-flex {
    display: flex !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.align-items-center {
    align-items: center !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.gap-3 {
    gap: 1rem !important;
}

.w-auto {
    width: auto !important;
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.business-card {
    animation: fadeInUp 0.3s ease-out;
}

/* Loading states */
.business-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.business-card:focus {
    outline: 2px solid #1d2a40;
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(29, 42, 64, 0.25);
}

/* Filter Controls */
.filter-controls {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.form-select, .form-control {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #1d2a40;
    box-shadow: 0 0 0 0.2rem rgba(29, 42, 64, 0.25);
    outline: none;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.6em;
    font-weight: 600;
    border-radius: 6px;
}

.badge.bg-warning {
    background-color: #FFD700 !important;
    color: #1d2a40 !important;
}

.badge.bg-primary {
    background-color: #1d2a40 !important;
    color: #fff !important;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 600;
    padding: 8px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-outline-primary {
    border-color: #1d2a40;
    color: #1d2a40;
}

.btn-outline-primary:hover {
    background: #1d2a40;
    color: #fff;
    border-color: #1d2a40;
}

.btn-outline-dark {
    border-color: #495057;
    color: #495057;
}

.btn-outline-dark:hover {
    background: #495057;
    color: #fff;
    border-color: #495057;
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    color: #fff;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Section Headers */
h2.fw-bold {
    color: #1d2a40;
    font-size: 1.8rem;
    margin-bottom: 20px;
    position: relative;
}

h2.fw-bold i {
    color: #FFD700;
}

/* Stats */
.business-card small {
    font-size: 0.8rem;
}

.business-card .gap-3 {
    gap: 1rem !important;
}

/* Update/add these styles for the filters */
.search-select {
    width: 100%;
    height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    transition: all 0.2s;
}

.search-select:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-select:hover {
    border-color: #000;
}

/* Rating Filter Styling */
.rating-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.rating-checkbox:hover {
    background-color: #f8f9fa;
}

.rating-checkbox input {
    margin-right: 0.5rem;
}

.rating-checkbox .stars {
    display: flex;
    gap: 2px;
}

.rating-checkbox .stars .fa-star {
    color: #e4e5e9;
    font-size: 1rem;
}

.rating-checkbox .stars .fa-star.checked {
    color: #ffd700;
}

.rating-checkbox .count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Checked state styling */
.rating-checkbox input:checked + .stars .fa-star.checked {
    color: #ffd700;
}

.location-input {
    position: relative;
}

.business-distance {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.business-distance i {
    color: var(--primary);
}

.business-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.business-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.business-card-link:hover .business-card {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Filter options styles */
.filter-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    border: 1px solid #eee;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    pointer-events: none;
}

.filter-options.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.filter-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-apply {
    background: #000;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-apply:hover {
    background: #333;
    transform: translateY(-1px);
}

.btn-clear {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #666;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-clear:hover {
    color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-apply,
    .btn-clear {
        width: 100%;
        text-align: center;
    }
}

.pac-container {
    margin-top: 4px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.input-group-text {
    font-size: 1.2rem;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--button-radius) !important;
}

.btn-primary:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}

.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: var(--button-radius) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.business-card, .business-image, .business-title a, .btn, .search-input, .sort-dropdown {
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .business-image-container {
        min-height: 140px;
    }
    
    .business-content {
        min-height: auto;
    }
    
    .business-title {
        font-size: 1rem;
    }
    
    .business-meta {
        font-size: 0.8rem;
        gap: 0.75rem;
    }
    
    .business-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}

.badge-elite {
    background: linear-gradient(90deg, #FFD700 60%, #fffbe7 100%);
    color: #1d2a40;
    font-weight: 700;
    border-radius: 1em;
    padding: 0.4em 0.8em;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(255,215,0,0.12);
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.badge-category {
    background: #f8f9fa;
    color: #1d2a40;
    border-radius: 1em;
    padding: 0.3em 0.7em;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    margin-bottom: 0.5em;
}

.star-rating {
    color: #FFD700;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 0.2em;
}
.star-rating .fa-star {
    margin-right: 0.05em;
}

.testimonial-snippet {
    font-style: italic;
    color: #6c757d;
    margin-bottom: 0.5em;
    min-height: 1.2em;
} 