/**
 * Tugra Travel Offers Archive Styles
 * Bulgarian Travel Offers with Filterable Grid
 */

/* Archive Container */
.tugra-offers-archive {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
}

.archive-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* No filters mode - full width grid */
.archive-container.no-filters {
    gap: 0;
}

.archive-container.no-filters .archive-offers {
    flex: 1;
    max-width: 100%;
}

/* Filters Sidebar - 1/4 width on desktop */
.archive-filters {
    flex: 0 0 25%;
    background: #ffffff;
    border-radius: 0;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.filters-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.reset-filters {
    background: none;
    border: none;
    color: #C79900;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 0;
    transition: background 0.2s;
}

.reset-filters:hover {
    background: #f5f5f5;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.filter-group input[type="number"],
.filter-group input[type="date"],
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #C79900;
}

/* Price Range Inputs */
.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range-inputs input {
    flex: 1;
}

.range-separator {
    color: #999;
    font-weight: 500;
}

.price-unit {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.2s;
}

.checkbox-label:hover {
    color: #C79900;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #C79900;
}

/* Apply Filters Button */
.apply-filters-btn {
    width: 100%;
    padding: 12px 20px;
    background: #C79900;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.apply-filters-btn:hover {
    background: #B08800;
}

/* Offers Section - 3/4 width on desktop */
.archive-offers {
    flex: 1;
}

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.offers-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.count-number {
    font-size: 28px;
    font-weight: 700;
    color: #C79900;
}

.count-text {
    font-size: 14px;
    color: #666;
}

.offers-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offers-sort label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.offers-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
}

/* Loading State */
.offers-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C79900;
    border-radius: 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.offers-loading p {
    color: #666;
    font-size: 16px;
}

/* Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* Offers Grid - 4 columns when no filters */
.archive-container.no-filters .offers-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Offer Card */
.offer-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.offer-card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.offer-card-image a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.offer-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.offer-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-card-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.offer-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.offer-card-title a:hover {
    color: #C79900;
}

.offer-card-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    flex: 1;
}

.offer-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.208vw;
    color: #000;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #000;
}

.meta-item svg {
    flex-shrink: 0;
    color: #C79900;
}

.meta-item strong {
    color: #000;
}

.travel-types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.travel-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    border-radius: 0;
}

.offer-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.price-label {
    font-size: 13px;
    color: #666;
}

.price-amount {
    font-size: 18px;
    font-weight: 700;
    color: #C79900;
    line-height: 1.3;
}

.offer-card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    background: #C79900;
    color: #fff;
    text-decoration: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.offer-card-cta:hover {
    background: #B08800;
}

.offer-card-cta svg {
    transition: transform 0.2s;
}

.offer-card-cta:hover svg {
    transform: translateX(4px);
}

/* No Offers State */
.no-offers {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 0;
    grid-column: 1 / -1;
}

.no-offers p {
    font-size: 16px;
    color: #666;
    margin-bottom: 16px;
}

.reset-filters-link {
    background: #C79900;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.reset-filters-link:hover {
    background: #B08800;
}

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

