/* Premium theme - tour details page. Builds on premium-home.css (.pm-home tokens). */

main.mafuz_top_margin {
    overflow: clip;
}

.pm-tour {
    --pm-body: #1a1a1a;
    --pm-muted: #2b2b2b;

    background: #fff;
    color: var(--pm-body);
    font-size: 17px;
}

.pm-tour .pm-tour-card__location {
    font-size: 15px;
}

.pm-tour .pm-tour-card__rating {
    font-size: 15px;
}

.pm-tour .pm-tour-card__price small,
.pm-tour .pm-tour-card__badge {
    font-size: 14px;
}

.pm-tour .pm-tour-card__cta {
    font-size: 15.5px;
}

.pm-tour .pm-eyebrow {
    font-size: 14px;
}

.pm-tour ::placeholder {
    color: var(--pm-muted);
    opacity: 1;
}

.pm-tour h1,
.pm-tour h2,
.pm-tour h3 {
    font-family: var(--pm-font);
}

/* ---------- Header ---------- */
.pm-tour-head {
    padding: 40px 0 24px;
}

.pm-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 15px;
    color: var(--pm-muted);
}

.pm-breadcrumb a {
    color: var(--pm-muted);
    transition: color .2s ease;
}

.pm-breadcrumb a:hover {
    color: var(--pm-primary);
}

.pm-breadcrumb i {
    font-size: 11px;
}

.pm-breadcrumb span {
    color: var(--pm-ink);
    font-weight: 500;
}

.pm-tour-head__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.pm-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--pm-primary-50);
    color: var(--pm-primary);
    font-size: 14.5px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

.pm-chip:hover {
    background: var(--pm-primary);
    color: #fff;
}

.pm-tour-head__title {
    max-width: 900px;
    margin: 0 0 16px;
    color: var(--pm-ink);
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.pm-tour-head__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
    font-size: 16.5px;
    color: var(--pm-body);
}

.pm-tour-head__meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pm-tour-head__meta > span > i {
    color: var(--pm-primary);
}

.pm-tour-head__rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pm-body);
}

.pm-tour-head__rating strong {
    color: var(--pm-ink);
}

.pm-tour-head__rating:hover span:last-child {
    text-decoration: underline;
}

.pm-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--pm-gold);
    font-size: 15px;
}

.pm-stars--lg {
    font-size: 20px;
}

/* ---------- Gallery ---------- */
.pm-gallery-wrap {
    padding-bottom: 8px;
}

.pm-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    height: clamp(320px, 42vw, 500px);
    border-radius: var(--pm-radius);
    overflow: hidden;
}

.pm-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--pm-soft);
    cursor: pointer;
}

.pm-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease, filter .3s ease;
}

.pm-gallery__item:hover img {
    transform: scale(1.04);
    filter: brightness(.92);
}

.pm-gallery__item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.pm-gallery--1 .pm-gallery__item:first-child {
    grid-column: span 4;
    cursor: default;
}

.pm-gallery--2 .pm-gallery__item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 2;
}

.pm-gallery--3 .pm-gallery__item:nth-child(n + 2) {
    grid-column: span 2;
}

.pm-gallery--4 .pm-gallery__item:nth-child(4) {
    grid-column: span 2;
}

.pm-gallery__more {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--pm-ink);
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--pm-shadow-sm);
}

.pm-tour .mainSwiper {
    border-radius: var(--pm-radius);
    overflow: hidden;
}

.pm-tour .mainSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Body ---------- */
.pm-tour-body {
    padding: 32px 0 72px;
}

.pm-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.pm-fact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--pm-line);
    border-radius: 14px;
    background: #fff;
}

.pm-fact__icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--pm-primary-50);
    color: var(--pm-primary);
    font-size: 19px;
}

