/* Trip Designer profile page
   NOTE: Iris theme sets html{font-size:62.5%}, so ALL type sizes use px
   (not rem) under .td-page to stay visually correct. */

/* Clear fixed header-v2 (awards + nav) — use px so rem shrink doesn't under-pad */
body.has-header-v2 main.overflow-hidden:has(.td-page) {
    padding-top: 230px;
}

@media (max-width: 991.98px) {
    body.has-header-v2 main.overflow-hidden:has(.td-page) {
        padding-top: 96px;
    }
}

.td-page {
    --td-orange: #f07141;
    --td-orange-dark: #e05528;
    --td-navy: #1a2b33;
    --td-teal: #1a8f85;
    --td-mint: #eef6f6;
    --td-green: #25d366;
    --td-cream: #f8efe4;
    --td-muted: #5f6b73;
    --td-border: #d9e3e3;
    --td-text: #1a2b33;
    color: var(--td-text);
    font-size: 18px;
    line-height: 1.55;
    padding-top: 0;
    padding-bottom: 48px;
}

.td-page *,
.td-page *::before,
.td-page *::after {
    box-sizing: border-box;
}

.td-page .container {
    max-width: 1140px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.td-section {
    padding: 56px 0;
}

.td-section-alt {
    background: #f7f5f1;
}

.td-section-title {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 28px;
    text-align: center;
    color: var(--td-text);
    line-height: 1.25;
}

.td-section-sub {
    text-align: center;
    color: var(--td-muted);
    margin: -16px 0 28px;
    font-size: 18px;
}

.td-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 17px;
    border: 2px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none !important;
    line-height: 1.2;
    white-space: nowrap;
}

.td-btn:hover {
    transform: translateY(-1px);
}

.td-btn-sm {
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 999px;
}

.td-btn-block {
    width: 100%;
    white-space: normal;
}

.td-btn-orange {
    background: var(--td-orange);
    color: #fff !important;
    border-color: var(--td-orange);
    box-shadow: 0 10px 22px rgba(240, 113, 65, 0.28);
}

.td-btn-orange:hover {
    background: var(--td-orange-dark);
    border-color: var(--td-orange-dark);
    color: #fff !important;
}

.td-btn-outline {
    background: #fff;
    color: var(--td-orange) !important;
    border-color: var(--td-orange);
    box-shadow: none;
}

.td-btn-outline:hover {
    background: #fff7f3;
    color: var(--td-orange-dark) !important;
}

.td-btn-whatsapp {
    background: var(--td-green);
    color: #fff !important;
    border-color: var(--td-green);
    font-size: 20px;
    padding: 16px 32px;
}

.td-btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff !important;
}

.td-link {
    color: var(--td-orange) !important;
    font-weight: 600;
    font-size: 17px;
}

/* Hero — matches trip-designer top agent mock */
.td-hero {
    padding: 48px 0 56px;
    background: var(--td-mint);
}

.td-hero-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
}

.td-hero-photo-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px 24px 22px;
    box-shadow: 0 18px 40px rgba(26, 43, 51, 0.08);
    text-align: center;
}

.td-avatar {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 18px;
    background: #e8f2f2;
}

.td-online-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--td-teal);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    line-height: 1.2;
}

.td-online-badge:hover {
    color: #fff !important;
    filter: brightness(1.05);
}

.td-online-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7dff9a;
    box-shadow: 0 0 0 3px rgba(125, 255, 154, 0.28);
    flex-shrink: 0;
}

.td-hero-copy {
    min-width: 0;
}

.td-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--td-orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
}

.td-eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: var(--td-orange);
    flex-shrink: 0;
}

.td-name {
    font-size: 52px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.1;
    color: var(--td-navy);
}

.td-role {
    color: var(--td-muted);
    font-size: 20px;
    margin: 0 0 22px;
    line-height: 1.45;
    font-weight: 500;
}

.td-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.td-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--td-navy);
    line-height: 1.3;
}

.td-pill-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    background: var(--td-teal);
}

.td-pill-icon-diamond {
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.td-pill-icon-spark,
.td-pill-icon-star {
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.td-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Bio */
.td-bio-section {
    padding: 48px 0;
}

.td-bio-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 36px;
    align-items: start;
}

.td-bio-copy h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--td-text);
    line-height: 1.25;
}

.td-bio-text {
    font-size: 18px;
    line-height: 1.7;
    color: #374151;
}

.td-bio-text p {
    margin-bottom: 14px;
}

.td-quote {
    margin-top: 20px;
    background: var(--td-cream);
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 18px;
    line-height: 1.6;
    border-left: 4px solid var(--td-orange);
}

.td-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.td-stat-card {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(27, 42, 74, 0.04);
}

.td-stat-value {
    font-size: 40px;
    font-weight: 700;
    color: var(--td-orange);
    line-height: 1.1;
}

.td-stat-label {
    margin-top: 6px;
    color: var(--td-muted);
    font-size: 17px;
}

/* Specialities */
.td-specialty-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.td-specialty-card {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 14px;
    padding: 24px 18px;
    text-align: center;
}

