.tr-temsilcilik-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Navigasyon ve Arama */
.tr-nav-wrapper {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.tr-search-box {
    margin-bottom: 20px;
    position: relative;
}

.tr-search-box input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
    outline: none;
}

.tr-search-box input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 10px rgba(0,115,170,0.1);
}

.tr-letter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tr-letter-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 14px;
}

.tr-letter-btn:hover, .tr-letter-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    transform: translateY(-2px);
}

/* Grid Yapısı */
.tr-city-grid, .tr-temsilcilik-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .tr-city-grid, .tr-temsilcilik-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 800px) {
    .tr-city-grid, .tr-temsilcilik-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
    .tr-city-grid, .tr-temsilcilik-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Kart Tasarımı - Cuk Diye Oturan Resimler */
.tr-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.tr-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #0073aa;
}

/* Görsel Alanı - Tam Kare ve Boşluksuz */
.tr-card-img-container {
    width: 100%;
    aspect-ratio: 1 / 1; /* Tam kare garanti eder */
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.tr-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kutuya tam yayar, boşluk bırakmaz */
    transition: transform 0.5s;
}

/* Kart İçerik Alanı */
.tr-card-body {
    padding: 12px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tr-card h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.tr-temsilci-info-row {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.tr-temsilci-info-row i {
    color: #0073aa !important;
    display: inline-block !important;
}

/* Detay Sayfası Tasarımı */
.tr-temsilcilik-detail-page {
    background: #f4f7f6;
    padding: 60px 0;
    min-height: 100vh;
}

.tr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tr-detail-header {
    margin-bottom: 40px;
}

.tr-back-btn {
    display: inline-block;
    margin-bottom: 15px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.tr-detail-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin: 0;
}

.tr-subtitle {
    font-size: 18px;
    color: #7f8c8d;
}

.tr-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .tr-detail-grid { grid-template-columns: 1fr; }
}

.tr-detail-card, .tr-map-card, .tr-contact-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.tr-detail-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.tr-detail-content, .tr-map-card, .tr-contact-card {
    padding: 30px;
}

.tr-detail-content h3, .tr-map-card h3, .tr-contact-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.tr-info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (max-width: 600px) {
    .tr-info-list { grid-template-columns: 1fr; }
}

.tr-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.tr-info-item i {
    font-size: 20px;
    color: #0073aa;
    background: rgba(0,115,170,0.1);
    padding: 12px;
    border-radius: 12px;
}

.tr-info-item strong {
    display: block;
    font-size: 14px;
    color: #95a5a6;
}

.tr-info-item span {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

/* İletişim Formu Tasarımı */
.tr-contact-form .tr-form-group {
    margin-bottom: 15px;
}

.tr-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.tr-contact-form input, .tr-contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
}

.tr-contact-form input:focus, .tr-contact-form textarea:focus {
    border-color: #0073aa;
}

.tr-form-submit {
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.tr-form-submit:hover {
    background: #005177;
}

.tr-form-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

.tr-form-response.success { background: #d4edda; color: #155724; display: block; }
.tr-form-response.error { background: #f8d7da; color: #721c24; display: block; }

/* Slider Tasarımı */
.tr-sehir-slider-wrapper {
    margin: 40px 0;
    padding: 20px 0;
    overflow: hidden;
}

.tr-sehir-slider .tr-slider-item {
    padding: 0 10px;
}

.tr-slider-card {
    display: block;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.tr-slider-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tr-slider-card:hover img {
    transform: scale(1.1);
}

.tr-slider-info {
    padding: 15px;
    background: #fff;
}

.tr-slider-info h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    font-weight: 700;
}

.tr-slider-info span {
    font-size: 13px;
    color: #7f8c8d;
}

.tr-back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.tr-back-button:hover {
    background: #005177;
    transform: translateX(-5px);
}

.tr-google-btn {
    display: block;
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.tr-google-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.tr-google-btn i {
    color: #4285F4;
    margin-right: 5px;
}
