/* Orange-inspired Design System */
:root {
    --primary-color: #ff6f12;
    --primary-hover: #e55a00;
    --secondary-color: #5dd39e;
    --tertiary-color: #348aa7;
    --secondary-gray: #F5F5F7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --border-light: #d2d2d7;
    --success-green: #34C759;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-button: 10px;
    --radius-card: 16px;
}

/* Header + Filter Module - Straight Edges */
.header-filter-module {
    margin: 0 0 40px 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #fff;
}

/* Integrated Header + Filter Module */
.archive-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin: 0;
    border-radius: 0;
    border: none;
    overflow: hidden;
    height: 300px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-header-overlay {
    background: linear-gradient(135deg, rgb(255 111 18 / 28%) 0%, rgb(255 117 28 / 75%) 100%);
    padding: 40px 20px;
    border-radius: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.archive-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 0;
}

.archive-header p {
    font-size: 1.2rem;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Explore button removed */

/* Integrated Filter - Part of Header Module */
.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

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

.filter-column h3 {
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0 0 12px 0 !important;
}

#destinations-column {
    transition: all 0.3s ease;
}

#destinations-column[style*="display: none"] {
    display: none !important;
}

/* Filter Tags - Compact Style */
.category-button,
.destination-button,
.budget-button {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid #e9ecef;
    line-height: 1.2;
}

.category-button:hover,
.destination-button:hover,
.budget-button:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #333;
}

.category-button.active {
    background: #5bc0de;
    color: #fff;
    border-color: #5bc0de;
}

.destination-button.active {
    background: #5cb85c;
    color: #fff;
    border-color: #5cb85c;
}

.budget-button.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
}

.budget-label {
    font-weight: 600 !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Archive Container */
.archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    width: 95%;
    box-sizing: border-box;
}

/* Mobile: Remove auto margin to prevent pushing outside screen */
@media (max-width: 768px) {
    .archive-container {
        margin: 0;
        width: calc(100% - 0px);
        padding: 0 20px;
        max-width: none;
    }
}

/* Hotel Cards - Modern Boutique Design */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 40px;
    width: 100%;
    margin-top: 56px;
}

.post-item {
    background: transparent;
    border: none;
    overflow: visible;
    box-shadow: none;
    transition: all 0.2s ease;
    position: relative;
    display: block;
    width: 100%;
    min-height: 320px;
    margin-bottom: 40px;
    clear: both;
}

.post-item:hover {
    transform: none;
}

.post-item:after {
    content: "";
    display: table;
    clear: both;
}

/* Image Container - Circular Design */
.post-item .img-container {
    width: 35%;
    float: left;
    margin-left: 0;
    padding: 10px 0;
}

.post-item .img-container .img {
    display: block;
    width: 100%;
    border-radius: 50%;
    transition: border-radius 200ms ease-out;
    overflow: hidden;
}



.post-item .img-container .img-sizer {
    display: block;
    width: 100%;
    height: 0;
    padding-top: 100%;
    position: relative;
    background: #f1f1f1;
    border-radius: 50%;
    overflow: hidden;
}

.post-item .img-container .img-sizer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f1f1f1;
}

