.content, .middle-wrapper, section, header, footer, body {
  position: relative;
  z-index: 1;
}
body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 18px;
    font-family: 'Libre Baskerville', Georgia, serif;
    background-color: #f5f7f9;
    color: #222222;
}
section {
    padding: 3em 6em;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

img {
    max-width: 100%;
}

h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 0;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    margin-top: 0.5em;
    margin-bottom: 0.4em;
    color: #1a2a3a;
}

h3 {
    font-family: 'Playfair Display', Georgia, serif;
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 0.5em;
    color: #1a2a3a;
}

p {
    margin-bottom: 1em;
    line-height: 1.6;
}

a {
    color: #2d6a9f;
    text-decoration: none;
}

a:hover {
    color: #1a4a7a;
    text-decoration: underline;
}

.btn {
    background-color: #2d6a9f;
    color: #ffffff;
    border: 3px solid #1a2a3a;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    padding: 0.5em 1.5em;
    border-radius: 25px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #1a4a7a;
    color: #ffffff;
    text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1a2a3a;
    padding: 0.75em 2em;
}

header .site-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2em;
    font-weight: 700;
    color: #ffffff;
}

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

nav li {
    display: inline;
    padding: 0.5em;
}

nav li a {
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

nav li a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

nav li a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
}

.hero {
    background-color: #1a2a3a;
    background-image: linear-gradient(135deg, #1a2a3a 0%, #2d6a9f 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 3em;
}

.hero h1,
.hero h2 {
    color: #ffffff;
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 1.5em;
}

.hero .btn {
    background-color: #ffffff;
    color: #1a2a3a;
    border-color: #ffffff;
}

.hero .btn:hover {
    background-color: #e8f2fa;
    color: #1a2a3a;
}

.card-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 1em 0;
}

