/* ==========================================================================
   OTA Pages — Shared design system for Attractions, Stays, Experiences
   ========================================================================== */

/* --- Page Section Wrapper --- */
.ota-page-section {
    padding: 60px 0 100px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(29, 127, 95, 0.07), transparent 40%),
        radial-gradient(ellipse at 90% 100%, rgba(215, 168, 95, 0.05), transparent 40%),
        linear-gradient(180deg, #f8fcfa 0%, #ffffff 50%);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.ota-page-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    padding: 20px 0 50px;
}

.ota-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(29, 127, 95, 0.1), rgba(29, 127, 95, 0.05));
    color: var(--ota-accent-strong, #145944);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.ota-page-kicker i {
    font-size: 14px;
}

.ota-page-hero-title {
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--ota-title, #17352d);
}

.ota-page-hero-lead {
    font-size: 17px;
    line-height: 1.72;
    color: var(--ota-muted, #61756f);
    max-width: 58ch;
    margin: 0 0 32px;
}

/* Hero Stats */
.ota-page-hero-stats {
    display: flex;
    gap: 24px;
}

.ota-page-stat {
    padding: 16px 22px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(29, 127, 95, 0.1);
    box-shadow: 0 8px 24px rgba(17, 53, 46, 0.05);
    min-width: 120px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ota-page-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(17, 53, 46, 0.09);
}

.ota-page-stat strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--ota-accent, #1d7f5f);
    line-height: 1.1;
    margin-bottom: 4px;
}

.ota-page-stat span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ota-muted, #61756f);
    letter-spacing: 0.02em;
}

/* Hero Visual — Floating cards */
.ota-page-hero-visual {
    display: grid;
    gap: 16px;
}

