:root {
    --primary-color: #2c5530;
    --secondary-color: #1e3a21;
    --accent-color: #6b9c6b;
    --accent-light: #b8d4b8;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --black: #000000;
    --border-color: #ddd;
    --light-border: #f0f0f0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --header-height: 80px;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #8b4513;
    --dropdown-border: rgba(255, 255, 255, 0.1);
    --dropdown-border-mobile: rgba(255, 255, 255, 0.3);
    --hover-overlay: rgba(255, 255, 255, 0.2);
    --button-normal-bg: #2c5530;
    --button-active-bg: #1a3d1d;
    --cta-bg: #0d1f0e;
    --overlay-dark: rgba(0, 0, 0, 0.4);
    --overlay-medium: rgba(0, 0, 0, 0.3);
    --np-color: #28a745;
    --bronze-color: #cd7f32;
    --silver-color: #c0c0c0;
    --gold-color: #ffd700;
    --np-bg: #d4edda;
    --bronze-bg: #f8f1e8;
    --silver-bg: #f8f9fa;
    --gold-bg: #fff8dc;
    --hero-overlay: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--secondary-color);
}

.card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    min-height: 70px;
    flex-wrap: nowrap;
    width: 100%;
}

.logo {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 6px;
    padding: 2px;
    flex-shrink: 0;
}

header h1 {
    font-size: 1rem;
    color: var(--white);
    font-weight: bold;
    margin: 0 0.5rem;
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
    position: relative;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: all 0.3s ease;
    position: absolute;
    display: block;
}

.hamburger span:nth-child(1) {
    top: 8px;
}

.hamburger span:nth-child(2) {
    top: 14px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
}

.navigation {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
    min-width: 200px;
    z-index: 1000;
}

.navigation.show {
    display: block;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation li {
    border-bottom: 1px solid var(--border-color);
}

.navigation li:last-child {
    border-bottom: none;
}

.navigation a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 1rem;
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    font-weight: 500;
}

.navigation a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    outline: none;
}

.navigation .current a {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

main {
    padding: 0;
    width: 100%;
    margin-top: 70px;
    padding-top: 0rem;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 40vh;
    min-height: 250px;
    overflow: hidden;
    margin-bottom: 2rem;
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-dark);
    z-index: 5;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    background: var(--overlay-medium);
    border-radius: 10px;
    backdrop-filter: blur(2px);
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--white);
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 500;
    color: var(--white);
}

.cta-button {
    display: inline-block;
    background-color: var(--cta-bg);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-shadow: none;
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: var(--button-active-bg);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.home-grid {
    display: grid;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
    width: 100%;
    margin-top: 0;
}

.current-events h3,
.weather h3,
.weather-forecast h3,
.company-spotlights h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.event {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.event:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.event h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.event-date {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.current-weather {
    text-align: center;
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

#current-temp {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

#weather-icon {
    width: 50px;
    height: 50px;
    display: none;
}

#weather-desc {
    font-style: italic;
    color: var(--text-color);
    text-transform: capitalize;
    margin-bottom: 1rem;
}

.weather-details {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
    grid-template-columns: 1fr 1fr;
}

.weather-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.weather-detail:last-child {
    border-bottom: none;
    grid-column: 1 / -1;
}

.weather-detail .label {
    font-weight: 500;
    color: var(--text-color);
}

.weather-detail span:last-child {
    font-weight: bold;
    color: var(--primary-color);
}

.forecast {
    margin-top: 1rem;
}

#forecast-container {
    display: flex;
    justify-content: space-around;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.forecast-day {
    text-align: center;
    padding: 0.5rem;
    background-color: var(--light-gray);
    border-radius: 5px;
    flex: 1;
}

.forecast-day .day {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.forecast-day .temp {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.forecast-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.forecast-details h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.weather-tips {
    display: grid;
    gap: 0.75rem;
}

.weather-tips p {
    font-size: 0.85rem;
    margin: 0;
    display: grid;
    grid-template-columns: 25px minmax(120px, 1fr) 1fr;
    align-items: start;
    gap: 0.75rem;
}

.weather-tips strong {
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.3;
}

.weather-tips span {
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.3;
}

#spotlights-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.spotlight-card {
    text-align: center;
    background-color: var(--light-gray);
    transition: transform 0.3s ease;
}

.spotlight-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.spotlight-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.spotlight-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.spotlight-card .membership-level {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.spotlight-card .contact-info {
    font-size: 0.8rem;
    color: var(--text-color);
}

.spotlight-card .contact-info p {
    margin: 0.25rem 0;
}

.spotlight-card a {
    color: var(--secondary-color);
    text-decoration: none;
}

.spotlight-card a:hover {
    text-decoration: underline;
}

.directory-hero {
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

.directory-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.directory-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.directory-controls {
    text-align: center;
    margin: 2rem 0;
}

.view-btn {
    background-color: var(--button-normal-bg);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 4px;
}

.view-btn:hover,
.view-btn.active {
    background-color: var(--button-active-bg);
    color: var(--white);
    border-color: var(--button-active-bg);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.view-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
    background-color: var(--button-active-bg);
    color: var(--white);
}

#directory-container {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.business-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.business-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.business-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.business-card p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.business-card a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.business-card a:hover {
    color: var(--button-active-bg);
    text-decoration: underline;
}

.business-card a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.membership-level {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.level-1 {
    background-color: var(--gold);
    color: var(--black);
}

.level-2 {
    background-color: var(--silver);
    color: var(--black);
}

.level-3 {
    background-color: var(--bronze);
    color: var(--white);
}

.level-np {
    background-color: var(--np-bg);
    color: var(--np-color);
}

.list-view {
    display: block;
}

.list-view .business-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1rem;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.list-view .business-card img {
    display: none;
}

.list-view .business-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.list-view .business-card p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.list-view .membership-level {
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.join-hero {
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

.join-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.join-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.join-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.join-form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.join-form-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
}

#membership-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#membership-form label {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: capitalize;
}

#membership-form input,
#membership-form textarea {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#membership-form input:focus,
#membership-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(107, 156, 107, 0.1);
}

#membership-form input:invalid {
    border-color: #e74c3c;
}

#membership-form input:valid {
    border-color: var(--accent-color);
}

.membership-fieldset {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.membership-fieldset legend {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 0.5rem;
}

.radio-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    margin: 0.75rem 0;
    cursor: pointer;
    text-transform: none !important;
}

.radio-label input[type="radio"] {
    margin: 0 1rem 0 0 !important;
    transform: scale(1.3);
    accent-color: var(--accent-color);
}

.radio-custom {
    display: none;
}

.membership-levels {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.membership-levels h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
}

.membership-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.membership-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.membership-option:hover {
    border-color: var(--accent-color);
    background-color: var(--light-gray);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.membership-option input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0;
    transform: scale(1.3);
}

.membership-option input[type="radio"]:checked+.option-content {
    color: var(--primary-color);
}

.membership-option input[type="radio"]:checked {
    accent-color: var(--accent-color);
}

.option-content {
    flex: 1;
}

.option-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.option-content p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.9rem;
}

.option-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 1rem;
}

