/* ====== TERRITORY DETAIL PAGES ====== */
.tp-hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    overflow: hidden;
}
.tp-hero-slider {
    position: absolute;
    inset: 0;
}
.tp-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.tp-hero-slide.active { opacity: 1; }
.tp-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-hero-slide.active img {
    animation: tpKenBurns 8s ease forwards;
}
@keyframes tpKenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.tp-hero-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}
.tp-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.tp-hero-dot.active {
    background: white;
    transform: scale(1.2);
}
/* Hero Slider */
.tp-hero-slider {
    position: absolute;
    inset: 0;
}
.tp-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.tp-hero-slide.active { opacity: 1; }
.tp-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: tpKenBurns 18s ease-in-out infinite alternate;
}
@keyframes tpKenBurns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}
.tp-hero-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 2rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
}
.tp-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 1.5px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.tp-hero-dot.active {
    background: white;
    transform: scale(1.2);
}
.tp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13,43,66,0.25) 0%, rgba(13,43,66,0.65) 100%);
    z-index: 1;
}
.tp-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 3rem 2rem;
    color: white;
    max-width: var(--container);
    margin: 0 auto;
}
.tp-hero-content .back-link {
    position: absolute;
    top: calc(var(--header-height) + 1rem);
    left: 2rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
    z-index: 3;
}
.tp-hero-content .back-link:hover { color: white; }
.tp-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    width: fit-content;
}
.tp-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}
.tp-hero-content .tp-hero-sub {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    line-height: 1.6;
}

/* Gallery strip */
.tp-gallery-strip {
    padding: 2rem 0;
    background: var(--cream);
}
.tp-gallery-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--sea-light) var(--sand);
}
.tp-gallery-scroll::-webkit-scrollbar { height: 6px; }
.tp-gallery-scroll::-webkit-scrollbar-track { background: var(--sand); border-radius: 3px; }
.tp-gallery-scroll::-webkit-scrollbar-thumb { background: var(--sea-light); border-radius: 3px; }
.tp-gallery-item {
    flex: 0 0 auto;
    width: 320px;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
}
.tp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.tp-gallery-item:hover img { transform: scale(1.08); }

/* Content */
.tp-content {
    padding: 5rem 0;
    background: var(--white);
}
.tp-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}
.tp-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--sea-deep);
    margin-bottom: 1.5rem;
}
.tp-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--sea);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.tp-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}
.tp-text p strong { color: var(--sea); }

/* Info sidebar */
.tp-info-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}
.tp-info-card {
    background: var(--sand);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.tp-info-card h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--terracotta);
    margin-bottom: 1rem;
}
.tp-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tp-info-item:last-child { border-bottom: none; }
.tp-info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.tp-info-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}
.tp-info-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.1rem;
}

/* Highlights */
.tp-highlights {
    padding: 5rem 0;
    background: var(--sand);
}
.tp-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.tp-highlight-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.tp-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px var(--shadow-lg);
}
.tp-highlight-img {
    height: 200px;
    overflow: hidden;
}
.tp-highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.tp-highlight-card:hover .tp-highlight-img img { transform: scale(1.06); }
.tp-highlight-body {
    padding: 1.5rem;
}
.tp-highlight-body h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--sea-deep);
    margin-bottom: 0.5rem;
}
.tp-highlight-body p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-light);
}

/* CTA */
.tp-cta {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--sea-deep), var(--sea));
    color: white;
}
.tp-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 1rem;
}
.tp-cta p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Other territories navigation */
.tp-other {
    padding: 4rem 0;
    background: var(--cream);
}
.tp-other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.tp-other-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.04);
}
.tp-other-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow);
}
.tp-other-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.tp-other-card span {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sea-deep);
}

/* Lightbox */
.tp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}
.tp-lightbox.active { display: flex; }
.tp-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}
.tp-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.tp-lightbox-close:hover { background: rgba(255,255,255,0.2); }
.tp-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.tp-lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.tp-lightbox-nav.prev { left: 1.5rem; }
.tp-lightbox-nav.next { right: 1.5rem; }
.tp-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .tp-hero { height: 55vh; min-height: 380px; }
    .tp-hero-content { padding: 2rem 1.5rem; }
    .tp-content-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tp-info-sidebar { position: relative; top: 0; }
    .tp-gallery-item { width: 260px; height: 180px; }
}
