/* ==========================================================
   CITY DETAIL — single destination guide template (accordion sections)
   Part of the CiaoCity modular stylesheet system.
   Design tokens live in base.css — do not redefine colors here.
   ========================================================== */

/* Sadece Şehir Detay Sayfası Taşıyıcısı (Global'i bozmaz) */
.city-page-wrapper {
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Şehir Hero Alanı */
.city-hero {
    position: relative;
    height: 40vh;
    min-height: 300px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg, 24px);
    background: linear-gradient(135deg, var(--primary) 0%, #6d28d9 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 1;
}

.city-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    border-radius: var(--radius-md, 16px);
    background: rgba(15, 23, 42, 0.175);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    width: 100%;
}

.city-hero-content h1 { 
    font-size: 2.2rem; 
    margin: 8px 0; 
}

.city-quick-stats { 
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap; 
    font-weight: 500; 
    font-size: 0.95rem; 
}

/* Country Info Card */
.country-info-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.05);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border: 1px solid rgba(0,0,0,0.06);
}

.country-info-card > div {
    flex: 1;
    min-width: 120px;
}

.country-info-card .label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.country-info-card .value {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.95rem;
}

/* WEATHER WIDGET - Currency & Visa altında */
.weather-widget {
    margin-bottom: 24px;
}

.weather-widget .weather-grid {
    display: block;
}

.weather-widget .weather-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.04);
}

.weather-widget .weather-api {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.weather-widget .weather-api i {
    font-size: 1.2rem;
    color: #3b82f6;
}

.weather-widget .weather-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.weather-widget .weather-day {
    background: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-widget .weather-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.weather-widget .weather-day .day-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
}

.weather-widget .weather-day .day-condition {
    font-size: 0.8rem;
    color: #64748b;
    margin: 4px 0;
}

.weather-widget .weather-day .day-temp {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
}

.weather-widget .weather-day .temp-max {
    color: #ef4444;
}

.weather-widget .weather-day .temp-min {
    color: #3b82f6;
}

.weather-widget .weather-day .day-rain {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* MODERN AKORDİYON ÇERÇEVELERİ */
.content-accordion {
    background: #ffffff;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.content-accordion:hover { 
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.08); 
}

.c-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: #ffffff;
    user-select: none;
    transition: background 0.2s ease;
}

.c-accordion-header:hover {
    background: #f8fafc;
}

.header-title { 
    font-weight: 700; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    color: #0f172a; 
}

.icon-box {
    width: 44px; 
    height: 44px; 
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.08); 
    color: #4f46e5;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.4rem;
    flex-shrink: 0;
}

.c-arrow {
    font-size: 1.2rem; 
    color: #64748b;
    transition: transform 0.3s ease;
    background: #f1f5f9; 
    padding: 8px; 
    border-radius: 50%;
    flex-shrink: 0;
}

.content-accordion.active .c-arrow { 
    transform: rotate(180deg); 
    background: #4f46e5; 
    color: white; 
}

.c-accordion-body { 
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
}

.content-accordion.active .c-accordion-body { 
    max-height: 10000px; 
}

.c-body-inner { 
    padding: 0 24px 24px 24px; 
}

/* YENİ KATEGORİ GRID'LERİ - Her satırda 2 kart */
.payment-grid,
.weather-grid,
.turism-grid,
.food-grid,
.events-grid,
.transport-grid,
.mobile-grid,
.supermarkets-grid,
.luggage-grid,
.nearby-grid,
.notes-grid,
.accommodation-grid,
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 4px 0;
}

/* INFO CARD (Payment için) */
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.info-card .info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 12px;
}

.info-card .info-content {
    flex: 1;
    min-width: 0;
}

.info-card .info-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-card .info-value {
    font-size: 0.9rem;
    color: #0f172a;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

/* Supermarket chips (previously inline-styled) */
.supermarket-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.supermarket-chip {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* Safety note callout (previously inline-styled) */
.safety-note {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 16px;
    border-radius: 12px;
    color: #b91c1c;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* KART STİLLERİ - Modern ve Temiz */
.city-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.city-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
    border-color: rgba(79, 70, 229, 0.2);
}

/* GÖRSEL - Kart'a tam uyumlu */
.city-card .card-image {
    width: 100%;
    padding-bottom: 65%;
    position: relative;
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.city-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-card:hover .card-image img {
    transform: scale(1.06);
}

/* KART İÇERİĞİ */
.city-card .card-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    min-height: 90px;
}

.city-card .card-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #0f172a;
    line-height: 1.3;
    padding-right: 44px;
}

.city-card .card-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 12px 0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* AKSİYON BUTONU - Sağ alt köşede */
.city-card .card-content .action-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.city-card .card-content .action-btn:hover {
    background: #4338ca;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.city-card .card-content .action-btn i {
    font-size: 1.1rem;
}

/* Link olan kartlar için */
a.city-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* HATA MESAJI */
.error-message {
    padding: 40px 20px;
    text-align: center;
    color: #ef4444;
    background: #fef2f2;
    border-radius: 16px;
    border: 1px solid #fecaca;
}

.error-message i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.error-message h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #dc2626;
}

.error-message p {
    color: #64748b;
    font-size: 0.95rem;
}

/* YÜKLEME ANİMASYONU */
.loading-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
}

