/* ============================================================
   Plan Your Trip - Single Page Row Layout
   Full-image overlay cards matching site design system
   ============================================================ */

/* ---- Hero Section ---- */
.pyt-hero {
    min-height: 450px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.pyt-hero::before {
    content: "";
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 100%);
    position: absolute;
    inset: 0;
    z-index: 0;
}
.pyt-hero .container {
    position: relative;
    z-index: 1;
    color: #fff;
}
.pyt-hero-content {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 90px;
}
.pyt-hero-content .inner-sub-head {
    font-family: "Caveat", cursive;
    font-size: 40px;
    font-weight: 400;
    color: #D4620F;
    display: block;
    margin-bottom: 6px;
}
.pyt-hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.15;
}
.pyt-hero-content p {
    font-size: 18px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

/* ============================================================
   Section Rows
   ============================================================ */
.pyt-section {
    position: relative;
}
.pyt-section-header {
    margin-bottom: 40px;
}
.pyt-section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #191D26;
    margin-bottom: 8px;
    line-height: 1.2;
}
.pyt-section-header p {
    font-size: 16px;
    color: #777;
    margin: 0;
    line-height: 1.6;
}
.pyt-section-header .inner-sub-head {
    font-family: "Caveat", cursive;
    font-size: 32px;
    font-weight: 400;
    color: #D4620F;
    display: block;
    margin-bottom: 2px;
}

/* ============================================================
   Full-Image Overlay Cards (matching luxury-holiday-itm pattern)
   ============================================================ */
.pyt-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.pyt-card-grid.pyt-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pyt-img-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s;
}
.pyt-img-card-wrap {
    position: relative;
    overflow: hidden;
    padding-bottom: 130%;
}
.pyt-img-card-wrap img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.pyt-img-card:hover .pyt-img-card-wrap img {
    transform: scale(1.08);
}
.pyt-img-card-info {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 112.26%);
    color: #fff;
    padding: 50px 25px 25px 25px;
    z-index: 1;
}
.pyt-img-card-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.pyt-img-card-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.5;
}

/* Selection State */
.pyt-img-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 3px solid transparent;
    transition: border-color 0.3s ease;
    z-index: 2;
    pointer-events: none;
}
.pyt-img-card.selected::after {
    border-color: #D4620F;
}

/* Checkmark Badge */
.pyt-card-check {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: #D4620F;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.4);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pyt-img-card.selected .pyt-card-check {
    opacity: 1;
    transform: scale(1);
}
.pyt-card-check svg {
    color: #fff;
}

/* Arrow Button on Card (matching btn_circle pattern) */
.pyt-card-arrow {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: #D4620F;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}
.pyt-img-card:hover .pyt-card-arrow {
    opacity: 1;
}
.pyt-img-card.selected .pyt-card-arrow {
    display: none;
}

/* Tag Label on Card */
.pyt-card-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: #000;
    border: 1px solid #D4620F;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 30px;
}

/* Skip row text */
.pyt-skip-text {
    text-align: center;
    font-size: 14px;
    color: #aaa;
    margin-top: 20px;
}
.pyt-skip-link {
    color: #D4620F;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(212, 98, 15, 0.4);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}
.pyt-skip-link:hover {
    color: #b8520d;
    border-bottom-color: #b8520d;
}

/* ============================================================
   Dynamic Sections (Regions / Cities) - hidden by default
   ============================================================ */
.pyt-dynamic-section {
    display: none;
    animation: pytFadeSlideIn 0.5s ease forwards;
}
.pyt-dynamic-section.visible {
    display: block;
}
@keyframes pytFadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Loading Spinner */
.pyt-loading {
    text-align: center;
    padding: 40px 0;
}
.pyt-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #eee;
    border-top-color: #D4620F;
    border-radius: 50%;
    animation: pytSpin 0.7s linear infinite;
    margin: 0 auto 12px;
}
@keyframes pytSpin {
    to { transform: rotate(360deg); }
}
.pyt-loading p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Multi-select label */
.pyt-multi-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #D4620F;
    background: rgba(212, 98, 15, 0.08);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 16px;
}

/* ============================================================
   Journey Style Cards (inspiration-itm pattern)
   ============================================================ */
.pyt-journey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.pyt-journey-card .pyt-img-card-wrap {
    padding-bottom: 130%;
}
.pyt-journey-card .pyt-img-card-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    transition: all 0.5s;
    z-index: 0;
}
.pyt-journey-card:hover .pyt-img-card-wrap::after {
    background: rgba(0,0,0,0.2);
}
.pyt-journey-card .pyt-img-card-info {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 30px;
    background: none;
}
.pyt-journey-card .pyt-img-card-info h4 {
    font-size: 22px;
}

