* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
        font-family: Arial, sans-serif;
        background:#f5f2eb;
        color: #2f2f2f;
        line-height: 1.6;
}

/*Hero*/
.hero {
        background:
        linear-gradient(rgba(0,0,0, 0.55), rgba(0,0,0, 0.55)),
        url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee");
        background-size: cover;
        background-position: center;
        color: white;
        padding: 24px;
        min-height: 360px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    font-size: 28px;
}

.navbar button {
    background: #ffcc66;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.hero-content {
    max-width: 850px;
    margin: 80px auto 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 42px;
    margin-bottom: 12px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 24px;
}

.search-box {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box input {
    padding: 12px;
    border: none;
    border-radius: 8px;
    min-width: 300px;
}

.search-box select {
    padding: 12px;
    border: none;
    border-radius: 8px;
    min-width: 170px;
}

.search-box button {
        padding: 12px 22px;
        border: none;
        border-radius: 8px;
        background: #2f7d5c;
        color: white;
        cursor: pointer;
        font-weight: bold; 
}

/*MAIN*/
main {
    padding: 32px;
}

/*MAP*/

.map-section {
    max-width: 1100px;
    margin: 0 auto 32px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.map-section h2 {
    color: #2f6048;
    margin-bottom: 8px;
}

.selected-state-box {
    margin: 18px 0;
    padding: 12px;
    background: #e8f4ee;
    border-radius: 10px;
    font-weight: bold;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#selectedStateText {
    color: #2f7d5c;
}

#clearStateBtn {
    border: none;
    background: #ffcc66;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.us-map {
    width: 100%;
    overflow: hidden;
}

.us-map svg {
    width: 100%;
    height: auto;
}

.state {
    fill: #d8e6dd;
    stroke: #ffffff;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.2s ease;
}

.state:hover {
        fill: #ffcc66;
}

.state.selected {
        fill:#2f7d5c;
}

.map-tooltip {
    position: absolute;
    background: #2f6048;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1000;
}

/*RESULTS */

.section-header {
    max-width: 1100px;
    margin: 0 auto 24px;
}

.section-header h2 {
    font-size: 30px;
    color: #3c3c3c;
}

#resultCount {
    color: #666;
}

.spots-grid {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px
}

.spot-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.2s ease;
}

.spot-card:hover {
    transform: translateY(-5px);
}

.spot-image {
    height: 170px;
    background-size: cover;
    background-position: center;
}

.spot-content {
    padding: 18px;
}

.spot-content h3 {
    margin-bottom: 8px;
    color: #2f6048;
}

.category {
    display: inline-block;
    background: #e8f4ee;
    color: #2f7d5c;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 13px;
    margin-bottom: 10px;
}

.spot-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.spot-actions button {
    flex: 1;
    padding: 9px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.details-btn {
    background: #2f7d5c;
    color: white;
}

.favorite-btn {
    background: #ffcc66;
    color: #2f2f2f;
}

/*MODAL */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20,20,20,0.65);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
    z-index: 2000;
}

.hidden {
    display: none;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 28px;
    border-radius: 16px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 16px;

    border: none;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.modal-content h2 {
    color: #2f6048;
    margin-bottom: 12px;
}

.modal-content p {
    margin-bottom: 12px;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 24px;
    background: #2f6048;
    color: white;
}

/*MOBILE*/

@media (max-width: 600px) {
    main{ 
        padding: 18px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box select,
    .search-box button {
        width: 100%;
        min-width: 100%;
    }
}

.us-map {
  width: 100%;
  min-height: 610px;
  overflow: visible;
}

.us-map svg {
  display: block;
  width: 100%;
  height: 610px;
}

.state {
  fill: #d8e6dd;
  stroke: #ffffff;
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.2s ease;
}

.state:hover,
.state.hovered {
  fill: #ffcc66;
}

.state.selected {
  fill: #2f7d5c;
}

.learn-more-btn {
    display: block;
    margin-top: 12px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    background: #2f6048;
    color: white;
    border-radius: 8px;
    font-weight: bold;
}

.learn-more-btn:hover{
    background: #244b38;
}