/* ==========================================================
   discover.css
   Styles specific to the "Khám phá / Discover" page, split out
   of the old shared style.css. Only rules discover.html actually
   uses are kept here (hero, search/filter bar, site grid/cards,
   pagination). Homepage-only rules from style.css (.home-hero,
   .filter-section, .district-label, .btn-outline-dark, etc.)
   were left out on purpose. Shared tokens (colors, navbar,
   footer, fonts) are expected to come from site.css via
   base.html — the :root fallback below just keeps this file
   self-contained in case those tokens aren't defined yet.
   ========================================================== */

/* ================= Hero ================= */
.discover-hero {
    position: relative;
    height: 40vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: var(--font-serif-display);
}

.discover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 46, 36, 0.6);
    z-index: 1;
}

.discover-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.discover-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ================= Search & Filters ================= */
.discover-filters {
    background: white;
    padding: 2rem;
    margin-top: -3rem; /* floats the filter box up over the hero image */
    position: relative;
    z-index: 3;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    border-bottom: 2px solid var(--accent-gold);
    font-family: var(--font-serif-display);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-heading);
    background: transparent;
    font-family: var(--font-serif-display);
}

.search-box button {
    background: var(--accent-gold);
    color: white;
    border: none;
    padding: 0 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: var(--accent-dark);
}

.filter-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    padding: 0.8rem;
    border: 1px solid #d4d0c8;
    background-color: transparent;
    outline: none;
    font-size: 1rem;
    cursor: pointer;
}

/* ================= Site Grid / Cards ================= */
.site-grid-section {
    padding-top: 1rem;
    padding: 3rem;
    font-family: var(--font-serif-display);
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.site-card {
    text-decoration: none;
    color: var(--text-main);
    display: block;
    transition: transform 0.3s ease;
}

.site-card:hover {
    transform: translateY(-5px);
}

.card-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    margin-bottom: 1rem;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
}

.card-tags span {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border: 1px solid #d4d0c8;
    color: var(--text-muted);
}

/* ================= Pagination ================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.page-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d4d0c8;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover:not(.disabled) {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

.page-btn.active {
    background: var(--accent-gold);
    color: white;
    border-color: var(--accent-gold);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
    .site-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .site-grid { grid-template-columns: 1fr; }
}