/* Fallback for hotel archive structure — scoped to .post-item so blog .post-card is untouched */
.post-item .post-image {
    width: 300px;
    height: 300px;
    float: left;
    margin-left: 0;
    margin-right: 20px;
    padding: 10px 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.post-item .post-image img {
    display: block;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    transition: border-radius 200ms ease-out;
    object-fit: cover;
    background-color: #f1f1f1;
}

.post-item:hover .post-image img {
    border-radius: 10px;
}

.position-number {
    display: none;
}

/* Content Area - Right Side */
.post-item .info {
    width: 65%;
    float: left;
    padding-left: 8%;
    padding-right: 6%;
}

.post-item .info .name {
    margin-bottom: 20px;
}

.post-item .info .name.with-stars {
    margin-bottom: 5px;
}

.post-item .info .name span.featured {
    font-size: 12px;
    color: #e66500;
    float: right;
    margin-left: 10px;
}

/* Fallback for hotel archive structure — scoped to .post-item (blog cards must not inherit margin-left) */
.post-item .post-content {
    margin-left: 340px; /* 300px image + 20px margin + 20px padding */
    padding: 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}



/* Featured Badge */
.post-item .info .name span.featured {
    font-size: 12px;
    color: #e66500;
    float: right;
    margin-left: 10px;
}

/* Featured Badge */
.featured-badge {
    font-size: 12px;
    color: #e66500;
    float: right;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Hotel Title - Large & Bold */
.post-item .post-content h2 {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-size: 28px;
    margin-bottom: 5px;
    line-height: 1.2;
    margin-top: 0;
}

.post-item .post-content h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-item .post-content h2 a:hover {
    color: #08c;
    text-decoration: none;
}

/* City/Location */
.city-name {
    font-size: 18px;
    font-style: italic;
    margin: 0 0 15px 0;
    color: #666;
}

/* Star Rating - Original Structure */
.post-grade {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.post-grade .star {
    color: #ff9d00;
    font-size: 16px;
}

.post-grade .rating-text {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    margin-left: 5px;
}

/* Description - Original Structure */
.post-summary {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.post-excerpt {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
}

/* Facilities - Original Structure */
.post-pros {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-pros li {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-pros li .checkbox {
    color: #fff;
    font-weight: bold;
}



/* Modern CTA Buttons */
.post-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.post-buttons .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.1s ease;
    border: none;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    line-height: 20px;
}

/* Primary CTA - Green */
.post-buttons .check-availability {
    background: #4cc947;
    color: #fff;
    box-shadow: #45bb40 0 3px 0;
    margin-bottom: 3px;
}

.post-buttons .check-availability:hover {
    background: #45bb40;
    box-shadow: #37A832 0 3px 0;
    color: #fff;
}

/* Secondary CTA - Gray */
.post-buttons .read-more {
    background: #aaa;
    color: #fff;
    box-shadow: #9e9e9e 0 3px 0;
    margin-bottom: 3px;
}

.post-buttons .read-more:hover {
    background: #a0a0a0;
    box-shadow: #8d8d8d 0 3px 0;
    color: #fff;
}

.post-buttons .button img {
    margin-right: 8px;
    filter: brightness(0) invert(1);
    width: 18px;
    height: 18px;
}

/* Pagination */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span,
.pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 10px 16px;
    background: var(--secondary-gray);
    color: var(--text-primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border-light);
}

.pagination a:hover,
.pagination .current,
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary-color);
    color: #000;
    font-weight: 600;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* Description Section */
.hotel-selection-description {
    max-width: 90vw;
    margin: 40px auto;
    padding: 32px;
    background: #fff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hotel-selection-description h2,
.hotel-selection-description h3 {
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.hotel-selection-description p {
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-filter-module {
        margin: 0 0 20px 0;
        border-radius: 0;
    }

    .archive-header {
        height: 250px !important;
        min-height: 250px !important;
    }

    .archive-header-overlay {
        padding: 20px 16px;
        background: linear-gradient(135deg, rgb(255 111 18 / 28%) 0%, rgb(255 117 28 / 75%) 100%);
    }

    .archive-header-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .archive-header h1 {
        font-size: 2rem !important;
        margin-bottom: 10px !important;
        line-height: 1.1 !important;
    }

    .archive-header p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
    }

    /* Filter module mobile styling */
    .filter-module {
        padding: 12px 16px !important;
        margin: 0 16px 16px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .filter-row {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .filter-group {
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .filter-group label {
        font-size: 0.8rem !important;
        margin-bottom: 4px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }

    .filter-group select {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
        border: 1px solid #ddd !important;
        background: white !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .price-filter-group {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .price-filter-group .filter-group {
        width: 100% !important;
    }

    .posts-grid {
        gap: 16px;
    }

    /* Mobile Hotel Cards - Stack Layout */
    .post-item {
        display: block;
        min-height: auto;
        margin-bottom: 30px;
        text-align: center;
    }

    .post-item .post-image {
        width: 100%;
        height: 250px;
        margin: 0 auto 20px auto;
        border-radius: 10px;
        overflow: hidden;
        float: none;
    }

    .post-item .post-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .post-item .post-content {
        width: 100%;
        padding: 20px;
        margin-left: 0;
        min-height: auto;
        text-align: left;
    }

    .post-item .post-content h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .city-name {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    /* Mobile Button Fixes */
    .post-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 16px;
    }

    .post-buttons .button,
    .post-buttons a.button {
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
        width: 100%;
    }

    .check-availability {
        max-width: 100%;
        box-sizing: border-box;
    }

    .read-more-btn,
    .read-more {
        max-width: 100%;
        box-sizing: border-box;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Extra safety for all buttons on mobile */
    .post-item .button,
    .post-item a.button,
    .post-item .read-more,
    .post-item .check-availability {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 10px 16px !important;
        font-size: 0.85rem !important;
        margin: 0 !important;
        display: block !important;
        margin-top: 10px !important;
    }

    .posts-grid {
        gap: 40px;
        margin-top: 20px;
    }

    .filter-container {
        margin: 0 16px 32px;
        flex-direction: column;
        gap: 20px;
    }

    .filter-column {
        min-width: auto;
    }

    .filter-column h3 {
        margin-bottom: 8px !important;
    }

    .post-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .post-buttons .button {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .post-item .post-image {
        width: 280px;
        min-width: 280px;
    }

    .post-item .post-content {
        padding: 24px;
    }

    .post-item .post-content h2 {
        font-size: 1.5rem;
    }
}

