/* Instagram-themed UI for TravelEtiosKashmir social sections */
.ig-section {
    --ig-blue: #0095f6;
    --ig-blue-hover: #1877f2;
    --ig-border: #dbdbdb;
    --ig-bg: #fafafa;
    --ig-text: #262626;
    --ig-muted: #6b6b6b;
    --ig-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    background: var(--ig-bg);
    color: var(--ig-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ig-trust-head {
    margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.ig-trust-head .home-kicker {
    color: var(--ig-muted);
    letter-spacing: 0.14em;
}

.ig-trust-head .home-title {
    font-family: 'Playfair Display', serif !important;
    color: var(--emerald);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0.35rem 0 0.75rem;
}

.ig-trust-head .home-support {
    color: var(--ig-muted);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.ig-trust-head .home-support strong {
    color: var(--ig-text);
}

.ig-section h1,
.ig-section h2,
.ig-section h3,
.ig-section .ig-username {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.ig-trust-head .home-title {
    font-family: 'Playfair Display', serif !important;
}

.ig-section .container {
    max-width: 935px;
}

.ig-profile {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "avatar main"
        "avatar stats"
        "avatar bio";
    column-gap: clamp(1.5rem, 4vw, 2.75rem);
    row-gap: 0.85rem;
    align-items: start;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0 1.25rem;
    border-bottom: none;
    margin-bottom: 0;
}

.ig-profile--compact {
    grid-template-areas:
        "avatar main"
        "avatar stats";
    align-items: center;
}

.ig-avatar { grid-area: avatar; }
.ig-profile__main { grid-area: main; }
.ig-stats { grid-area: stats; }
.ig-profile__bio-block { grid-area: bio; }

.ig-avatar {
    position: relative;
    width: clamp(86px, 18vw, 150px);
    height: clamp(86px, 18vw, 150px);
    border-radius: 50%;
    padding: 3px;
    background: var(--ig-gradient);
    flex-shrink: 0;
}

.ig-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background: #fff;
    display: block;
}

.ig-profile__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.1rem;
}

.ig-username {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: clamp(1.15rem, 2.5vw, 1.75rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--ig-text);
    line-height: 1.2;
}

.ig-verified {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--ig-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    flex-shrink: 0;
}

.ig-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ig-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 32px;
    padding: 0 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ig-btn--primary {
    background: var(--ig-blue);
    color: #fff !important;
}

.ig-btn--primary:hover {
    background: var(--ig-blue-hover);
    color: #fff !important;
}

.ig-btn--secondary {
    background: #efefef;
    color: var(--ig-text) !important;
}

.ig-btn--secondary:hover {
    background: #dbdbdb;
    color: var(--ig-text) !important;
}

.ig-btn--outline {
    background: #fff;
    color: var(--ig-text) !important;
    border: 1px solid var(--ig-border);
}

.ig-btn--outline:hover {
    background: #fafafa;
}

.ig-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.25rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.ig-stats li {
    margin: 0;
    font-size: 1rem;
    color: var(--ig-text);
}

.ig-stats strong {
    font-weight: 600;
}

.ig-display-name {
    margin: 0 0 0.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ig-text);
}

.ig-category {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    color: var(--ig-muted);
}

.ig-bio {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ig-text);
    max-width: 28rem;
}

.ig-meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ig-text);
}

.ig-meta a {
    color: #00376b;
    font-weight: 600;
    text-decoration: none;
}

.ig-meta a:hover {
    text-decoration: underline;
}

.ig-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    border-top: 1px solid var(--ig-border);
    margin-top: 0;
}

.ig-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ig-muted);
    text-decoration: none !important;
    border: none;
    background: none;
}

.ig-tab.is-active {
    color: var(--ig-text);
}

.ig-tab.is-active::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ig-text);
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.ig-grid--home {
    grid-template-columns: repeat(4, 1fr);
}

.ig-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
    margin: 0;
}

.ig-card__media,
.ig-card__embed,
.ig-card__play-btn {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    padding: 0;
    background: #000;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    color: inherit;
    text-align: left;
    line-height: 0;
    box-sizing: border-box;
}