.pm-fact__label {
    display: block;
    color: var(--pm-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pm-fact__value {
    display: block;
    color: var(--pm-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.pm-block {
    padding: 36px 0;
    border-bottom: 1px solid var(--pm-line);
}

.pm-block:last-child {
    border-bottom: 0;
}

.pm-block--highlight {
    margin: 32px 0;
    padding: 32px;
    border: 0;
    border-radius: var(--pm-radius);
    background: linear-gradient(135deg, var(--pm-primary-50) 0%, #fdf8e8 100%);
}

.pm-block__title {
    margin: 0 0 18px;
    color: var(--pm-ink);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Rich text from the editor */
.pm-prose {
    color: var(--pm-body);
    font-size: 17px;
    line-height: 1.8;
}

.pm-prose :is(p, span, li, div, font, a, strong, b, em, i, u) {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.pm-prose p,
.pm-prose ul,
.pm-prose ol {
    margin: 0 0 14px;
}

.pm-prose p:last-child {
    margin-bottom: 0;
}

.pm-prose ul,
.pm-prose ol {
    padding-left: 22px;
}

.pm-prose ul {
    list-style: disc;
}

.pm-prose ol {
    list-style: decimal;
}

.pm-prose li {
    margin-bottom: 6px;
}

.pm-prose h2,
.pm-prose h3,
.pm-prose h4 {
    margin: 22px 0 10px;
    color: var(--pm-ink);
    font-size: 18px;
    font-weight: 700;
}

.pm-prose strong,
.pm-prose b {
    color: var(--pm-ink);
}

.pm-prose a {
    color: var(--pm-primary);
    text-decoration: underline;
}

.pm-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Amenities */
.pm-amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pm-amenity {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--pm-soft);
    color: var(--pm-ink);
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.5;
}

.pm-amenity i {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pm-primary);
    color: #fff;
    font-size: 14px;
}

/* Included / excluded */
.pm-incl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.pm-incl__col {
    padding: 24px;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
}

.pm-incl__heading {
    margin: 0 0 14px;
    font-size: 17.5px;
    font-weight: 700;
}

.pm-incl__heading--yes {
    color: var(--pm-primary);
}

.pm-incl__heading--no {
    color: #b42318;
}

.pm-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pm-list li {
    position: relative;
    list-style: none;
    padding: 7px 0 7px 32px;
    color: #000;
    font-weight: 500;
    line-height: 1.5;
}

.pm-list li::before {
    position: absolute;
    top: 8px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-family: 'bootstrap-icons';
    font-size: 13px;
}

.pm-list--yes li::before {
    content: '\f272';
    background: var(--pm-primary-50);
    color: var(--pm-primary);
}

.pm-list--no li::before {
    content: '\f5ee';
    font-size: 17px;
    background: #fef3f2;
    color: #b42318;
}

/* Timeline */
.pm-timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pm-timeline__item {
    position: relative;
    display: flex;
    gap: 18px;
    padding-bottom: 26px;
}

.pm-timeline__item:last-child {
    padding-bottom: 0;
}

.pm-timeline__item::before {
    position: absolute;
    top: 40px;
    bottom: 0;
    left: 19px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--pm-line) 0 6px, transparent 6px 10px);
    content: '';
}

.pm-timeline__item:last-child::before {
    display: none;
}

.pm-timeline__dot {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--pm-primary);
    border-radius: 50%;
    background: #fff;
    color: var(--pm-primary);
    font-size: 14px;
    font-weight: 700;
}

.pm-timeline__item.is-start .pm-timeline__dot,
.pm-timeline__item.is-end .pm-timeline__dot {
    background: var(--pm-primary);
    color: #fff;
}

.pm-timeline__body {
    flex: 1;
    padding: 8px 0 0;
}

.pm-timeline__title {
    margin: 0 0 6px;
    color: var(--pm-ink);
    font-size: 19.5px;
    font-weight: 700;
    line-height: 1.4;
}

.pm-timeline.is-collapsed .is-extra {
    display: none;
}

.pm-timeline.is-collapsed .pm-timeline__item:has(+ .is-extra)::before {
    background: linear-gradient(to bottom, var(--pm-line), transparent);
}

.pm-timeline__toggle {
    margin-top: 22px;
    padding: 12px 22px;
    font-size: 15px;
}

.pm-timeline__text {
    margin: 0;
    font-size: 18px;
    color: var(--pm-body);
    line-height: 1.75;
    white-space: pre-line;
}

/* ---------- Booking card ---------- */
.pm-booking {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 112px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding: 22px 24px;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    background: #fff;
    box-shadow: var(--pm-shadow-lg);
}

.pm-booking__price {
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--pm-line);
}

.pm-booking__from {
    display: block;
    color: var(--pm-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pm-booking__price strong {
    color: var(--pm-ink);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.pm-booking__price div span {
    color: var(--pm-muted);
    font-size: 16px;
}

.pm-booking__note {
    margin: 4px 0 0;
    color: var(--pm-muted);
    font-size: 15px;
}

.pm-booking__note span {
    color: var(--pm-primary);
    font-weight: 600;
}

.pm-booking__alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef3f2;
    color: #b42318;
    font-size: 15.5px;
    line-height: 1.45;
}

.pm-field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.pm-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--pm-ink);
    font-size: 15px;
    font-weight: 600;
}

.pm-field label small {
    color: var(--pm-muted);
    font-size: 14px;
    font-weight: 500;
}

.pm-input {
    position: relative;
}

.pm-input i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: var(--pm-primary);
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.pm-input input,
.pm-input select {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--pm-line);
    border-radius: 12px;
    background-color: #fff;
    color: var(--pm-ink);
    font-family: var(--pm-font);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.pm-input select {
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M1.6 4.6a.75.75 0 0 1 1.06 0L8 9.94l5.34-5.34a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 5.66a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
}

.pm-input input:focus,
.pm-input select:focus {
    border-color: var(--pm-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 107, 69, .12);
}

.pm-input select:disabled {
    background-color: var(--pm-soft);
    color: var(--pm-muted);
    cursor: not-allowed;
}

.pm-booking__summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 8px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--pm-soft);
}