.ota-page-hero-card {
    padding: 22px 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(29, 127, 95, 0.08);
    box-shadow: 0 12px 32px rgba(17, 53, 46, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.ota-page-hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--ota-accent, #1d7f5f), var(--ota-accent-warm, #d7a85f));
    border-radius: 4px 0 0 4px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ota-page-hero-card:hover {
    transform: translateX(6px);
    box-shadow: 0 18px 42px rgba(17, 53, 46, 0.1);
}

.ota-page-hero-card:hover::before {
    opacity: 1;
}

.ota-page-hero-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(29, 127, 95, 0.08);
    color: var(--ota-accent, #1d7f5f);
    font-size: 18px;
    margin-bottom: 12px;
}

.ota-page-hero-card h3 {
    font-size: 18px;
    margin: 0 0 6px;
    color: var(--ota-title, #17352d);
}

.ota-page-hero-card p {
    font-size: 14px;
    color: var(--ota-muted, #61756f);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   TOOLBAR — Search + Category Tabs
   ========================================================================== */
.ota-page-toolbar {
    padding: 28px 32px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(29, 127, 95, 0.08);
    box-shadow: 0 16px 40px rgba(17, 53, 46, 0.06);
    margin-bottom: 28px;
    display: grid;
    gap: 20px;
}

.ota-inline-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 16px;
    background: #f6faf8;
    border: 1px solid rgba(29, 127, 95, 0.1);
}

.ota-inline-search i {
    color: var(--ota-muted, #61756f);
    font-size: 16px;
    margin-left: 6px;
    flex-shrink: 0;
}

.ota-inline-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 10px 8px;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--ota-title, #17352d);
}

.ota-inline-search input::placeholder {
    color: var(--ota-muted, #61756f);
    font-weight: 400;
}

.ota-inline-search input:focus {
    outline: none;
}

.ota-inline-search .th-btn {
    flex-shrink: 0;
    padding: 10px 22px;
    font-size: 14px;
}

/* Category Tabs */
.ota-page-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ota-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: 999px;
    background: #f3f8f6;
    border: 1px solid transparent;
    color: var(--ota-text, #29453d);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ota-tab:hover {
    background: #e6f2ed;
    color: var(--ota-accent, #1d7f5f);
}

.ota-tab.is-active {
    background: var(--ota-accent, #1d7f5f);
    color: #ffffff;
    border-color: var(--ota-accent, #1d7f5f);
}

/* ==========================================================================
   RESULTS INFO
   ========================================================================== */
.ota-page-results-info {
    margin-bottom: 24px;
}

.ota-page-results-info p {
    font-size: 15px;
    color: var(--ota-muted, #61756f);
    margin: 0;
}

.ota-page-results-info a {
    color: var(--ota-accent, #1d7f5f);
    font-weight: 600;
    text-decoration: none;
}

.ota-page-results-info a:hover {
    text-decoration: underline;
}

.ota-stays-results-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ota-stays-plan-shortcut .th-btn i {
    margin-right: 6px;
}

/* ==========================================================================
   CARD GRID
   ========================================================================== */
.ota-card-grid {
    display: grid;
    gap: 26px;
    margin-bottom: 60px;
}

.ota-card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ota-card-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ==========================================================================
   CARD
   ========================================================================== */
.ota-card {
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(29, 127, 95, 0.08);
    box-shadow: 0 12px 32px rgba(17, 53, 46, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ota-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(17, 53, 46, 0.12);
}

/* Card Image */
.ota-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #edf7f3;
}

.ota-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.ota-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #93b4a6;
    font-size: 40px;
}

.ota-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--ota-title, #17352d);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card Body */
.ota-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ota-card-cats {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ota-accent, #1d7f5f);
    margin-bottom: 8px;
}

.ota-card-title {
    font-size: 20px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.ota-card-title a {
    color: var(--ota-title, #17352d);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ota-card-title a:hover {
    color: var(--ota-accent, #1d7f5f);
}

.ota-card-location {
    font-size: 14px;
    color: var(--ota-muted, #61756f);
    font-weight: 600;
    margin: 0 0 10px;
}

.ota-card-location i {
    color: var(--ota-accent, #1d7f5f);
    margin-right: 5px;
    font-size: 13px;
}

.ota-card-excerpt {
    font-size: 14px;
    line-height: 1.65;
    color: var(--ota-text, #29453d);
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta Tags */
.ota-card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ota-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #f3f8f6;
    color: var(--ota-text, #29453d);
    font-size: 12px;
    font-weight: 600;
}

.ota-card-meta span i {
    color: var(--ota-accent, #1d7f5f);
    font-size: 11px;
}

/* Card Footer */
.ota-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(29, 127, 95, 0.08);
    margin-top: auto;
}

.ota-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--ota-accent, #1d7f5f);
}

.ota-card-footer .th-btn {
    padding: 9px 18px;
    font-size: 13px;
}

.ota-card-footer .th-btn i {
    margin-right: 5px;
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.ota-empty-state {
    text-align: center;
    padding: 60px 32px;
    border-radius: 24px;
    background: #ffffff;
    border: 2px dashed rgba(29, 127, 95, 0.15);
    margin-bottom: 60px;
}

.ota-empty-state i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #edf7f3;
    color: var(--ota-accent, #1d7f5f);
    font-size: 26px;
    margin-bottom: 20px;
}

.ota-empty-state h3 {
    font-size: 22px;
    margin: 0 0 10px;
}

.ota-empty-state p {
    color: var(--ota-muted, #61756f);
    max-width: 48ch;
    margin: 0 auto 22px;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.ota-page-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 44px 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #14423a 0%, #1d6b52 50%, #1a7d5e 100%);
    position: relative;
    overflow: hidden;
}

.ota-page-cta::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.ota-page-cta::after {
    content: "";
    position: absolute;
    bottom: -40%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(215, 168, 95, 0.06);
}

.ota-page-cta-content {
    position: relative;
    z-index: 1;
}

.ota-page-cta .sub-title,
.ota-page-cta .sec-title,
.ota-page-cta p {
    color: #ffffff;
}

.ota-page-cta .sub-title {
    opacity: 0.8;
}

.ota-page-cta .sec-title {
    font-size: clamp(22px, 2.5vw, 32px);
    margin: 8px 0 12px;
}

.ota-page-cta p {
    opacity: 0.85;
    max-width: 50ch;
    margin: 0;
    line-height: 1.7;
}

.ota-page-cta-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ota-page-cta-actions .th-btn {
    white-space: nowrap;
}

.ota-page-cta-actions .th-btn.style3 {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.ota-page-cta-actions .th-btn.style3:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1399px) {
    .ota-card-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .ota-page-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ota-page-hero-visual {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .ota-page-hero-visual {
        grid-template-columns: 1fr;
    }

    .ota-page-hero-stats {
        flex-wrap: wrap;
    }

    .ota-page-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
    }

    .ota-page-cta-actions {
        flex-wrap: wrap;
    }

    .ota-page-toolbar {
        padding: 20px;
    }

    .ota-stays-results-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .ota-page-section {
        padding: 40px 0 60px;
    }

    .ota-page-hero {
        padding: 10px 0 30px;
    }

    .ota-page-hero-title {
        font-size: 30px;
    }

    .ota-card-grid--3,
    .ota-card-grid--2 {
        grid-template-columns: 1fr;
    }

    .ota-page-hero-stats {
        gap: 12px;
    }

    .ota-page-stat {
        padding: 12px 16px;
        min-width: auto;
        flex: 1;
    }

    .ota-page-stat strong {
        font-size: 20px;
    }

    .ota-inline-search {
        flex-wrap: wrap;
    }

    .ota-inline-search input {
        min-width: 100%;
    }

    .ota-inline-search .th-btn {
        width: 100%;
    }

    .ota-page-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .ota-page-tabs::-webkit-scrollbar {
        display: none;
    }

    .ota-card-body {
        padding: 18px 20px 20px;
    }

    .ota-page-cta {
        padding: 26px;
    }

    .ota-page-cta .sec-title {
        font-size: 22px;
    }

    .ota-empty-state {
        padding: 40px 20px;
    }
}