.card {
    background-color: #ffffff;
    border: 1px solid #dde4ec;
    border-radius: 8px;
    padding: 24px;
    flex-basis: 280px;
    flex-grow: 1;
    max-width: 360px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card h3 {
    text-align: left;
    margin-bottom: 8px;
}

.card p {
    color: #666666;
    font-size: 0.9em;
    margin-bottom: 12px;
}

.card a.card-link {
    font-size: 0.85em;
    font-weight: 700;
    color: #2d6a9f;
}

.badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.badge-resort  { background: #dbeafe; color: #1e40af; }
.badge-safety  { background: #fee2e2; color: #991b1b; }
.badge-rental  { background: #d1fae5; color: #065f46; }
.badge-trail   { background: #fef3c7; color: #92400e; }
.badge-event   { background: #ede9fe; color: #5b21b6; }
.badge-other   { background: #f3f4f6; color: #374151; }

.weather-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 1em 0;
}

.weather-card {
    background-color: #1a2a3a;
    color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    flex-basis: 200px;
    flex-grow: 1;
    max-width: 260px;
}

.weather-card .resort-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1em;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.8;
}

.weather-card .temp {
    font-size: 2.8em;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.weather-card .temp sup {
    font-size: 0.4em;
    vertical-align: super;
}

.weather-card .conditions {
    font-size: 0.85em;
    opacity: 0.85;
    margin-bottom: 12px;
}

.weather-card .detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    opacity: 0.7;
    margin-bottom: 8px;
}

.weather-card .elevation {
    font-size: 0.75em;
    opacity: 0.5;
}

.weather-loading {
    color: #666666;
    font-style: italic;
}

.weather-error {
    color: #c0392b;
}

.weather-api-note {
    text-align: center;
    font-size: 0.8em;
    color: #999999;
    margin-top: 0.5em;
}

.submit-intro {
    text-align: center;
    justify-content: center;
}

.submit-form {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9em;
    color: #1a2a3a;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    font-size: 1em;
    font-family: 'Libre Baskerville', Georgia, serif;
    border: 1px solid #dde4ec;
    border-radius: 6px;
    background-color: #ffffff;
    color: #222222;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d6a9f;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    text-align: center;
    font-weight: 700;
    color: #27ae60;
    margin-top: 0.5em;
}

footer {
    background-color: #1a2a3a;
    color: #ffffff;
    text-align: center;
    padding: 1.5em 0;
    font-size: 0.85em;
}

footer h2 {
    color: #ffffff;
    font-size: 1.4em;
    margin: 0.5em 0 0.2em;
}

footer p {
    margin: 0.3em 0;
    color: rgba(255, 255, 255, 0.7);
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

footer ul {
    justify-content: center;
    display: flex;
    
   text-align: center;
    list-style: none;
    padding: 0;
    margin: 0.5em 0;
}

footer li {
    display: inline;
    margin-left: .5em;
    margin-right: .5em;
}

footer i {
    color: #5b9bd5;
    font-size: 2em;
    padding-right: 0.5em;
}

footer a i:hover {
    color: #ffffff;
}

.test .flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.flextest {
  flex: 0 0 48%;
  box-sizing: border-box;
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

@media only screen and (max-width: 767px) {

    body {
        font-size: 1em;
    }

    section {
        padding: 1.5em 1em;
    }

    header {
        flex-direction: column;
        gap: 12px;
        padding: 1em;
    }

    nav ul {
        padding: 0;
    }

    nav li {
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.75em 0;
    }

    nav li:last-child {
        border-bottom: none;
    }

    .flex-container {
        flex-direction: column;
    }

    .card,
    .weather-card {
        max-width: 100%;
        flex-basis: 100%;
    }

    .hero {
        padding: 48px 1.5em;
    }

    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    .submit-form {
        padding: 0 1em;
    }

    footer p {
        padding: 0 1em;
    }
}

.directory-controls {
    text-align: center;
    padding: 2em 1em;
    background-color: #ffffff;
    margin: 2em auto;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.dir-card {
  background-color: #f0ffff 
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 1em auto;
}

#searchInput {
    width: 100%;
    padding: 14px 20px;
    font-size: 1em;
    border: 1px solid #dde4ec;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #2d6a9f;
    box-shadow: 0 4px 14px rgba(45, 106, 159, 0.25);
}


.filter-buttons {
    margin-top: 1em;
}

.filter-buttons button {
    margin: 4px;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background-color: #2d6a9f;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-buttons button:hover {
    background-color: #1a4a7a;
    transform: scale(1.05);
}


@media only screen and (max-width: 767px) {
    #searchInput {
        font-size: 0.9em;
        padding: 12px 16px;
    }
    .filter-buttons button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

.how .flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;      
  gap: 20px;
}

.flexhow {
  flex: 0 0 48%;
  box-sizing: border-box;
}

.who {
    background-color: #e8f2fa;
    padding: 3em 6em;
}

.who .flex-container {
    align-items: flex-start;
}

.who .flexwholeft {
    text-align: left;
}

.who
.flexwholeft,
.flexwhoright {
    flex-basis: 48%;
}

.flexwhoright {
    padding-left: 2em;
}

.who img {
    width: 100%;
}

.who ul {
    text-align: left;
    justify-content: left;
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.who li {
    padding: 0.4em 0;
    font-size: 1em;
}

.who i {
    color: #2d6a9f;
    padding-right: 0.6em;
}


.ready {
    background-color: #1a2a3a;
    color: #ffffff;
    text-align: center;
    padding: 3em 2em;
}

.ready h2,
.ready h3 {
    color: #ffffff;
    text-align: center;
}

.ready h3 {
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 0.5em;
}


@media only screen and (max-width: 767px) {

    .who {
        padding: 2em 1em;
    }

    .flexwhoright {
        padding-left: 0;
        margin-top: 1em;
    }
}

.snowflakes-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.snowflake {
  position: absolute;
  opacity: 0;
  animation: twinkle linear infinite;
  color: navy;
  font-size: 16px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  50%       { opacity: 1; transform: scale(1)   rotate(180deg); }
}