.pm-booking__summary span {
    display: block;
    color: var(--pm-muted);
    font-size: 15px;
}

.pm-booking__summary strong {
    color: var(--pm-ink);
    font-size: 16.5px;
}

.pm-booking__total {
    text-align: right;
}

.pm-booking__total strong {
    font-size: 22px;
    font-weight: 800;
}

.pm-booking__total strong span {
    display: inline;
    color: inherit;
    font-size: inherit;
}

.pm-booking__fine {
    margin: 0 0 12px;
    color: var(--pm-muted);
    font-size: 14px;
    line-height: 1.5;
}

.pm-booking__submit {
    width: 100%;
    padding: 15px 26px;
    font-size: 16px;
}

.pm-booking__submit:disabled {
    background: #d9dee5;
    color: #1a1a1a;
    cursor: not-allowed;
    transform: none;
}

.pm-booking__hint {
    margin: 8px 0 0;
    color: var(--pm-muted);
    font-size: 14.5px;
    text-align: center;
}

.pm-booking__perk {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--pm-primary-50);
}

.pm-booking__perk i {
    color: var(--pm-primary);
    font-size: 20px;
}

.pm-booking__perk p {
    margin: 0;
    color: var(--pm-body);
    font-size: 15.5px;
    line-height: 1.5;
}

.pm-booking__perk strong {
    color: var(--pm-ink);
}

.pm-booking__support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border: 1px dashed var(--pm-line);
    border-radius: 12px;
    background: transparent;
    color: var(--pm-primary);
    font-size: 15.5px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease;
}

.pm-booking__support:hover {
    border-color: var(--pm-primary);
    background: var(--pm-primary-50);
}

/* ---------- Reviews ---------- */
.pm-reviews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.pm-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pm-primary);
    font-size: 15.5px;
    font-weight: 600;
}

.pm-rating-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 20px 24px;
    border-radius: var(--pm-radius);
    background: var(--pm-soft);
}