.membership-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.membership-card {
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.membership-card:nth-child(1) {
    animation-delay: 0.1s;
}

.membership-card:nth-child(2) {
    animation-delay: 0.2s;
}

.membership-card:nth-child(3) {
    animation-delay: 0.3s;
}

.membership-card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: transform 0.4s ease;
    transform: translateX(-100%);
}

.membership-card:hover::before {
    transform: translateX(0);
}

.membership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.np-card {
    border-left: 4px solid #28a745;
}

.np-card::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.np-card:hover {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

.bronze-card {
    border-left: 4px solid #cd7f32;
}

.bronze-card::before {
    background: linear-gradient(90deg, #cd7f32, #daa520);
}

.bronze-card:hover {
    background: linear-gradient(135deg, #f8f1e8 0%, #f5e6d3 100%);
    border-color: #cd7f32;
}

.silver-card {
    border-left: 4px solid #c0c0c0;
}

.silver-card::before {
    background: linear-gradient(90deg, #c0c0c0, #e5e5e5);
}

.silver-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #c0c0c0;
}

.gold-card {
    border-left: 4px solid #ffd700;
}

.gold-card::before {
    background: linear-gradient(90deg, #ffd700, #ffed4e);
}

.gold-card:hover {
    background: linear-gradient(135deg, #fff8dc 0%, #ffeaa7 100%);
    border-color: #ffd700;
}

.membership-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.learn-more-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.learn-more-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.learn-more-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
    outline: none;
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.modal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    line-height: 1.5;
}

.modal-content li:last-child {
    margin-bottom: 0;
}

.thank-you-hero {
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

.thank-you-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.thank-you-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.thank-you-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.application-summary {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.application-summary h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.form-data-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.form-data-item:last-child {
    border-bottom: none;
}

.form-data-label {
    font-weight: 600;
    color: var(--primary-color);
    flex: 1;
}

.form-data-value {
    color: var(--text-color);
    flex: 2;
    text-align: right;
}

.next-steps {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.next-steps h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-steps ul {
    padding-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.back-home-btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-home-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

.discover-hero {
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

.discover-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.discover-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.visitor-message {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    margin: 1rem auto 2rem;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
}

.message-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.message-content p {
    margin: 0;
    font-weight: 500;
}

.close-message {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-message:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.discover-gallery {
    padding: 0 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-container {
    display: grid;
    gap: 1.5rem;
    grid-template-areas:
        "card1"
        "card2"
        "card3"
        "card4"
        "card5"
        "card6"
        "card7"
        "card8";
}

.attraction-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    height: 100%;
}

.attraction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.attraction-card h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

.attraction-card figure {
    margin: 0 0 1rem 0;
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.attraction-card address {
    font-style: normal;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
}

.attraction-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.attraction-card .learn-more-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.attraction-card .learn-more-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 1rem 1rem;
    display: grid;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
}

.footer-address h3 {
    margin-bottom: 0.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    display: inline-block;
    transition: transform 0.3s;
}

.footer-social a:hover {
    transform: scale(1.1);
}

.footer-social img {
    width: 32px;
    height: 32px;
}

.footer-attribution p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

@media (max-width: 599px) {
    .message-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .close-message {
        align-self: flex-end;
        margin-top: -1rem;
    }
}

@media (max-height: 650px) {
    .hero {
        height: 45vh;
        min-height: 200px;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {

    .weather,
    .weather-forecast {
        padding: 1rem 0.8rem;
        font-size: 0.85rem;
    }

    .weather-details {
        font-size: 0.8rem;
    }

    .weather-detail {
        flex-wrap: wrap;
        min-width: 0;
    }

    .weather-detail .label {
        flex: 1;
        min-width: 60px;
        margin-right: 0.25rem;
        font-size: 0.8rem;
    }

    .weather-detail span:last-child {
        flex-shrink: 0;
        font-size: 0.8rem;
    }

    .weather-tips p {
        font-size: 0.75rem;
        grid-template-columns: 18px minmax(60px, 1fr) 1fr;
        gap: 0.4rem;
    }

    .weather-tips strong {
        font-size: 0.72rem;
    }

    .weather-tips span {
        font-size: 0.72rem;
        word-break: break-word;
    }

    #current-temp {
        font-size: 1.8rem;
    }

    #weather-desc {
        font-size: 0.8rem;
        line-height: 1.1;
    }

    .gallery-container {
        grid-template-areas:
            "card1 card2"
            "card3 card4"
            "card5 card6"
            "card7 card8";
        grid-template-columns: 1fr 1fr;
    }

    .attraction-card img:hover {
        transform: scale(1.05);
        filter: brightness(1.1);
    }

    .membership-options {
        grid-template-columns: 1fr 1fr;
    }

    .membership-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    header {
        padding: 1rem;
        min-height: 80px;
    }

    main {
        margin-top: 80px;
        padding-top: 1.5rem;
    }

    .logo {
        width: 80px;
        height: 80px;
        padding: 4px;
    }

    header h1 {
        font-size: 1.5rem;
        text-align: left;
    }

    .navigation {
        display: block;
        position: static;
        top: auto;
        right: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        min-width: auto;
    }

    .navigation ul {
        display: flex;
        gap: 0;
    }

    .navigation li {
        border-bottom: none;
    }

    .navigation a {
        color: var(--white);
        padding: 0.75rem 1rem;
        font-weight: 500;
    }

    .navigation a:hover {
        background-color: var(--button-active-bg);
        color: var(--white);
    }

    .navigation .current a {
        background-color: var(--white);
        color: var(--primary-color);
        font-weight: 600;
    }

    .hamburger {
        display: none;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content {
        padding: 2.5rem;
        background: var(--overlay-medium);
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .home-grid {
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 400px auto;
        gap: 2rem;
    }

    .current-events {
        grid-column: 1;
        grid-row: 1;
        height: 400px;
        overflow-y: auto;
    }

    .weather {
        grid-column: 2;
        grid-row: 1;
        height: 400px;
    }

    .weather-forecast {
        grid-column: 3;
        grid-row: 1;
        height: 400px;
    }

    .company-spotlights {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #spotlights-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    #current-temp {
        font-size: 2.5rem;
    }

    #weather-icon {
        width: 64px;
        height: 64px;
    }

    footer {
        grid-template-columns: 1fr 1fr 1fr;
        text-align: left;
        align-items: start;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-attribution {
        text-align: right;
    }

    .directory-hero h2 {
        font-size: 3rem;
    }

    .join-container {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }

    .thank-you-hero h2 {
        font-size: 3rem;
    }

    .thank-you-hero p {
        font-size: 1.3rem;
    }

    .discover-hero h2 {
        font-size: 3rem;
    }

    .discover-hero p {
        font-size: 1.3rem;
    }
}

@media (min-width: 1024px) {
    .logo {
        width: 100px;
        height: 100px;
    }

    main {
        margin-top: 100px;
        padding-top: 2rem;
    }

    header {
        min-height: 100px;
    }

    header h1 {
        font-size: 1.75rem;
    }

    .hero {
        height: 75vh;
        min-height: 450px;
    }

    .hero-content {
        padding: 2.5rem;
    }

    .hero-content h2 {
        font-size: 2.75rem;
    }

    #spotlights-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .list-view .business-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
    }

    .list-view .business-card h3 {
        flex: 2;
        margin-bottom: 0;
    }

    .list-view .business-card p {
        flex: 1;
        margin: 0;
        font-size: 0.85rem;
    }

    .list-view .membership-level {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .gallery-container {
        grid-template-areas:
            "card1 card2 card3 card4"
            "card5 card6 card7 card8";
        grid-template-columns: repeat(4, 1fr);
    }

    .attraction-card img:hover {
        transform: scale(1.08) rotate(1deg);
        filter: brightness(1.2) contrast(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 767px) {

    .join-hero h2,
    .thank-you-hero h2 {
        font-size: 2rem;
    }

    .join-hero p,
    .thank-you-hero p {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 1.5rem;
    }
}