.pagination-info {
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.pagination-info .shown-count,
.pagination-info .total-count {
    font-weight: 700;
    color: #333;
}

.load-more-btn {
    padding: 14px 32px;
    background: #fff;
    color: #C79900;
    border: 2px solid #C79900;
    border-radius: 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: #C79900;
    color: #fff;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .archive-container {
        flex-direction: column-reverse;
    }

    .archive-filters {
        flex: 1 0 auto;
        width: 100%;
        position: static;
        max-height: none;
        margin-top: 30px;
    }

    .archive-offers {
        width: 100%;
    }

    .offers-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    /* 3 columns on tablet landscape when no filters */
    .archive-container.no-filters .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tugra-offers-archive {
        padding: 15px;
    }

    .offers-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .offers-count {
        width: 100%;
    }

    .offers-sort {
        width: 100%;
    }

    .offers-sort select {
        flex: 1;
    }

    .offers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 2 columns on tablet when no filters */
    .archive-container.no-filters .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-filters {
        padding: 20px;
    }

    .filters-header h3 {
        font-size: 18px;
    }

    .count-number {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .offer-card-title {
        font-size: 16px;
    }

    .price-amount {
        font-size: 20px;
    }

    .archive-filters {
        padding: 16px;
    }

    .filter-group {
        gap: 6px;
    }

    /* 1 column on mobile when no filters */
    .archive-container.no-filters .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* Taxonomy Archive Styles */
.taxonomy-archive-header {
    position: relative;
    width: 100%;
    height: 35vh;
    margin-top: -10.21vw;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.taxonomy-archive-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px 0px;
}

.taxonomy-archive-overlay .container {
    max-width: 85%;
    margin: 0 auto;
    width: 100%;
}

h1.archive-title {
    color: #FFFFFF;
    font-family: "Gotham Pro", sans-serif;
    font-weight: 700;
    font-size: 4.17vw;
    line-height: normal;
    text-align: left;
    margin: 0 0 10px 0;
}

.taxonomy-archive-header .archive-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    max-width: 800px;
}

.taxonomy-archive-content {
    width: 85%;
    margin: 0 auto;
}

/* Mobile Responsive for Taxonomy Archive */
@media (max-width: 768px) {
    .taxonomy-archive-header {
        height: 25vh;
        margin-top: -15vw;
    }

    h1.archive-title {
        font-size: 6vw;
    }

    .taxonomy-archive-header .archive-description {
        font-size: 14px;
    }

    .taxonomy-archive-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .taxonomy-archive-header {
        height: 20vh;
        margin-top: -20vw;
    }

    h1.archive-title {
        font-size: 7vw;
    }

    .taxonomy-archive-overlay {
        padding: 20px 15px;
    }

    .taxonomy-archive-header .archive-description {
        font-size: 13px;
    }

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

/* Destinations Slider Styles */
.tugra-destinations-slider {
    width: 100%;
    max-width: 100%;
    margin: 0px auto;
    position: relative;
}

.destinations-slider-container {
    width: 100%;
    overflow: hidden;
}

.destinations-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.destination-slide {
    flex: 0 0 25%; /* 4 columns on desktop (100% / 4) */
    padding: 0 10px;
    box-sizing: border-box;
}

.destination-card {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.destination-image {
    width: 100%;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.destination-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    padding: 20px;
    display: flex;
    align-items: flex-end;
    padding-top: 20%;
}

.destination-name {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    font-family: "Gotham Pro", sans-serif;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot:hover {
    background: #bbb;
}

.slider-dot.active {
    background: #C79900;
    width: 30px;
    border-radius: 6px;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .destination-slide {
        flex: 0 0 33.333%; /* 3 columns on tablet */
    }

    .destination-name {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .destination-slide {
        flex: 0 0 50%; /* 2 columns on small tablet */
    }

    .destination-name {
        font-size: 15px;
    }

    .destination-overlay {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .destination-slide {
        flex: 0 0 100%; /* 1 column on mobile */
    }

    .destination-name {
        font-size: 16px;
    }

    .tugra-destinations-slider {
        margin: 20px auto;
    }

    .destination-overlay {
        padding: 12px;
    }
}

/* Destinations List Layout Styles - 3 Column Grid */
.tugra-destinations-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5%;
}

.destination-list-item {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    gap: 0px;
}

.destination-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.destination-list-image {
    flex: 0 0 30%;
    min-height: 150px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.destination-list-content {
    flex: 1;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.destination-list-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

.destination-list-offers {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.destination-list-offers strong {
    color: #333;
    font-weight: 600;
}

@media (max-width: 992px) {
    .tugra-destinations-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tugra-destinations-list {
        grid-template-columns: 1fr;
    }

    .destination-list-item {
        gap: 3%;
    }

    .destination-list-content {
        padding: 15px;
    }

    .destination-list-title {
        font-size: 20px;
    }

    .destination-list-offers {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .destination-list-item {
        flex-direction: column;
        gap: 0;
    }

    .destination-list-image {
        flex: 0 0 auto;
        width: 100%;
        padding-top: 60%;
    }

    .destination-list-content {
        padding: 15px;
    }

    .destination-list-title {
        font-size: 18px;
    }
}

/* Hotel Cards Star Rating */
.hotel-card .stars-rating {
    display: inline-flex;
    gap: 2px;
    font-size: 16px;
}

.hotel-card .star {
    color: #ddd;
}

.hotel-card .star.filled {
    color: #FFD700;
}

.hotel-card .address-meta {
    color: #666;
    font-size: 14px;
}
