/* ==========================================================================
   USED TENTS - LISTING & DETAIL PAGE STYLES
   Theme: ITM (Indian Tent Manufacturer)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. USED TENTS LISTING PAGE
   -------------------------------------------------------------------------- */
.used-tents-listing-section {
    width: 100%;
    padding: 50px 0 90px;
    background-color: var(--bg-white, #FFFFFF);
    overflow: hidden;
}

.used-tents-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header matching Theme Design System */
.used-tents-header {
    text-align: center;
    margin-bottom: 65px;
    padding: 0 15px;
}

.used-tents-header-logo {
    display: block;
    margin: 0 auto 12px auto;
    width: 60px;
    height: auto;
    object-fit: contain;
}

.used-tents-tagline {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: #18171C;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
    text-transform: capitalize;
}

.used-tents-main-title {
    font-family: 'Lora', serif;
    font-size: 40px;
    font-weight: 400;
    color: #18171C;
    text-transform: uppercase;
    line-height: 1.28;
    max-width: 920px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}

/* Grid of Cards */
.used-tents-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (min-width: 1280px) {
    .used-tents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* Single Card */
.used-tent-card {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f1efeb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.used-tent-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.14);
}

.used-tent-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.used-tent-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.used-tent-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.65) 100%);
    transition: background 0.4s ease;
}

.used-tent-card:hover .used-tent-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(0, 0, 0, 0.75) 100%);
}

/* WhatsApp Share Button */
.whatsapp-share-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    color: #18171C;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-share-btn .wa-icon {
    font-size: 17px;
    color: #25D366;
    transition: transform 0.3s ease, color 0.3s ease;
}

.whatsapp-share-btn:hover {
    background: #25D366;
    color: #FFFFFF;
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.whatsapp-share-btn:hover .wa-icon {
    color: #FFFFFF;
    transform: rotate(10deg);
}

/* Centered Title */
.used-tent-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    z-index: 4;
}

.used-tent-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.3;
    color: #FFFFFF;
    text-transform: uppercase;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.used-tent-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.used-tent-card:hover .used-tent-title a {
    color: #FFFFFF;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   2. USED TENTS DETAIL PAGE & GALLERY SHOWCASE
   -------------------------------------------------------------------------- */
.gallery-showcase-section.used-tent-detail-section {
    width: 100%;
    padding: 50px 0 85px;
    background-color: var(--bg-white, #FFFFFF);
    overflow: hidden;
}

.gallery-showcase-container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Detail Page Header Matching Design */
.used-tent-detail-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 55px;
    padding-top: 10px;
}

.used-tent-detail-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.used-tent-detail-flourish {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.used-tent-detail-title {
    font-family: 'Lora', serif !important;
    font-size: 42px;
    font-weight: 400 !important;
    line-height: 1.25;
    letter-spacing: 0.5px;
    color: #18171C;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
}

.used-tent-detail-title .tent-title-line {
    display: block;
}

.used-tent-detail-title .gallery-title-line {
    display: block;
    margin-top: 4px;
}

.gallery-showcase-heading {
    max-width: 930px;
    margin: 0 auto 55px;
    text-align: center;
}

.gallery-showcase-subtitle {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #404093;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.gallery-showcase-title {
    font-family: 'Lora', serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    color: #18171C;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.gallery-showcase-desc {
    max-width: 850px;
    margin: 0 auto;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
}

.gallery-row.gallery-row-2.gallery-row-two {
    grid-template-columns: 1fr 2fr !important;
}

/* Gallery Alternating Grid Rows */
.gallery-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
    align-items: stretch;
}

.gallery-card {
    width: 100%;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 4px;
}

.gallery-card img {
    width: 100%;
    height: 560px;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
    transform: scale(1.03);
}

.gallery-big {
    align-self: start;
}

.gallery-small {
    align-self: start;
}

.gallery-row:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   3. PAGINATION (LISTING PAGE)
   -------------------------------------------------------------------------- */
.pagination-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.navigation.pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 30px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #18171C;
    background-color: #F5F5F5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
    background-color: #CBAA6A;
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   4. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .used-tent-card {
        height: 420px;
    }

    .used-tent-title {
        font-size: 28px;
    }

    .gallery-card img {
        height: 480px;
    }

    .gallery-showcase-title {
        font-size: 38px;
    }
}

@media (max-width: 991px) {
    .used-tents-listing-section {
        padding: 40px 0 70px;
    }

    .used-tents-main-title {
        font-size: 34px;
    }

    .used-tents-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        max-width: 680px;
        margin: 0 auto;
    }

    .used-tent-card {
        height: 400px;
    }

    .gallery-row,
    .gallery-row.gallery-row-two,
    .gallery-row:nth-child(even) {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .gallery-card img {
        height: 420px;
    }
}

@media (max-width: 767px) {
    .used-tent-detail-header {
        margin-bottom: 35px;
    }

    .used-tent-detail-flourish {
        width: 60px;
    }

    .used-tent-detail-title {
        font-size: 28px !important;
    }

    .used-tents-header {
        margin-bottom: 40px;
    }

    .used-tents-main-title {
        font-size: 28px;
    }

    .used-tents-tagline {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .used-tents-desc {
        font-size: 14px;
    }

    .used-tent-card {
        height: 330px;
        border-radius: 14px;
    }

    .used-tent-title {
        font-size: 23px;
        letter-spacing: 1px;
    }

    .whatsapp-share-btn {
        top: 15px;
        right: 15px;
        padding: 7px 14px;
        font-size: 12px;
    }

    .whatsapp-share-btn .wa-icon {
        font-size: 15px;
    }

    .gallery-showcase-title {
        font-size: 30px;
    }

    .gallery-card img {
        height: 340px;
    }
}

@media (max-width: 480px) {
    .used-tent-detail-flourish {
        width: 50px;
    }

    .used-tent-detail-title {
        font-size: 22px !important;
    }

    .used-tents-listing-section {
        padding: 30px 0 55px;
    }

    .used-tents-main-title {
        font-size: 24px;
    }

    .used-tent-card {
        height: 280px;
        border-radius: 12px;
    }

    .used-tent-title {
        font-size: 20px;
    }

    .whatsapp-share-btn {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
        font-size: 11px;
    }

    .gallery-showcase-title {
        font-size: 26px;
    }

    .gallery-card img {
        height: 280px;
    }
}