/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f9fafb;
    color: #1f2937;
    display: block !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 450px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}
.categoryFilters select {
	font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s;
	padding: 10px 18px;
    background: #f1f1f1;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    border: none;
}

.top-badge {
    position: absolute;
    top: 60px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.top-badge i {
    color: #FF7A21;
    margin-right: 8px;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero h1 span {
    color: #FF7A21;
}

.hero p {
    color: #e5e7eb;
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 850px;
    background: white;
    padding: 8px 8px 8px 22px;
    border-radius: 60px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 48px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #374151;
}

.toggle-box {
    background: white;
    padding: 4px;
    border-radius: 50px;
    display: flex;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.toggle-btn {
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: #FF7A21;
    color: white;
}

.toggle-btn.inactive {
    background: transparent;
    color: #6b7280;
}

/* Categories */
.nav-categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.nav-categories ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-categories li {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    padding-bottom: 4px;
    transition: color 0.2s;
}

.nav-categories li.active {
    color: #FF7A21;
    border-bottom: 2px solid #FF7A21;
}

.nav-categories li:hover {
    color: #FF7A21;
}

/* Main Section Header */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 14px;
    color: #6b7280;
}

.view-toggle {
    display: flex;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn.active {
    background: #FF7A21;
    color: white;
}

.view-btn.inactive {
    background: transparent;
    color: #6b7280;
}

/* Grid & Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-badge i {
    color: #FF7A21;
}

.card-body {
    padding: 12px;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.card-title-row h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-open { background: #dcfce7; color: #166534; }
.status-closed { background: #fee2e2; color: #991b1b; }

.location {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tag {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f3f4f6;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    border-radius: 6px !important;
}

.card-footer span i {
    margin-right: 0px;
}

.nav-categories ul{
    display:flex;
    align-items:center;
    gap:10px;
    overflow:auto;
    list-style:none;
    padding:10px 0;
}

.nav-categories li{
    padding:10px 18px;
    background:#f1f1f1;
    border-radius:30px;
    cursor:pointer;
    white-space:nowrap;
    font-weight:600;
}

.nav-categories li.active{
    background:black;
    color:white;
}

#moreCategories{
    padding:10px 15px;
    border-radius:30px;
    border:1px solid #ddd;
    font-weight:600;
    cursor:pointer;
}

#map{
    width:100%;
    height:500px;
    border-radius:20px;
    margin-top:20px;
    overflow:hidden;
}

.map-popup{
    width:200px;
}

.map-popup img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:10px;
}

.hidden{
    display:none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .search-container { flex-direction: column; height: auto; padding: 16px; }
    .toggle-box { width: 100%; }
    .toggle-btn { flex: 1; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .view-toggle { width: 100%; }
    .view-btn { flex: 1; justify-content: center; }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
    font-size: 12px;
}

.search-container {
    border-radius: 18px;
}

.search-input-wrapper input {
    border: solid 1px #d5d4dc;
    border-radius: 10px;
}
.search-input-wrapper {
    width: 100%;
    border-radius: 12px;
}
.search-container {
        padding: 8px;
    }
    
    .leaflet-bottom.leaflet-right{
    display: none;
}

.nav-categories li.active {
    background: #04012f;
}

.nav-categories {
    padding: 0px 0px;
}

.nav-categories ul {
    margin-bottom: 0px;
}

.section-header {
    margin-bottom: 0px;
}

.section-header p {
    margin-bottom: 0px;
}

#map {
    margin-top: 10px;
}

.main-content {
    padding: 0 4px 10px;
}

.hero{
    height: 260px;
}
.top-badge{
    display: none;
}

.hero p {
	margin-bottom: 6px;
}
.hero h1 {
    font-size: 22px;
    margin-top: 0px;
    margin-bottom: 4px;
}
}

@media (max-width: 768px) {
    .h3, h3 {
        font-size: calc(1.2rem + -1vw);
        width: 90%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0px;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .card-footer span.locationSpan{
          width: 88px;          /* set a fixed width */
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
    }
    .card-image {
        position: relative;
        height: 120px;
    }
    .card-body {
        padding: 6px;
    }
    .card {
    border-radius: 8px;
}
    .card-grid {
    gap: 4px;
}
    .card-footer {
    padding: 2px 1px;
}
    .timing-text {
    font-size: 10px;
}
}


