.dispensary-banner {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 40%, #66bb6a 100%);
    border-bottom-left-radius: 50% 60px;
    border-bottom-right-radius: 50% 60px;
    padding: 6rem 1rem 7rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    box-shadow: 0 10px 40px rgba(27, 94, 32, 0.15);
}

.dispensary-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.dispensary-banner::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.banner-title {
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: -1.5px;
    position: relative;
}

.banner-subtext {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
    position: relative;
}

.content-wrapper {
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 2rem;
}

.search-bar-group {
    display: flex;
    gap: 0.5rem;
}

.search-bar-group input {
    flex: 1;
}

.search-bar-group input,
.search-bar-group button {
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-bar-group input {
    flex: 1;
}

.search-bar-wrapper {
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15),
    0 5px 15px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 10px 15px;
    max-width: 750px;
    width: 90%;
    margin: -45px auto 40px auto;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.search-bar-wrapper:focus-within {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.search-bar-group {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
}

#autocomplete-results {
    position: absolute;
    top: 110%;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none !important;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    z-index: 1000;
}

#dispensary-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 2rem;
    width: 100%;
}

#dispensary-results .deal-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    max-width: 100%;
    padding: 25px;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    min-height: auto;
    scroll-snap-align: none;
    flex: none;
}

#dispensary-results .deal-card > div:first-of-type {
    flex-grow: 1;
    text-align: left;
}

#dispensary-results .deal-card h3,
#dispensary-results .deal-card h4 {
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    color: #333;
}

#dispensary-results .deal-card p {
    color: #666;
    margin: 0;
    font-size: 1rem;
}

#dispensary-results .deal-card > div:last-of-type {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    min-width: 140px;
}

.dispensary-list-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 25px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.dispensary-list-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 25px;
    background: #e8f5e9;
    color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
    border: 1px solid #c8e6c9;
}

#autocomplete-results li {
    padding: 14px 20px !important;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #f4f6f8;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

#autocomplete-results li:hover {
    background-color: #e8f5e9;
    color: #2e7d32;
}

#autocomplete-results li:last-child {
    border-bottom: none;
}

#manual-address {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 10px 20px;
    padding-right: 50px !important;
    outline: none;
    color: #333;
    font-weight: 500;
    flex-grow: 1;
    min-width: 0;
    width: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-button {
    background-color: #2e7d32;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

.search-button:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.selector {
    height: 46px;
    padding: 0 2.5rem 0 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: #1b5e20;
    color: white;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.selector:hover {
    background-color: #2e7d32;
}

.select-wrapper {
    border-left: 1px solid #eee;
    margin-left: 10px;
    padding-left: 10px;
    flex-shrink: 0;
    min-width: 130px;
    display: flex;
    align-items: center;
}

.custom-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='white' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.85;
}

#search-summary {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-top: -10px;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

#search-summary strong {
    color: #333;
    font-weight: 600;
}

.deals-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0 1rem;
}

.deals-header h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.deals-controls {
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    padding: 8px 12px;
    max-width: 900px;
    margin: 0 auto 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.search-wrapper {
    flex: 2;
    min-width: 240px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    color: #2E7D32;
    pointer-events: none;
}

.search-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 48px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.search-wrapper input:focus {
    outline: none;
    border-color: #2e7d32;
}

.filters-wrapper {
    flex: 1;
    display: flex;
    gap: 8px;
    min-width: 320px;
}

.location-input-group {
    position: relative;
    width: 100%;
}

#btn-use-location {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    margin: auto 0;
    height: 36px;
    width: 36px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    color: #999;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#btn-use-location:hover {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

#btn-use-location:active {
    background-color: #c8e6c9 !important;
    color: #1b5e20 !important;
    box-shadow: 0 0 0 8px rgba(46, 125, 50, 0.3);
}

.filter-select {
    flex: 1;
    width: 100%;
    padding: 10px 15px 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    background-color: #f9f9f9;
    font-size: 0.9rem;
    color: #444;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' 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 12px center;
    background-size: 14px;
}

.filter-select:focus {
    border-color: #2e7d32;
    outline: none;
}

.filter-select:hover {
    background-color: #fff;
    border-color: #2E7D32;
    color: #2E7D32;
}

.deal-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    min-height: 400px;
}

.deal-grid-container .deal-card {
    width: 100%;
    scroll-snap-align: none;
}

.search-disclaimer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.search-disclaimer p {
    margin-bottom: 0.5rem;
}

.search-disclaimer strong {
    color: #2e7d32;
    font-weight: 700;
}

.search-disclaimer em {
    font-style: normal;
    background: #f1f8e9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #333;
    font-size: 0.8rem;
    font-weight: 600;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: #666;
}

#manual-search.search-button {
    background-color: #2e7d32;
    color: white;
    padding: 0.75rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 46px;
}

#manual-search.search-button:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#manual-search.search-button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .dispensary-banner {
        padding: 2rem 1rem 3rem 1rem;
    }

    .banner-title {
        font-size: 1.75rem !important;
    }

    .search-bar-wrapper {
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
        border-radius: 16px;
    }

    #manual-address {
        width: 100%;
        flex: 1 1 100%;
        border-bottom: 1px solid #eee;
        margin-bottom: 5px;
        padding: 8px 0;
    }

    .select-wrapper,
    #manual-search {
        flex: 1;
        width: auto;
    }

    #dispensary-results .deal-card {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    #dispensary-results .deal-card .card-body {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    #dispensary-results .deal-card h3 {
        font-size: 1.2rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    #dispensary-results .deal-card div[style*="align-items: center"] {
        font-size: 0.85rem !important;
        flex-wrap: wrap;
        margin-bottom: 12px !important;
    }

    #dispensary-results .deal-card .card-body > div:nth-last-child(2) {
        display: flex;
        flex-direction: column;
        gap: 8px !important;
        width: 100%;
        margin-top: 5px;
    }

    .visit-button {
        width: 100%;
        text-align: center;
        padding: 10px 0;
        display: block;
        box-sizing: border-box;
    }

    #dispensary-results .deal-card::before {
        width: 40px;
        height: 40px;
        background-size: 20px;
        margin-right: 15px;
        align-self: flex-start;
        margin-bottom: 15px;
        display: none;
    }

    .dispensary-list-logo,
    .dispensary-list-placeholder {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-right: 15px;
        margin-bottom: 0;
        align-self: flex-start;
    }
}

@media (min-width: 768px) {
    .dispensary-list-logo,
    .dispensary-list-placeholder {
        margin-right: 0 !important;
        margin-bottom: 15px;
        margin-left: auto;
        margin-right: auto !important;
    }

    #dispensary-results .deal-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    #dispensary-results .deal-card::before {
        margin-right: 0;
        margin-bottom: 15px;
    }

    #dispensary-results .deal-card > div:first-of-type {
        text-align: center;
        margin-bottom: 15px;
    }

    #dispensary-results .deal-card > div:last-of-type {
        margin-left: 0;
        align-items: center;
        width: 100%;
    }

    #dispensary-results .deal-card > div:last-of-type button,
    #dispensary-results .deal-card > div:last-of-type a {
        width: 100%;
    }

    .search-disclaimer {
        text-align: center;
        padding: 1rem;
        font-size: 0.75rem;
    }

    .deals-controls {
        border-radius: 16px;
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }

    .search-wrapper, .filters-wrapper {
        width: 100%;
        flex: auto;
    }

    .search-wrapper input {
        border-bottom: 1px solid #eee;
        padding-bottom: 12px;
    }
}