.ig-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.3s ease;
}

.ig-card:hover .ig-card__media img {
    transform: scale(1.04);
    filter: brightness(0.72);
}

.ig-card__embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ig-card__badge {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    color: #fff;
    font-size: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

.ig-card__hover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

.ig-card:hover .ig-card__hover,
.ig-card:focus-within .ig-card__hover {
    opacity: 1;
}

.ig-card__hover .fa-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1;
    /* Triangle glyphs sit optically left of center */
    padding-left: 0.18em;
    box-sizing: border-box;
}

.ig-card__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.25rem 0.65rem 0.55rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    z-index: 2;
    pointer-events: none;
}

/* On-site video lightbox */
body.ig-player-open {
    overflow: hidden;
}

.ig-player[hidden] {
    display: none !important;
}

.ig-player {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ig-player__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

.ig-player__dialog {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    max-height: min(92vh, 860px);
    display: flex;
    flex-direction: column;
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.ig-player__close {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
    z-index: 5;
    width: 2.15rem;
    height: 2.15rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}

.ig-player__close:hover,
.ig-player__close:focus {
    background: rgba(0, 0, 0, 0.85);
}

.ig-player__title {
    margin: 0;
    flex: 0 0 auto;
    padding: 0.9rem 2.75rem 0.7rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.ig-player__stage {
    position: relative;
    flex: 1 1 auto;
    aspect-ratio: 9 / 16;
    max-height: min(78vh, 720px);
    background: #111;
    overflow: hidden;
}

.ig-player__video,
.ig-player__iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.ig-player__video {
    object-fit: contain;
}

.ig-player__iframe {
    /* Instagram embed must fill the stage without object-fit stretching */
    position: absolute;
    inset: 0;
}

.ig-player__iframe[hidden],
.ig-player__video[hidden] {
    display: none !important;
}

/* Instagram iframe embeds need a taller shell so their UI isn't squashed */
.ig-player--embed .ig-player__dialog {
    width: min(400px, calc(100vw - 1.5rem));
    max-height: min(92vh, 820px);
    background: #000;
}

.ig-player--embed .ig-player__title {
    display: none;
}

.ig-player--embed .ig-player__close {
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(0, 0, 0, 0.72);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.ig-player--embed .ig-player__stage {
    aspect-ratio: auto;
    width: 100%;
    /* Room for Instagram reel chrome + 9:16 media without stretching the play icon */
    height: min(82vh, 720px);
    max-height: none;
    background: #000;
}

.ig-player--embed .ig-player__iframe {
    background: #000;
}

@media (max-width: 480px) {
    .ig-player {
        padding: 0.5rem;
        align-items: flex-end;
    }

    .ig-player__dialog,
    .ig-player--embed .ig-player__dialog {
        width: 100%;
        max-height: min(94vh, 860px);
        border-radius: 14px 14px 0 0;
    }

    .ig-player--embed .ig-player__stage {
        height: min(86vh, 740px);
    }
}

.ig-footer-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    padding-bottom: 0.5rem;
}

.ig-section-note {
    text-align: center;
    color: var(--ig-muted);
    font-size: 0.875rem;
    margin: 1rem 0 0;
}

.ig-section-note a {
    color: #00376b;
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .ig-profile {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "avatar main"
            "stats stats"
            "bio bio";
        column-gap: 1rem;
        row-gap: 0.75rem;
        text-align: left;
    }

    .ig-profile--compact {
        grid-template-areas:
            "avatar main"
            "stats stats";
    }

    .ig-stats {
        justify-content: space-around;
        gap: 0.5rem;
        padding: 0.75rem 0;
        border-top: 1px solid var(--ig-border);
        border-bottom: 1px solid var(--ig-border);
        margin: 0;
    }

    .ig-stats li {
        text-align: center;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .ig-grid,
    .ig-grid--home {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.15rem;
    }

    .ig-tabs {
        gap: 1.5rem;
    }

    .ig-card__hover {
        opacity: 1;
        background: rgba(0, 0, 0, 0.18);
    }

    .ig-card__caption {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .ig-grid--home {
        grid-template-columns: repeat(3, 1fr);
    }
}
