@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

.ts-wrapper {
    --ts-gold:       #C8A96E;
    --ts-gold-light: #E8D5A8;
    --ts-gold-dark:  #A8893E;
    --ts-bg:         #F8F6F1;
    --ts-text:       #1a1a1a;
    --ts-text-light: #6b6860;
    --ts-white:      #ffffff;
    --ts-modal-bg:   #faf9f6;
    --ts-card-bg:    #ffffff;
    --ts-shadow:     0 8px 48px rgba(0,0,0,0.12);
    --ts-radius:     16px;
    font-family: 'DM Sans', sans-serif;
    background: var(--ts-bg);
    padding: 0;
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.ts-header {
    text-align: center;
    padding: 60px 64px 0;
    margin-bottom: 40px;
}

.ts-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--ts-text);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.ts-title span { color: var(--ts-gold); }

.ts-subtitle {
    font-size: 0.95rem;
    color: var(--ts-text-light);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
    font-weight: 300;
}

.ts-map-container {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 20px 60px rgba(0,0,0,0.08);
    background: #111;
}

#ts-dot-canvas { display: none; }
#ts-pins-svg   { display: none; }

#ts-leaflet-map {
    width: 100%;
    height: calc(100vh - 60px);
    min-height: 600px;
    max-height: 860px;
    position: relative;
    z-index: 1;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1) !important;
    border-radius: 10px !important;
    overflow: hidden;
}
.leaflet-control-zoom a {
    color: #C8A96E !important;
    border-color: rgba(200,169,110,0.2) !important;
    font-weight: 600 !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
}
.leaflet-control-zoom a:hover {
    background: #C8A96E !important;
    color: #fff !important;
}

.ts-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,12,8,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding: 20px;
    box-sizing: border-box;
}
.ts-modal-overlay.ts-open {
    display: flex;
    animation: ts-overlay-in 0.25s ease;
}
@keyframes ts-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.ts-modal {
    background: var(--ts-modal-bg);
    border-radius: var(--ts-radius);
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: ts-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--ts-shadow);
    border: 1px solid rgba(200,169,110,0.15);
}
@keyframes ts-modal-in {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ts-modal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(200,169,110,0.1);
    border: 1px solid rgba(200,169,110,0.25);
    border-radius: 50%;
    width: 32px; height: 32px;
    font-size: 0.9rem;
    color: var(--ts-text-light);
    cursor: pointer;
    z-index: 10;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.ts-modal-close:hover { background: var(--ts-gold); color: #fff; border-color: var(--ts-gold); }

.ts-modal-header {
    padding: 32px 32px 16px;
    border-bottom: 1px solid rgba(200,169,110,0.15);
    background: linear-gradient(135deg, #faf9f6 0%, #f5f2ea 100%);
}
.ts-modal-country {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin: 0 0 6px;
    color: var(--ts-text);
    position: relative;
    padding-bottom: 12px;
}
.ts-modal-country::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--ts-gold);
    border-radius: 2px;
}
.ts-modal-subtitle { font-size: 0.82rem; color: var(--ts-gold); margin: 0; font-weight: 500; letter-spacing: 0.04em; }

.ts-slider-wrap { position: relative; padding: 24px 32px 44px; overflow: hidden; }
.ts-slider {
    display: flex;
    gap: 20px;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.ts-card {
    background: var(--ts-card-bg);
    border-radius: 12px;
    padding: 0 0 20px;
    min-width: calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.07);
    border: 1px solid rgba(200,169,110,0.12);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ts-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.ts-card-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; }
.ts-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.ts-card:hover .ts-card-img-wrap img { transform: scale(1.05); }

.ts-card-author-badge {
    position: absolute;
    bottom: 10px; right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.94);
    border-radius: 30px;
    padding: 5px 12px 5px 5px;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--ts-text);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(200,169,110,0.2);
}
.ts-card-author-badge img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--ts-gold); }
.ts-card-author-line { display: flex; flex-direction: column; line-height: 1.2; }
.ts-card-author-line span:last-child { font-size: 0.68rem; color: var(--ts-gold); }

