:root {
  --primary-purple: #4A148C;
  --secondary-purple: #7B1FA2;
  --light-purple-bg: #F5F5F5;
  --light-gray: #F5F5F5;
  --medium-gray: #e5e7eb;
  --text-gray: #4B5563;
  --white: #ffffff;
  --text-dark: #212121;
  --font-body: 'Nunito', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--light-gray);
  color: var(--text-dark);
  min-height: 100vh;
  padding: 1rem;
}

.app-container {
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2rem);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-purple);
  flex-shrink: 0;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header .logo {
    height: 35px;
    width: auto;
}
.header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.header-icon-button {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
}
.header-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.header-icon-button svg {
    width: 20px;
    height: 20px;
}

.content-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.intro-section {
    text-align: center;
    margin-bottom: 1.5rem;
}
.intro-section h2 {
    color: var(--primary-purple);
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}
.intro-section p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* TABS */
.complex-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}
.tab-button {
    flex: 1;
    padding: 0.75rem 1rem;
    background-color: var(--light-purple-bg);
    border: 1px solid var(--medium-gray);
    border-radius: 999px;
    color: var(--text-gray);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.tab-button.active {
    background-color: var(--secondary-purple);
    color: var(--white);
    border-color: var(--secondary-purple);
}

/* GRID */
.parks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
}

.park-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}
.park-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.park-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s;
}
.park-card:hover .park-card-bg {
    transform: scale(1.05);
}
.park-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}
.park-card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: var(--white);
    text-align: left;
}
.park-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
    margin-bottom: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.park-name {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.park-tagline {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
}
.park-btn {
    background-color: rgba(255,255,255,0.2);
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    align-self: flex-start;
    backdrop-filter: blur(4px);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--white);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.4);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.park-modal-header {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}
.park-modal-header img.bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.park-modal-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.park-modal-header h3 {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.park-modal-body {
    padding: 2rem;
}
.info-block {
    margin-bottom: 1.5rem;
}
.info-block:last-child {
    margin-bottom: 0;
}
.info-block h4 {
    color: var(--primary-purple);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.info-block p, .info-block li {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
}
.info-block ul {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}
.info-block li {
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .parks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .header {
        padding: 0.75rem 2rem;
    }
    .content-wrapper {
        padding: 2rem;
    }
}

@media (min-width: 1024px) {
    .parks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}