/* GLOBAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #333;
}

/* Ensure content stays above the background */
.header-logo,
.header-search-form {
    position: relative;
    z-index: 1;
}

.header-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    text-align: bottom;
    margin-right: 30px;
}

.header-search-form input[type="text"],
.header-search-form select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    min-width: 160px;
}

.header-search-form button {
    padding: 8px 16px;
    background: #0077cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.header-search-form button:hover {
    background: #005fa3;
}

/* HEADER BAR - desktop background by default */
.header-bar {
    position: relative;
    background-color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 5%;
    border-bottom: 1px solid #333;
    overflow: hidden;

    background-image: url('/images/header-bg-desktop.webp');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
}

/* REMOVE the old pseudo-element completely */
.header-bar::after {
    content: none !important;
}

/* MAIN CONTAINER */
.main-container {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto 40px auto;
}

/* TYPE LINKS (PILL BAR) */
.pill-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 0 35px 0;
}

.pill {
    white-space: nowrap;
    padding: 10px 18px 10px 14px;
    font-size: 16px;
    border-radius: 24px;
    text-decoration: none;
    color: #353535;
    border: 1px solid #ccc;
    transition: 0.2s;
    display: inline-block;
}
.pill:hover { opacity: 0.75; }

.pill.color1 { background: #FDE68A; }
.pill.color2 { background: #A7F3D0; }
.pill.color3 { background: #BFDBFE; }
.pill.color4 { background: #FBCFE8; }
.pill.color5 { background: #FECACA; }
.pill.color6 { background: #FCD34D; }
.pill.color7 { background: #C7D2FE; }
.pill.color8 { background: #D9F99D; }

/* COUNTY DROPDOWN */
.county-dropdown {
    position: relative;
    display: flex;
    justify-content: center;
    margin: 20px 0 20px 0;
}

.county-dropdown-toggle {
    background: #0077cc;
    color: #fff;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #005fa3;
    cursor: pointer;
}

.county-dropdown-menu {
    display: none;
    position: absolute;
    top: 48px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    max-height: 320px;
    overflow-y: auto;
    min-width: 260px;
    z-index: 999;
    padding: 8px 0;
}

.county-dropdown.open .county-dropdown-menu { display: block; }

.county-link {
    display: block;
    padding: 6px 14px;
    font-size: 14px;
    color: #0077cc;
    text-decoration: none;
    white-space: nowrap;
}

.county-link:hover {
    background: #f2f2f2;
    text-decoration: underline;
}

/* WELCOME TEXT */

.welcome {
    border-left: 4px solid #0077cc;
    padding: 15px 17px;
    margin-bottom: 35px;
	background-color: #fff
}

.welcome h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
	    margin-top: 0;

}

.welcome p {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
}

/* LATEST ADVERTISERS GRID */
.advertisers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.advertiser-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 15px;
    display: flex;
    gap: 15px;
}

.advertiser-details { flex: 1; }

.advertiser-details a.business-name {
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    color: #0077cc;
}

.advertiser-details a.business-name:hover { text-decoration: underline; }

.advertiser-details .website-link {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #1f1f1f;
    word-break: break-all;
}

.advertiser-details small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.advertiser-details .contact-line {
    font-size: 13px;
    margin-top: 6px;
}

.advertiser-image {
    width: 175px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advertiser-image img {
    max-width: 100%;
    border-radius: 6px;
}

.more-info-wrapper {
    margin-top: 12px;
}

.more-info-btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #222;
    text-decoration: none;
}

.more-info-btn:hover {
    background: #000;
}


.inline-place-image {
  float: right;
  margin: 0 0 10px 20px;
  width: 300px;
  border-radius: 12px;
  shape-outside: margin-box;
}




.advertise-button {
    display: inline-block;
    background: #0077cc;
    color: #fff;
    padding: 10px 18px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #005fa3;
    cursor: pointer;
    text-decoration: none;
    margin: 20px 0;
}


.advertise-button:hover {
    background: #005fa3;
}

.site-footer {
    background: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 25px 10px;
    font-size: 14px;
    border-top: 1px solid #333;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 12px;
}

.footer-links .sep {
    margin: 0 6px;
    color: #777;
}

.footer-copy {
    margin-top: 12px;
    color: #ccc;
}

.footer-social {
    margin: 15px 0;
}

.footer-social .social-icon {
    display: inline-block;
    margin: 0 8px;
    width: 26px;
    height: 26px;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-social .social-icon:hover {
    opacity: 1;
}

.footer-social svg {
    width: 100%;
    height: 100%;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .advertisers-grid {
        grid-template-columns: 1fr;
    }
}

/* MOBILE HEADER FIXES */
@media (max-width: 700px) {

    /* Mobile background image, anchored to the RIGHT */
    .header-bar {
        background-image: url('/images/header-bg-mobile.webp');
        background-position: right center;
        background-size: cover;

        /* Keep logo on the left, search form on the next line */
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 15px 5%;
    }

    /* Search form drops under logo and centers */
    .header-search-form {
        width: 100%;
        margin-top: 10px;
        margin-right: 0;
        justify-content: center;
        text-align: center;
    }

    /* Optional: make inputs tidy on mobile */
.header-search-form input[type="text"],
.header-search-form select,
.header-search-form button {
    width: auto;
}

  .inline-place-image {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 100%;
  }

}