.loading-placeholder i {
    font-size: 40px;
    animation: spin 1s linear infinite;
    display: inline-block;
    color: #4f46e5;
}

.loading-placeholder p {
    margin-top: 12px;
    font-size: 1rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* YATAY KAYDIRILABİLİR KARTLAR (Alt bölümler için) */
.section-label { 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #64748b; 
    text-transform: uppercase; 
    display: block; 
    margin: 16px 0 12px 0; 
    letter-spacing: 0.5px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
}

.h-card {
    background: white;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    display: flex; 
    flex-direction: column; 
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none; 
    color: #0f172a;
    transition: transform 0.2s, border-color 0.2s;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

a.h-card { 
    cursor: pointer; 
}

a.h-card:hover { 
    border-color: #4f46e5; 
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1); 
}

.h-card-img { 
    width: 100%; 
    height: 130px; 
    object-fit: cover; 
    border-radius: 10px; 
    background: #f1f5f9; 
}

.h-card-content { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.h-card-title { 
    font-weight: 700; 
    font-size: 0.95rem; 
    line-height: 1.3; 
}

.h-card-desc { 
    font-size: 0.8rem; 
    color: #64748b; 
    line-height: 1.4; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.h-card-action { 
    margin-top: 6px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #4f46e5; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
}

/* LİSTE YAPILARI */
.data-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    background: #f8fafc; 
    border-radius: 12px; 
    padding: 12px; 
}

.data-list li { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 0; 
    border-bottom: 1px dashed rgba(0,0,0,0.08); 
    gap: 16px;
}

.data-list li:last-child { 
    border-bottom: none; 
}

.data-title { 
    font-weight: 600; 
    font-size: 0.95rem; 
    color: #0f172a; 
}

.data-desc { 
    font-size: 0.9rem; 
    color: #4f46e5; 
    font-weight: 600; 
    text-align: right; 
}

/* Recommendations section text — left-aligned prose, not the right-aligned
   key/value .data-desc style used above for compact stat rows. */
.recommendation-text {
    text-align: left;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.6;
}

.recommendation-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.recommendation-read-more:hover {
    background: rgba(79, 70, 229, 0.16);
}

.recommendation-tips {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
    text-align: left;
}

.recommendation-tips li {
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Paid offers (Book & Save) — off by default, toggled per-city via
   paid_offers.enabled in that city's JSON file. */
.offer-card {
    position: relative;
}

.offer-card-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.offer-card-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: white;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.offer-card-buy-btn:hover {
    background: var(--primary-hover);
}

/* KART İÇİNDEKİ LİNK BUTONU - Alternatif stil */
.card-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #4f46e5;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-link-btn:hover {
    color: #4338ca;
}

.card-link-btn i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.card-link-btn:hover i {
    transform: translateX(4px);
}

,
/* HAVA DURUMU WIDGET - Yatay kaydırmalı */
.weather-widget {
    margin-bottom: 24px;
    background: white;
    border-radius: 20px;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 24px -8px rgba(0,0,0,0.05);
}

.weather-widget-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.weather-widget-error i {
    font-size: 1.5rem;
}

.weather-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 4px 0;
}

.weather-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.weather-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.weather-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 10px;
}

.weather-scroll-container {
    display: flex;
    gap: 16px;
    padding: 4px 2px;
    min-width: max-content;
}

.weather-day-card {
    flex: 0 0 120px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px 12px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 100px;
}

.weather-day-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.weather-day-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.weather-day-date .day-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #0f172a;
}

.weather-day-date .day-date {
    font-size: 0.7rem;
    color: #94a3b8;
}

.weather-day-icon {
    font-size: 2rem;
    margin: 4px 0;
}

.weather-day-temp {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.weather-day-temp .temp-max {
    color: #ef4444;
}

.weather-day-temp .temp-min {
    color: #3b82f6;
}

.weather-day-desc {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* VİDEO KARTLARI */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 4px 0;
}

.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #0f172a;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3.5rem;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.video-card:hover .video-play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
    display: block;
}

.video-info {
    padding: 14px 16px;
}

.video-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.video-info .video-source {
    font-size: 0.75rem;
    color: #94a3b8;
}

,
/* ===================== */
/* FEATURED CARDS - SIDEBAR */
/* ===================== */

.sidebar-widget h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.featured-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.featured-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.featured-card:hover {
    transform: translateX(4px);
    border-color: #4f46e5;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.12);
}

.featured-card:active {
    transform: scale(0.98);
}

.featured-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-icon {
    transform: scale(1.05);
}

.featured-info {
    flex: 1;
    min-width: 0;
}

.featured-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.featured-info p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.2;
}

.featured-arrow {
    font-size: 1.1rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.featured-card:hover .featured-arrow {
    color: #4f46e5;
    transform: translateX(4px);
}

/* Featured kartlar için özel renkler */
.featured-card:nth-child(1) .featured-icon {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

.featured-card:nth-child(2) .featured-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.featured-card:nth-child(3) .featured-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

/* Hover durumunda her kartın farklı border rengi */
.featured-card:nth-child(1):hover {
    border-color: #4f46e5;
}

.featured-card:nth-child(2):hover {
    border-color: #ef4444;
}

.featured-card:nth-child(3):hover {
    border-color: #10b981;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 4px 0;
}