/* ============================================================
   Trip Details Section
   ============================================================ */
.pyt-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
}
.pyt-field {
    margin-bottom: 0;
}
.pyt-field label {
    font-size: 13px;
    font-weight: 700;
    color: #191D26;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pyt-field label .required {
    color: #D4620F;
}
.pyt-field .form-control {
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
    height: auto;
}
.pyt-field .form-control:focus {
    border-color: #D4620F;
    box-shadow: 0 0 0 3px rgba(212, 98, 15, 0.08);
    background: #fff;
    outline: none;
}
.pyt-field textarea.form-control {
    resize: vertical;
    min-height: 110px;
}
.pyt-field-hint {
    font-size: 12px;
    color: #aaa;
    margin-top: 5px;
    display: block;
}
.pyt-field-error {
    color: #e03131;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    animation: pytFadeIn 0.25s ease;
}
@keyframes pytFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Guests Row */
.pyt-guests-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.pyt-guest-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
    min-width: 220px;
    background: #fafafa;
    border: 1.5px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px 18px;
    transition: border-color 0.2s ease;
}
.pyt-guest-group:hover {
    border-color: #D4620F;
}
.pyt-guest-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.pyt-guest-type {
    font-size: 15px;
    font-weight: 700;
    color: #191D26;
}
.pyt-guest-age {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}
.pyt-traveler-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pyt-guest-group .pyt-counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #ddd;
    font-size: 18px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}
.pyt-guest-group .pyt-counter-btn:hover {
    background: #D4620F;
    border-color: #D4620F;
    color: #fff;
}
.pyt-guest-input {
    width: 40px !important;
    text-align: center;
    font-weight: 700;
    font-size: 16px !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 6px 2px !important;
    background: transparent !important;
}
.pyt-guest-input:focus {
    box-shadow: none !important;
}

/* Budget Row */
.pyt-budget-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.pyt-currency-select {
    max-width: 120px;
    flex-shrink: 0;
}

/* Duration Chips */
.pyt-duration-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pyt-chip {
    padding: 12px 26px;
    border-radius: 60px;
    border: 2px solid #e0e0e0;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pyt-chip:hover {
    border-color: #D4620F;
    color: #D4620F;
    background: rgba(212, 98, 15, 0.04);
}
.pyt-chip.active {
    background: #D4620F;
    border-color: #D4620F;
    color: #fff;
}

/* ============================================================
   Your Details & Summary
   ============================================================ */
.pyt-summary {
    background: #fefaf7;
    border: 1px solid rgba(212, 98, 15, 0.12);
    border-radius: 16px;
    padding: 30px 34px;
    margin-bottom: 38px;
    position: relative;
    overflow: hidden;
}
.pyt-summary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #D4620F, #e8863f);
    border-radius: 4px 0 0 4px;
}
.pyt-summary h5 {
    font-size: 15px;
    font-weight: 700;
    color: #191D26;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pyt-summary-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
}
.pyt-summary-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.pyt-sum-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #999;
    font-weight: 600;
}
.pyt-sum-value {
    font-size: 15px;
    font-weight: 700;
    color: #191D26;
}

/* Contact Form Grid */
.pyt-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.pyt-contact-grid .pyt-field-full {
    grid-column: 1 / -1;
}

/* ============================================================
   Submit Button (matching btn_primary pattern)
   ============================================================ */
.pyt-submit-wrap {
    text-align: center;
    margin-top: 40px;
}
.pyt-btn-submit {
    border-radius: 60px;
    padding: 15px 40px;
    gap: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .5s;
    text-transform: uppercase;
    border: solid 2px #D4620F;
    background: #D4620F;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.pyt-btn-submit:hover {
    background: #000;
    border-color: #000;
}
.pyt-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.pyt-btn-submit:disabled:hover {
    background: #D4620F;
    border-color: #D4620F;
}
.pyt-btn-submit img {
    filter: brightness(0) invert(1);
    width: 16px;
}

/* ============================================================
   Success State
   ============================================================ */