.pm-rating-summary__score {
    color: var(--pm-ink);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
}

.pm-rating-summary p {
    margin: 4px 0 0;
    color: var(--pm-muted);
    font-size: 15.5px;
}

.pm-review-list {
    display: grid;
    gap: 16px;
}

.pm-review {
    padding: 22px 24px;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    background: #fff;
}

.pm-review__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.pm-review__avatar {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pm-primary);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.pm-review__name {
    margin: 0;
    color: var(--pm-ink);
    font-weight: 700;
    line-height: 1.3;
}

.pm-review__meta {
    margin: 2px 0 0;
    color: var(--pm-muted);
    font-size: 15px;
}

.pm-review__meta a {
    color: var(--pm-primary);
    font-weight: 600;
}

.pm-review__stars {
    margin-left: auto;
    font-size: 14px;
}

.pm-review__title {
    margin: 0 0 6px;
    color: var(--pm-ink);
    font-size: 17.5px;
    font-weight: 700;
}

.pm-review__text {
    margin: 0;
    color: var(--pm-body);
    line-height: 1.75;
}

.pm-reviews-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 24px;
}

.pm-btn--outline {
    border-color: var(--pm-primary);
    background: transparent;
    color: var(--pm-primary);
}

.pm-btn--outline:hover {
    background: var(--pm-primary);
    color: #fff;
}

.pm-empty {
    margin: 0;
    padding: 24px;
    border-radius: var(--pm-radius);
    background: var(--pm-soft);
    color: var(--pm-muted);
    text-align: center;
}

/* ---------- Mobile booking bar ---------- */
.pm-mobile-bar {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .pm-booking {
        position: static;
        max-height: none;
        overflow: visible;
        box-shadow: var(--pm-shadow-sm);
        scroll-margin-top: 90px;
    }

    .pm-tour-body {
        padding-bottom: 48px;
    }

    .pm-mobile-bar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--pm-line);
        background: #fff;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
        transform: translateY(110%);
        transition: transform .3s ease;
    }

    .pm-mobile-bar.is-visible {
        transform: none;
    }

    .pm-mobile-bar small {
        color: var(--pm-muted);
        font-size: 14px;
    }

    .pm-mobile-bar strong {
        margin: 0 2px;
        color: var(--pm-ink);
        font-size: 20px;
        font-weight: 800;
    }

    .pm-mobile-bar .pm-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .pm-gallery--desktop {
        display: none;
    }

    .pm-tour .mainSwiper {
        height: 280px;
    }
}

@media (max-width: 767px) {
    .pm-tour {
        font-size: 16px;
    }

    .pm-prose {
        font-size: 16.5px;
    }

    .pm-timeline__text {
        font-size: 17px;
    }

    .pm-tour-head {
        padding: 48px 0 18px;
    }

    .pm-tour-head__cats {
        flex-wrap: nowrap;
        margin-right: calc(var(--bs-gutter-x, 1.5rem) * -.5);
        padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .pm-tour-head__cats::-webkit-scrollbar {
        display: none;
    }

    .pm-chip {
        flex: 0 0 auto;
        padding: 5px 12px;
        font-size: 14px;
    }

    .pm-tour-head__meta {
        gap: 8px 16px;
        font-size: 15.5px;
    }

    .pm-gallery {
        height: 260px;
    }

    .pm-facts {
        gap: 10px;
    }

    .pm-fact {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .pm-block {
        padding: 28px 0;
    }

    .pm-amenities {
        grid-template-columns: 1fr;
    }

    .pm-block--highlight {
        padding: 24px 20px;
    }

    .pm-block__title {
        font-size: 21px;
    }

    .pm-booking {
        padding: 20px;
    }

    .pm-review {
        padding: 18px;
    }

    .pm-review__head {
        flex-wrap: wrap;
    }

    .pm-review__stars {
        width: 100%;
        margin-left: 58px;
        margin-top: -6px;
    }

    .pm-rating-summary__score {
        font-size: 40px;
    }
}