.td-specialty-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0 8px;
    color: var(--td-text);
}

.td-specialty-card p {
    color: var(--td-muted);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 66px;
}

.td-specialty-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.td-specialty-icon-fallback {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff4ee;
    color: var(--td-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Packages */
.td-package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.td-package-card {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.td-package-media {
    position: relative;
    height: 180px;
    background: #eee;
}

.td-package-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e11d48;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.td-package-body {
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.td-package-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.td-package-body h3 a {
    color: inherit !important;
}

.td-package-meta {
    color: var(--td-muted);
    font-size: 16px;
    margin: 0;
}

.td-package-price {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
}

/* Reviews carousel */
.td-reviews-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.td-reviews-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 12px;
    scrollbar-width: none;
    flex: 1;
}

.td-reviews-track::-webkit-scrollbar {
    display: none;
}

.td-review-card {
    flex: 0 0 min(340px, 85vw);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 14px;
    padding: 20px;
}

.td-review-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 17px;
}

.td-review-head span {
    color: var(--td-muted);
}

.td-ta-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.td-ta-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #00aa6c;
}

.td-review-card p {
    font-size: 17px;
    line-height: 1.55;
    color: #374151;
    margin-bottom: 12px;
    min-height: 72px;
}

.td-carousel-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--td-border);
    background: #fff;
    color: var(--td-navy);
    flex-shrink: 0;
    font-size: 16px;
    cursor: pointer;
}

.td-carousel-nav:hover {
    border-color: var(--td-orange);
    color: var(--td-orange);
}

/* Articles */
.td-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.td-article-card {
    background: #fff;
    border: 1px solid var(--td-border);
    border-radius: 14px;
    overflow: hidden;
    display: block;
    color: inherit !important;
    transition: box-shadow 0.15s ease;
}

.td-article-card:hover {
    box-shadow: 0 10px 28px rgba(27, 42, 74, 0.08);
}

.td-article-media {
    height: 170px;
    background: #eee;
}

.td-article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.td-article-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 14px 16px 8px;
    line-height: 1.35;
}

.td-article-card .td-link {
    display: inline-block;
    margin: 0 16px 16px;
}

/* FAQ */
.td-faq {
    max-width: 820px;
    margin: 0 auto;
}

.td-faq-item {
    border: 1px solid var(--td-border);
    border-radius: 12px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

.td-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 16px 48px 16px 18px;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    color: var(--td-text);
    cursor: pointer;
    line-height: 1.4;
}

.td-faq-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid #9ca3af;
    border-bottom: 2px solid #9ca3af;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.td-faq-item.is-open .td-faq-icon {
    transform: translateY(-30%) rotate(-135deg);
}

.td-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.td-faq-item.is-open .td-faq-a {
    max-height: 600px;
}

.td-faq-a-inner {
    padding: 0 18px 18px;
    color: #4b5563;
    line-height: 1.6;
    font-size: 17px;
}

/* CTA */
.td-cta-banner {
    background: var(--td-navy);
    color: #fff;
    text-align: center;
    padding: 56px 16px;
    margin-top: 20px;
}

.td-cta-banner h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.25;
}

.td-cta-banner p {
    max-width: 560px;
    margin: 0 auto 22px;
    opacity: 0.9;
    font-size: 18px;
    line-height: 1.6;
}

/* Team */
.td-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.td-team-card {
    text-align: center;
    color: inherit !important;
}

.td-team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #f3f0eb;
}

.td-team-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

.td-team-card p {
    color: var(--td-muted);
    font-size: 16px;
    margin: 0;
}

@media (max-width: 991px) {
    .td-hero {
        padding: 36px 0 44px;
    }

    .td-hero-layout,
    .td-bio-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .td-hero-photo-card {
        max-width: 320px;
        margin: 0 auto;
    }

    .td-eyebrow {
        justify-content: center;
    }

    .td-pills,
    .td-hero-actions {
        justify-content: center;
    }

    .td-specialty-grid,
    .td-package-grid,
    .td-article-grid,
    .td-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .td-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .td-stat-card {
        flex: 1 1 30%;
        min-width: 140px;
    }

    .td-section-title,
    .td-bio-copy h2,
    .td-cta-banner h2 {
        font-size: 34px;
    }

    .td-name {
        font-size: 42px;
    }
}

@media (max-width: 575px) {
    .td-name {
        font-size: 34px;
    }

    .td-section-title,
    .td-bio-copy h2,
    .td-cta-banner h2 {
        font-size: 28px;
    }

    .td-role,
    .td-btn {
        font-size: 16px;
    }

    .td-specialty-grid,
    .td-package-grid,
    .td-article-grid,
    .td-team-grid {
        grid-template-columns: 1fr;
    }

    .td-hero-photo-card {
        padding: 22px 18px 18px;
    }

    .td-avatar {
        width: 180px;
        height: 180px;
    }

    .td-carousel-nav {
        display: none;
    }

    .td-btn {
        white-space: normal;
    }

    .td-pill {
        font-size: 14px;
    }
}