.pyt-success {
    text-align: center;
    padding: 80px 20px;
    max-width: 580px;
    margin: 0 auto;
}
.pyt-success-animation {
    margin-bottom: 35px;
}
.pyt-checkmark {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}
.pyt-checkmark-circle {
    stroke: #D4620F;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: pytStroke 0.7s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.pyt-checkmark-check {
    stroke: #D4620F;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: pytStroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}
@keyframes pytStroke {
    to { stroke-dashoffset: 0; }
}
.pyt-success h3 {
    font-size: 32px;
    font-weight: 700;
    color: #191D26;
    margin-bottom: 16px;
    line-height: 1.25;
}
.pyt-success p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 35px;
}
.pyt-success-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   How It Works Section
   ============================================================ */
.pyt-howit-sec {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.pyt-howit-sec::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.92);
}
.pyt-howit-sec .container {
    position: relative;
    z-index: 1;
}
.pyt-howit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.pyt-howit-item {
    text-align: center;
    padding: 35px 20px;
}
.pyt-howit-num {
    font-size: 48px;
    font-weight: 800;
    color: #D4620F;
    margin-bottom: 18px;
    line-height: 1;
    font-family: "Mulish", sans-serif;
}
.pyt-howit-item h4 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.pyt-howit-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   Section Divider
   ============================================================ */
.pyt-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 0;
}

/* ============================================================
   Responsive Design
   ============================================================ */

/* Tablet */
@media (max-width: 991.98px) {
    .pyt-hero-content h1 { font-size: 40px; }
    .pyt-hero-content { padding-top: 70px; }
    .pyt-hero-content .inner-sub-head { font-size: 34px; }

    .pyt-section-header h2 { font-size: 28px; }

    .pyt-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    .pyt-card-grid.pyt-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .pyt-journey-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .pyt-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 30px;
    }

    .pyt-summary-items {
        grid-template-columns: repeat(3, 1fr);
    }

    .pyt-howit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile Landscape */
@media (max-width: 767.98px) {
    .pyt-hero { min-height: 320px; background-attachment: scroll; }
    .pyt-hero-content h1 { font-size: 32px; }
    .pyt-hero-content .inner-sub-head { font-size: 28px; }
    .pyt-hero-content p { font-size: 15px; }
    .pyt-hero-content { padding-top: 50px; }

    .pyt-section-header h2 { font-size: 24px; }
    .pyt-section-header p { font-size: 14px; }
    .pyt-section-header .inner-sub-head { font-size: 26px; }

    .pyt-card-grid,
    .pyt-card-grid.pyt-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .pyt-journey-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .pyt-img-card-info { padding: 30px 16px 16px; }
    .pyt-img-card-info h4 { font-size: 16px; }
    .pyt-img-card-info p { font-size: 12px; }
    .pyt-journey-card .pyt-img-card-info h4 { font-size: 18px; }

    .pyt-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pyt-summary { padding: 22px 24px; }
    .pyt-summary-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 16px;
    }

    .pyt-contact-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .pyt-howit-grid { grid-template-columns: 1fr; gap: 10px; }
    .pyt-howit-item { padding: 20px 16px; }
    .pyt-howit-num { font-size: 36px; margin-bottom: 12px; }

    .pyt-success h3 { font-size: 24px; }
    .pyt-success p { font-size: 14px; }
    .pyt-success { padding: 50px 16px; }
}

/* Mobile Portrait */
@media (max-width: 575.98px) {
    .pyt-hero-content h1 { font-size: 26px; }
    .pyt-hero-content .inner-sub-head { font-size: 24px; }
    .pyt-hero { min-height: 260px; padding: 60px 0; }
    .pyt-hero-content { padding-top: 40px; }

    .pyt-card-grid,
    .pyt-card-grid.pyt-grid-4,
    .pyt-journey-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .pyt-img-card-wrap { padding-bottom: 140%; }
    .pyt-img-card-info { padding: 25px 12px 12px; }
    .pyt-img-card-info h4 { font-size: 14px; }
    .pyt-img-card-info p { display: none; }
    .pyt-card-check { width: 28px; height: 28px; top: 8px; right: 8px; }
    .pyt-card-tag { font-size: 10px; padding: 3px 10px; top: 8px; left: 8px; }

    .pyt-journey-card .pyt-img-card-info h4 { font-size: 15px; }

    .pyt-guests-row { gap: 12px; }
    .pyt-guest-group { min-width: 100%; padding: 12px 14px; }

    .pyt-budget-row { flex-direction: column; gap: 8px; }
    .pyt-currency-select { max-width: 100%; }

    .pyt-duration-chips { gap: 8px; }
    .pyt-chip { padding: 10px 20px; font-size: 13px; }

    .pyt-summary-items {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .pyt-summary { padding: 18px 20px; }

    .pyt-btn-submit { width: 100%; }
}
