/* =========================================================================
 *  South Wollo Tourism Theme — main.css
 *  Layout, typography, and structural styles.
 * ======================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-main {
    min-height: 60vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--sw-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--sw-transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--sw-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--sw-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--sw-shadow);
}

.btn--outline {
    background: transparent;
    color: var(--sw-primary);
    border-color: var(--sw-primary);
}

.btn--outline:hover {
    background: var(--sw-primary);
    color: #fff;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn--light {
    background: #fff;
    color: var(--sw-primary);
}

.btn--light:hover {
    background: var(--sw-neutral-100);
    color: var(--sw-primary-dark);
}

.btn--ghost-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Section spacing */
.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--sw-neutral-50);
}

.section__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sw-secondary);
    margin: 0 0 0.5rem;
}

.section__title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.section__lead {
    color: var(--sw-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.section__footer {
    text-align: center;
    margin-top: 2.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--sw-text-muted);
}

.empty-state h2 {
    color: var(--sw-neutral-700);
}

/* Breadcrumbs */
.sw-breadcrumbs {
    margin: 1.5rem 0;
}

.sw-crumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.sw-crumb a {
    color: var(--sw-text-muted);
}

.sw-crumb a:hover {
    color: var(--sw-primary);
}

.sw-crumb--current {
    color: var(--sw-neutral-900);
    font-weight: 600;
}

.sw-crumb-sep {
    color: var(--sw-neutral-400);
    list-style: none;
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.page-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem;
}

.page-hero__title {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin: 0 0 0.5rem;
}

.page-hero__lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

/* Archive layout */
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    padding: 2rem 1rem 4rem;
}

.archive-main {
    min-width: 0;
}

.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.archive-filters {
    background: var(--sw-neutral-50);
    border-radius: var(--sw-radius-sm);
    padding: 1rem;
    margin-bottom: 2rem;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--sw-neutral-300);
    border-radius: var(--sw-radius-sm);
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
}

.archive-pagination {
    margin-top: 2.5rem;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.5rem;
    margin: 0 2px;
    border-radius: var(--sw-radius-sm);
    border: 1px solid var(--sw-neutral-300);
    color: var(--sw-neutral-700);
    text-decoration: none;
    transition: all var(--sw-transition);
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: var(--sw-primary);
    color: #fff;
    border-color: var(--sw-primary);
}

/* Card grid */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Single layout */
.destination-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    padding: 2rem 1rem 4rem;
}

.destination-main {
    min-width: 0;
}

.destination-content {
    font-size: 1.05rem;
}

.destination-content h2,
.destination-section-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.destination-content p {
    margin: 0 0 1rem;
}

.destination-content img {
    border-radius: var(--sw-radius-sm);
    margin: 1.5rem 0;
}

.destination-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--sw-neutral-200);
}

.destination-coords a {
    font-size: 0.9rem;
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 5rem 1rem;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.error-404__inner {
    max-width: 540px;
    margin: 0 auto;
}

.error-404__code {
    font-size: 6rem;
    font-weight: 700;
    color: var(--sw-primary);
    margin: 0;
    line-height: 1;
}

.error-404__title {
    font-size: 1.75rem;
    margin: 1rem 0;
}

.error-404__text {
    color: var(--sw-text-muted);
    margin-bottom: 2rem;
}

.error-404__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .card-grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .archive-layout,
    .destination-layout {
        grid-template-columns: 1fr;
    }

    .archive-sidebar,
    .destination-sidebar {
        order: 2;
    }
}

@media (max-width: 768px) {
    .card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 560px) {
    .card-grid--3,
    .card-grid--4 {
        grid-template-columns: 1fr;
    }
}
