/* ═══════════════════════════════════════════════════════════
   SEARCH.CSS — Search Results Page
   Matches hotel/pages design language (teal, gold, cream)
   Prefix: sr- (search results)
   ═══════════════════════════════════════════════════════════ */

.sr-page {
    background: #fff;
}

/* ═════════ HERO SECTION ═════════ */
.sr-hero {
    background: linear-gradient(135deg, #1C3D3C 0%, #2a5654 60%, #1C3D3C 100%);
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #F5F2EC;
    overflow: hidden;
}

.sr-hero .container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--container-padding, 1.5rem);
}

.sr-hero-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.sr-hero-title span {
    color: #c4b697;
}

.sr-hero-subtitle {
    font-size: 1.0625rem;
    opacity: 0.8;
    margin: 0 0 2rem;
    line-height: 1.5;
}

/* ── Search Form (pill style) ── */
.sr-search-form {
    display: flex;
    max-width: 560px;
    margin: 0 auto;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.sr-search-input {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border: none;
    outline: none;
    background: #fff;
    color: #333;
    min-width: 0;
    font-family: inherit;
}

.sr-search-input::placeholder {
    color: #999;
}

.sr-search-submit {
    padding: 0.875rem 2rem;
    background: var(--theme-accent-dark);
    color: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--theme-transition);
    white-space: nowrap;
}

.sr-search-submit:hover {
    background: #6e6550;
}

/* ═════════ RESULTS SECTION ═════════ */
.sr-results {
    padding: 3.5rem 0 4rem;
}

.sr-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.sr-results-count {
    font-size: 0.9375rem;
    color: var(--theme-text);
}

.sr-results-count strong {
    color: var(--theme-primary);
    font-weight: 700;
}

/* ── Card Grid ── */
.sr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* ── Card ── */
.sr-card {
    display: block;
    background: #fff;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow var(--theme-transition), transform var(--theme-transition);
}

.sr-card:hover {
    box-shadow: var(--theme-shadow-lg);
    transform: translateY(-4px);
}

.sr-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--theme-bg-light);
}

.sr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sr-card:hover .sr-card-img img {
    transform: scale(1.06);
}

.sr-card-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(245, 242, 236, 0.92);
    backdrop-filter: blur(4px);
    color: var(--theme-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.75rem;
    border-radius: 2rem;
}

.sr-card-body {
    padding: 1.25rem;
}

.sr-card-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin: 0 0 0.5rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--theme-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--theme-text);
}

.sr-card-meta svg {
    color: var(--theme-primary);
    flex-shrink: 0;
}

/* ═════════ PAGINATION (themed override) ═════════ */
.sr-page .pagination {
    margin-top: 3rem;
}

.sr-page .pagination ul {
    justify-content: center;
}

.sr-page .pagination a,
.sr-page .pagination span {
    border-color: var(--theme-border);
    border-radius: var(--theme-radius-sm);
    color: var(--theme-text-dark);
    font-weight: 500;
    transition: all var(--theme-transition);
}

.sr-page .pagination a:hover {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
}

.sr-page .pagination .current {
    background: var(--theme-primary);
    border-color: var(--theme-primary);
    color: #fff;
    font-weight: 700;
}

/* ═════════ EMPTY STATE ═════════ */
.sr-empty {
    text-align: center;
    padding: 5rem 1.5rem 6rem;
    max-width: 560px;
    margin: 0 auto;
}

.sr-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--theme-border);
}

.sr-empty-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin: 0 0 0.75rem;
}

.sr-empty-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--theme-text);
    margin: 0 0 2rem;
}

.sr-empty .sr-search-form {
    box-shadow: 0 2px 16px rgba(28, 61, 60, 0.1);
}

/* ═════════ RESPONSIVE ═════════ */

/* Tablet */
@media (max-width: 1024px) {
    .sr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .sr-hero {
        height: 280px;
    }

    .sr-results {
        padding: 2.5rem 0 3rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .sr-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sr-hero {
        height: 180px;
    }

    .sr-hero-subtitle {
        margin-bottom: 1.5rem;
    }

    .sr-search-form {
        flex-direction: column;
        border-radius: var(--theme-radius);
    }

    .sr-search-input {
        border-radius: var(--theme-radius) var(--theme-radius) 0 0;
        text-align: center;
    }

    .sr-search-submit {
        border-radius: 0 0 var(--theme-radius) var(--theme-radius);
        padding: 0.875rem;
    }

    .sr-card-img {
        height: 180px;
    }

    .sr-results {
        padding: 2rem 0 2.5rem;
    }

    .sr-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sr-empty {
        padding: 3.5rem 1.5rem 4rem;
    }

    .sr-empty-icon {
        width: 64px;
        height: 64px;
    }
}

/* ── Star rating in search results ── */
.sr-card-body .hotel-stars {
    margin-bottom: 0.25rem;
}
.sr-card-body .hotel-stars .star-icon {
    width: 12px;
    height: 12px;
}