.ts-card-text {
    padding: 18px 18px 0;
    font-size: 0.84rem;
    color: var(--ts-text);
    line-height: 1.75;
    font-weight: 300;
    font-style: italic;
    position: relative;
}
.ts-card-text::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    color: var(--ts-gold);
    position: absolute;
    top: 2px; left: 12px;
    line-height: 1;
    opacity: 0.3;
}
.ts-card-text p { margin: 0; padding-left: 8px; }

.ts-card-stamp {
    position: absolute;
    bottom: 14px; right: 16px;
    width: 34px; height: 34px;
    border: 1.5px solid var(--ts-gold-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0.4;
    font-size: 0.9rem;
    color: var(--ts-gold);
}

.ts-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: var(--ts-white);
    border: 1px solid rgba(200,169,110,0.3);
    border-radius: 50%;
    width: 40px; height: 40px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--ts-gold);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
}
.ts-arrow:hover { background: var(--ts-gold); color: #fff; border-color: var(--ts-gold); box-shadow: 0 4px 16px rgba(200,169,110,0.4); }
.ts-arrow-prev { left: 4px; }
.ts-arrow-next { right: 4px; }
.ts-arrow:disabled { opacity: 0.25; cursor: default; }
.ts-arrow:disabled:hover { background: var(--ts-white); color: var(--ts-gold); border-color: rgba(200,169,110,0.3); box-shadow: none; }

.ts-dots { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.ts-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(200,169,110,0.3);
    border: none; padding: 0; cursor: pointer;
    transition: all 0.25s ease;
}
.ts-dot.active { background: var(--ts-gold); transform: scale(1.4); }

@media (max-width: 1024px) {
    .ts-header { padding: 48px 40px 0; }
}

@media (max-width: 900px) {
    .ts-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    #ts-leaflet-map { min-height: 500px; }
}

@media (max-width: 700px) {
    .ts-wrapper { padding: 0; }
    .ts-header { padding: 36px 20px 0; margin-bottom: 28px; }
    #ts-leaflet-map { height: 60vw; min-height: 320px; max-height: 480px; }
    .ts-map-container { border-radius: 0; }
    .ts-card { min-width: calc(88% - 10px); max-width: calc(88% - 10px); }
    .ts-modal { max-height: 95vh; border-radius: 12px; }
    .ts-modal-header { padding: 20px 18px 14px; }
    .ts-modal-country { font-size: 1.3rem; }
    .ts-slider-wrap { padding: 14px 14px 36px; }
    .ts-arrow { width: 34px; height: 34px; font-size: 0.85rem; }
    .ts-arrow-prev { left: 0; }
    .ts-arrow-next { right: 0; }
    .ts-card-text { font-size: 0.8rem; padding: 14px 14px 0; }
}

@media (max-width: 480px) {
    .ts-header { padding: 28px 16px 0; }
    #ts-leaflet-map { height: 70vw; min-height: 260px; max-height: 380px; }
    .ts-title { font-size: 1.6rem; }
    .ts-subtitle { font-size: 0.85rem; }
    .ts-card { min-width: calc(94% - 8px); max-width: calc(94% - 8px); }
    .ts-modal-overlay { padding: 0; align-items: flex-end; }
    .ts-modal { border-radius: 16px 16px 0 0; max-height: 88vh; overflow-y: auto; }
    .ts-modal-close { top: 14px; right: 14px; }
    .ts-modal-header { padding: 18px 16px 12px; }
    .ts-slider-wrap { padding: 12px 10px 32px; }
    .ts-dots { margin-top: 16px; }
    .ts-card-author-badge { font-size: 0.7rem; padding: 4px 8px 4px 4px; }
}