/* ============================================
   OFFERS PAGE - SPECIFIC STYLES
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 60px 0 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Filters Section */
.filters-section {
    background: var(--white);
    padding: 25px 0;
    border-bottom: 1px solid var(--gray);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(97, 47, 137, 0.1);
}

.filter-reset {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.results-count {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.results-count span {
    font-weight: 700;
    color: var(--purple);
}

/* Offers List Section */
.offers-list-section {
    padding: 40px 0 60px;
    background: var(--gray-light);
    min-height: 50vh;
}

.offers-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Offer Card Image */
.offer-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--gray-light);
}

.offer-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.offer-card:hover .offer-card-image img {
    transform: scale(1.05);
}

.offer-card-image .offer-badge-new,
.offer-card-image .offer-badge-urgent {
    position: absolute;
    top: 12px;
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-card-image .offer-badge-new {
    left: 12px;
    background: var(--purple);
    color: white;
}

.offer-card-image .offer-badge-urgent {
    right: 12px;
    background: #dc3545;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Offer Card - Extended for Full Page */
.offers-grid-full .offer-card {
    display: flex;
    flex-direction: column;
}

.offers-grid-full .offer-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.offers-grid-full .offer-card-link:hover {
    color: inherit;
}

.offers-grid-full .offer-card-header {
    position: relative;
}

.offers-grid-full .offer-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offers-grid-full .offer-card-title {
    flex: 1;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: 16px;
    text-align: center;
}

.cta-box h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-dark);
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

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

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .filters-section {
        position: static;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .offers-grid-full {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h2 {
        font-size: 1.4rem;
    }
}

/* ============================================
   SINGLE OFFER PAGE STYLES
   ============================================ */

.offer-single {
    padding: 40px 0;
    background: var(--gray-light);
}

.offer-single-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.offer-main {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.offer-image-hero {
    width: 100%;
    aspect-ratio: 1200 / 630;
    object-fit: cover;
}

.offer-content {
    padding: 30px;
}

.offer-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.offer-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.offer-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.offer-meta-item svg {
    width: 18px;
    height: 18px;
    fill: var(--purple);
}

.offer-description {
    line-height: 1.8;
}

.offer-description h2,
.offer-description h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--purple);
}

.offer-description ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.offer-description li {
    margin-bottom: 8px;
    list-style: disc;
}

/* Sidebar */
.offer-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
}

.sidebar-cta h3 {
    color: var(--white);
}

.sidebar-cta p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.sidebar-cta .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.sidebar-cta .btn:last-child {
    margin-bottom: 0;
}

.sidebar-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.sidebar-info-item .label {
    color: var(--gray-dark);
}

.sidebar-info-item .value {
    font-weight: 600;
    color: var(--dark);
}

/* Reservation Badge */
.reservation-badge {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reservation-badge.available {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.reservation-badge.partial {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.reservation-badge.full {
    background: #f8d7da;
    border: 2px solid #dc3545;
    color: #721c24;
}

.reservation-badge .icon {
    font-size: 1.5rem;
}

.reservation-badge .text {
    font-weight: 600;
}

.reservation-badge .places {
    font-size: 0.85rem;
    font-weight: normal;
}

@media (max-width: 900px) {
    .offer-single-container {
        grid-template-columns: 1fr;
    }

    .offer-sidebar {
        position: static;
    }
}
