body {
    margin-top: 100px;
    background-color: #f8fafc;
    font-family: "Inter", sans-serif;
    color: #1F2937;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }

a {
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.popular {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6B7280;
}
.popular span {
    font-weight: 600;
}
.popular a {
    color: #4B5563;
    background-color: #F3F4F6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin: 0 0.2rem;
    display: inline-block;
    transition: all 0.2s;
}
.popular a:hover {
    background-color: #E5E7EB;
    color: #111827;
}

/* Navbar Enhancements */
.navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.directory-search-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.directory-search-wrapper:focus-within {
    border-color: #9CA3AF;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar-directory-search-input {
    border: none;
    outline: none;
    flex: 1;
    padding: 8px 16px;
    font-size: 0.95rem;
    color: #111827;
    background: transparent;
}

.navbar-directory-search-input::placeholder {
    color: #9CA3AF;
}

.directory-search-btn {
    border: none;
    outline: none;
    background: #111827;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.directory-search-btn:hover {
    background: #374151;
}
.directory-search-btn span {
    color: #ffffff;
    font-size: 1rem;
}

/* Large Search Box for Hero Section */
.hero-section .directory-search-wrapper {
    padding: 8px 12px;
}
.hero-section .navbar-directory-search-input {
    padding: 12px 24px;
    font-size: 1.15rem;
}
.hero-section .directory-search-btn {
    width: 48px;
    height: 48px;
}
.hero-section .directory-search-btn span {
    font-size: 1.2rem;
}

/* Main Layout Areas */
.bg-grey-grad {
    background-color: #f8fafc;
}

/* Hero Section override for welcome.blade */
.hero-section {
    padding: 4rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #ffffff;
}

/* Category Grid Item */
.category-card {
    background: #ffffff;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #F3F4F6;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #1F2937;
    overflow: hidden;
    text-decoration: none;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    border-color: #E5E7EB;
    color: #38ab49;
}
.category-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
    padding: 0;
}
.category-card-title {
    font-weight: 600;
    font-size: 1rem;
    padding: 1.25rem 1rem;
}

/* Listing Cards (Sidebar / Popular) */
.listing-card-small {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #F3F4F6;
    border-radius: 1rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
}
.listing-card-small:hover {
    transform: translateX(4px);
    border-color: #E5E7EB;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.listing-card-small img {
    border-radius: 0.5rem;
    width: 60px;
    height: 60px;
    object-fit: cover;
}
.listing-card-small-content {
    padding-left: 1rem;
    flex: 1;
}
.listing-card-small-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
.listing-card-small-address {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.3;
}

/* Listings Page Item */
.listing-item {
    background: #ffffff;
    border: 1px solid #F3F4F6;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}
.listing-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-color: #E5E7EB;
}
.listing-item img {
    border-radius: 0.75rem;
    width: 100%;
    max-width: 140px;
    height: 140px;
    object-fit: cover;
}
.listing-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}
.listing-item-address {
    color: #4B5563;
    font-size: 0.95rem;
}

/* Utilities */
.fixed-size-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
}
.fixed-size-img-sm {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}
.related-listing-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Footer styling */
.site-footer {
    background-color: #111827;
    color: #9CA3AF;
    padding: 3rem 0;
    margin-top: 4rem;
}
.site-footer a {
    color: #D1D5DB;
}
.site-footer a:hover {
    color: #ffffff;
}
.site-footer .disclaimer {
    font-size: 0.75rem;
    color: #6B7280;
    border-top: 1px solid #374151;
    padding-top: 2rem;
    margin-top: 2rem;
    line-height: 1.6;
}

/* Map Container styling */
.map-container {
    height: 100vh;
    border-left: 1px solid #E5E7EB;
    position: sticky;
    top: 75px;
}
#map { height: 100%; width: 100%; }

@media (max-width: 767px) {
    .map-container {
        height: 60vh;
        border-left: none;
        border-top: 1px solid #E5E7EB;
        position: relative;
        top: auto;
    }
}
