:root {
    --color-primary: #588157;
    --color-secondary: #a3b18a;
    --color-accent: #dda15e;
    --color-bg: #fafaf7;
    --color-surface: #f0f0ea;
    --color-text: #222222;
    --color-muted: #666666;
    --color-border: #ddddd5;
    --font-heading: 'DM Serif Display', 'Georgia', serif;
    --font-body: 'Inter', 'Helvetica Neue', sans-serif;
    --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.portal-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.portal-brand {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
}
.portal-brand:hover { text-decoration: none; }

.portal-tagline {
    font-size: 13px;
    color: var(--color-muted);
    flex: 1;
}

.portal-nav { display: flex; gap: 20px; }
.portal-nav a {
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 500;
}
.portal-nav a:hover { color: var(--color-text); text-decoration: none; }

/* Hero Search */
.hero-search {
    background: var(--color-primary);
    color: white;
    padding: 60px 24px;
    text-align: center;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.hero-search h1 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-search p {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.category-pills {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pill {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    color: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.pill:hover { background: rgba(255,255,255,0.25); text-decoration: none; }
.pill.active { background: white; color: var(--color-primary); }

/* Main */
.portal-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px;
}

.portal-main h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.2s;
}

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

.card-img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
}

.card-body { padding: 16px; }

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.card-body p {
    font-size: 14px;
    color: var(--color-muted);
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-muted);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-grid .card {
    border: 2px solid var(--color-primary);
}

/* Info Columns */
.info-section { margin-bottom: 48px; }

.info-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.info-col h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.info-col p {
    font-size: 15px;
    color: var(--color-muted);
    line-height: 1.7;
}

.info-col ul {
    list-style: none;
    font-size: 14px;
}

.info-col li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

/* Map */
.map-section {
    margin-bottom: 48px;
}

.map-section h2 { margin-bottom: 16px; }

/* About */
.about-section {
    margin-bottom: 48px;
    max-width: 720px;
}

.about-section p {
    font-size: 16px;
    margin-bottom: 16px;
}

/* Footer */
.portal-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 48px 24px 24px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.footer-col p { font-size: 14px; color: var(--color-muted); line-height: 1.6; }
.footer-col a { display: block; font-size: 14px; color: var(--color-muted); padding: 4px 0; }
.footer-col a:hover { color: var(--color-text); text-decoration: none; }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--color-muted);
}

.footer-bottom a { color: var(--color-muted); margin-left: 16px; }

/* Responsive */
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; }
    .portal-tagline { display: none; }
    .info-columns { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
