:root {
    --dokunma: 44px;
    --yan-bosluk: 16px;
    --anchor-bosluk: 56px;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:where(img, video, iframe, svg, canvas, table, pre, blockquote) {
    max-width: 100%;
}

:where(img, video) {
    height: auto;
}

body.menu-acik,
body.govde-kilit {
    overflow: hidden;
    overscroll-behavior: contain;
}

.tablo-kaydir {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.map-container,
.harita-sarmal {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.harita-sarmal iframe,
.map-container iframe {
    display: block;
    width: 100%;
    border: 0;
}

iframe[src*="google.com/maps"],
iframe[src*="maps.google"],
iframe[src*="youtube.com/embed"] {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 0;
}

@media (min-width: 769px) {
    iframe[src*="google.com/maps"],
    iframe[src*="maps.google"] {
        aspect-ratio: 16 / 9;
    }
}

.reklam-alani {
    margin: 32px auto;
    padding: 0 var(--yan-bosluk);
    max-width: 1100px;
    min-height: 280px;
    text-align: center;
}

.reklam-etiketi {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 6px;
}

ins.adsbygoogle {
    display: block;
    background: #f6f7f8;
}

ins.adsbygoogle:not([data-ad-layout="in-article"]) {
    min-height: 280px;
}

ins.adsbygoogle[data-ad-layout="in-article"] {
    min-height: 250px;
}

@media (max-width: 768px) {
    .reklam-alani {
        margin: 24px auto;
        padding: 0 12px;
        min-height: 260px;
    }

    ins.adsbygoogle:not([data-ad-layout="in-article"]) {
        min-height: 250px;
    }

    body {
        padding-bottom: calc(var(--anchor-bosluk) + env(safe-area-inset-bottom, 0px));
    }

    footer,
    .footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }

    .cookie-consent {
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    }

    .back-to-top {
        bottom: calc(var(--anchor-bosluk) + 12px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container,
    .hero-container,
    .quick-access-container,
    .sehir-wrap,
    .footer-content {
        padding-left: max(var(--yan-bosluk), env(safe-area-inset-left, 0px));
        padding-right: max(var(--yan-bosluk), env(safe-area-inset-right, 0px));
    }
}

@media (max-width: 768px) {
    body,
    p,
    li,
    td,
    .service-content p,
    .faq-answer,
    .hero-subtitle,
    .hero-address-text {
        font-size: clamp(15px, 0.95rem + 0.15vw, 17px);
        line-height: 1.65;
    }

    .dormitory-count,
    .reklam-etiketi,
    .tip-badge,
    .yurt-card .tip-badge,
    .suggest-city,
    .hero-stat-lbl,
    .stat-label,
    .sehir-stat .lbl {
        font-size: 12px !important;
    }

    .stat-value {
        font-size: 14px !important;
    }

    .info-box li a,
    .modern-link,
    .map-header p,
    .cookie-content p,
    .suggest-text,
    .yurt-card p,
    .quick-access-link {
        font-size: 14px !important;
    }
}

input,
select,
textarea,
button {
    font-family: inherit;
}

@media (max-width: 1024px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 16px !important;
        min-height: var(--dokunma);
    }
}

@media (max-width: 1024px) {
    body > header:has(.header-content),
    body > .main-header {
        position: relative;
    }

    body > header .header-content,
    body > .main-header .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    body > header .header-content .menu-toggle,
    body > .main-header .mobile-menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: var(--dokunma);
        height: var(--dokunma);
        cursor: pointer;
        flex: 0 0 auto;
        position: static;
    }

    body > header .header-content nav.navbar,
    body > .main-header .nav-menu {
        display: none;
    }

    body > header .header-content nav.navbar.active,
    body > .main-header .nav-menu.active {
        display: block;
        position: absolute;
        top: 100%;
        right: 0;
        width: min(320px, 88vw);
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        background: #fff;
        padding: 6px 0;
        border-radius: 0 0 0 14px;
        box-shadow: -4px 8px 24px rgba(0, 0, 0, .16);
        z-index: 1002;
    }

    body > .main-header .nav-menu.active li {
        width: 100%;
        display: block;
    }

    body > header .header-content nav.navbar.active a,
    body > .main-header .nav-menu.active a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: var(--dokunma);
        padding: 12px 20px;
        color: #333;
        border-bottom: 1px solid #eee;
    }

    body > .main-header .nav-menu.active li:last-child a {
        border-bottom: 0;
    }
}

@media (hover: none) and (pointer: coarse) {
    button,
    .btn,
    .chip,
    .page-btn,
    .page-number,
    .menu-toggle,
    .close-button,
    .back-to-top,
    .cookie-button,
    .gallery-open-btn,
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next,
    .filter-group select {
        min-height: var(--dokunma);
        min-width: var(--dokunma);
    }

    .menu-toggle {
        width: var(--dokunma);
        height: var(--dokunma);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar a,
    .nav-menu a,
    .nav-link,
    .quick-access-link,
    .footer-section a,
    .info-box li a,
    .sehir-table a,
    .sehir-faq-item a,
    .suggest-item {
        display: flex;
        align-items: center;
        min-height: var(--dokunma);
    }

    td a,
    .yurt-card .btn {
        display: inline-flex;
        align-items: center;
        min-height: var(--dokunma);
    }

    .modern-link,
    .cookie-link,
    .logo,
    .logo-container a,
    .cities-dormitories-section a,
    .map-header a,
    .sehir-faq a,
    .read-more,
    .blog-card a,
    .contact-info a,
    .info-item a,
    a[href^="mailto:"],
    a[href^="tel:"],
    .hizli-erisim a {
        display: inline-flex;
        align-items: center;
        min-height: var(--dokunma);
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .mobile-menu-icon {
        width: var(--dokunma);
        height: var(--dokunma);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cities-dormitories-section li {
        margin-bottom: 2px !important;
    }
}

@media (max-width: 768px) {
    .sehir-hero {
        padding: 36px 16px;
    }

    .sehir-hero h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.8rem);
        line-height: 1.25;
    }

    .sehir-hero p {
        font-size: 0.95rem;
    }

    .sehir-stats {
        margin: -28px auto 24px;
        gap: 10px;
        padding: 0 16px;
    }

    .sehir-stat {
        padding: 14px 18px;
        min-width: 100px;
        flex: 1 1 130px;
    }

    .sehir-wrap {
        padding: 24px 16px;
    }

    .sehir-table,
    .sehir-table tbody,
    .sehir-table tr,
    .sehir-table td {
        display: block;
        width: 100%;
    }

    .sehir-table {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }

    .sehir-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .sehir-table tr {
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
        margin-bottom: 14px;
        padding: 14px 16px;
    }

    .sehir-table tr:hover td {
        background: transparent;
    }

    .sehir-table td {
        border: 0;
        padding: 5px 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.95rem;
    }

    .sehir-table td[data-etiket]::before {
        content: attr(data-etiket);
        flex: 0 0 78px;
        color: #7b7b7b;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: .4px;
        font-weight: 600;
    }

    .sehir-table td:first-child {
        display: block;
        padding: 0 0 8px;
        margin-bottom: 6px;
        border-bottom: 1px solid #f0f0f0;
    }

    .sehir-table td:first-child::before {
        display: none;
    }

    .sehir-table td:first-child a {
        font-size: 1.02rem;
        font-weight: 600;
        line-height: 1.35;
        color: #c31a25;
    }

    .sehir-table td[data-etiket="Telefon"] a {
        font-weight: 600;
    }

    .sehir-faq {
        margin-top: 32px;
    }

    .sehir-faq h2 {
        font-size: 1.25rem;
    }

    .sehir-faq-item {
        padding: 16px 18px;
    }

    .sehir-faq-item h3 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    body > .header,
    body > header.header {
        position: sticky;
        top: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
    }

    .quick-access {
        position: static;
        top: auto;
        padding: 10px 0;
    }

    .quick-access-menu {
        gap: 8px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .quick-access-link {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        line-height: 1.25;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        text-align: center;
        border-radius: 10px;
    }

    .quick-access-link i {
        display: block;
        font-size: 16px;
        margin-bottom: 2px;
    }

    .hero {
        margin-top: 0;
        min-height: 0;
        padding: 28px 0 32px;
    }

    .hero-content,
    .hero-container,
    .about-container,
    .about-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(24px, 7vw, 34px);
        line-height: 1.2;
    }

    .nav-menu {
        top: auto;
        height: auto;
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-top: 32px;
        padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: var(--dokunma);
        padding: 14px 16px;
    }

    .section-title {
        font-size: clamp(22px, 6vw, 30px);
        line-height: 1.25;
    }

    .service-cards,
    .gallery-preview-grid,
    .ilgili-yurt-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body > header,
    body > .main-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .menu-toggle {
        position: static !important;
        top: auto !important;
        right: auto !important;
        width: var(--dokunma);
        height: var(--dokunma);
        flex: 0 0 auto;
    }

    .navbar.active {
        top: 100%;
        width: min(320px, 88vw);
        max-height: calc(100dvh - 70px);
        overscroll-behavior: contain;
        border-radius: 0 0 0 14px;
        box-shadow: -4px 8px 24px rgba(0, 0, 0, .16);
    }

    .navbar a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: var(--dokunma);
        padding: 12px 20px;
    }

    .header-content {
        gap: 10px;
    }

    .header-content h1 {
        font-size: 1.05rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 0;
        min-height: 0;
    }

    .quick-access-link {
        font-size: 12px !important;
        padding: 8px 2px;
    }

    .quick-access-link i {
        font-size: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    body > .header,
    body > header.header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hero-title {
        font-size: clamp(34px, 5vw, 48px);
    }

    .service-cards,
    .gallery-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sehir-table th,
    .sehir-table td {
        font-size: 0.9rem;
        padding: 11px 10px;
    }
}

@media (max-width: 480px) {
    .yurt-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .yurt-card {
        padding: 14px 16px 16px;
    }

    .yurt-card h3 {
        font-size: 1rem !important;
        min-height: 0 !important;
    }

    .yurt-card p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .yurt-card .btn {
        padding: 11px 14px !important;
        font-size: 0.9rem !important;
        justify-content: center;
    }

    .page-btn,
    .page-number {
        min-width: var(--dokunma) !important;
        height: var(--dokunma) !important;
        font-size: 0.95rem !important;
    }

    .page-btn span {
        display: inline !important;
    }

    .chip {
        padding: 10px 16px !important;
        font-size: 0.9rem !important;
    }

    .search-icon,
    .clear-x {
        top: 50% !important;
        transform: translateY(-50%);
    }

    .clear-x {
        width: var(--dokunma);
        height: var(--dokunma);
    }
}

.svg-turkiye-haritasi {
    --harita-en-yuksek: 68vh;
    position: relative;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
}

@media (min-width: 769px) {
    .svg-turkiye-haritasi {
        width: min(92%, 1320px, calc(var(--harita-en-yuksek) * 1007 / 527 + 40px));
        max-width: min(92%, 1320px, calc(var(--harita-en-yuksek) * 1007 / 527 + 40px));
        margin-left: auto;
        margin-right: auto;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .svg-turkiye-haritasi {
        --harita-en-yuksek: 78vh;
    }
}

.harita-tutucu {
    position: relative;
    width: 100%;
    max-width: calc(var(--harita-en-yuksek, 68vh) * 1007 / 527);
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1007 / 527;
    touch-action: pan-x pan-y;
    overflow: hidden;
}

.harita-tutucu.yakinlasti {
    touch-action: none;
}

.harita-tutucu svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    cursor: pointer;
}

.harita-tutucu.yakinlasti svg {
    cursor: grab;
}

.harita-tutucu.surukleniyor svg {
    cursor: grabbing;
}

.harita-yukleniyor {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    font-size: 0.9rem;
}

.harita-kontrol {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

.harita-kontrol button {
    width: var(--dokunma);
    height: var(--dokunma);
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    font-size: 18px;
    line-height: 1;
    color: #c31a25;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.harita-kontrol button:disabled {
    opacity: .45;
    cursor: default;
}

.harita-kontrol .harita-sifirla {
    width: auto;
    padding: 0 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

#svg-turkiye-haritasi path {
    stroke: #fff;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

@media (hover: none) and (pointer: coarse) {
    #svg-turkiye-haritasi path {
        stroke-width: 1.4;
    }
}

@media (max-width: 768px) {
    .harita-arama {
        margin: 0 auto 16px;
        max-width: 560px;
        padding: 0 16px;
    }
}

.harita-arama {
    position: relative;
    margin: 0 auto 20px;
    max-width: 560px;
    width: 100%;
}

.harita-arama input {
    width: 100%;
    padding: 13px 44px 13px 44px;
    border: 2px solid #e6e6e6;
    border-radius: 999px;
    background: #fff;
    outline: none;
}

.harita-arama input:focus {
    border-color: #c31a25;
}

.harita-arama .harita-arama-ikon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    pointer-events: none;
}

.harita-oneri {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    max-height: 320px;
    overflow-y: auto;
    z-index: 40;
    display: none;
}

.harita-oneri.acik {
    display: block;
}

.harita-oneri a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 16px;
    min-height: var(--dokunma);
    justify-content: center;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f4f4f4;
}

.harita-oneri a:last-child {
    border-bottom: 0;
}

.harita-oneri a:hover,
.harita-oneri a:focus {
    background: #fdf3f4;
}

.harita-oneri .oneri-il {
    font-size: 0.78rem;
    color: #7b7b7b;
}

.container,
.footer-content,
.footer-section,
.cookie-content,
.nav-container,
.sehir-wrap,
.hero-container,
.card-front,
.card-back,
.mission-vision-card,
.card-inner {
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    body > header .mobile-menu-icon {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: var(--dokunma);
        height: var(--dokunma);
        cursor: pointer;
        z-index: 1001;
    }

    body > header > nav#nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: min(400px, 84vw);
        max-width: 400px;
        height: 100dvh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, .12);
        z-index: 1000;
        transition: right .3s ease-in-out;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-top: 60px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    body > header > nav#nav-menu.show {
        display: block;
        right: 0;
    }

    body > header > nav#nav-menu a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: var(--dokunma);
        padding: 16px 20px;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .logo-container {
        min-height: var(--dokunma);
    }
}

@media (max-width: 1024px) {
    nav.container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        row-gap: 4px;
    }

    ul.nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px 14px;
        width: 100%;
        padding: 0;
        margin: 6px 0 0;
        list-style: none;
    }

    ul.nav-links li {
        margin: 0;
    }

    ul.nav-links a {
        display: inline-flex;
        align-items: center;
        min-height: var(--dokunma);
        padding: 4px 6px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

@media (max-width: 1024px) {
    nav li > a:only-child,
    .breadcrumb a,
    .breadcrumbs a,
    ol li > a:only-child,
    ul li > a:only-child {
        display: inline-flex;
        align-items: center;
        min-height: var(--dokunma);
    }

    .custom-link,
    .footer-section a,
    .footer-section p a {
        display: inline-flex;
        align-items: center;
        min-height: var(--dokunma);
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .map-header p,
    .footer-section p,
    .cookie-content p {
        font-size: max(14px, 0.9rem) !important;
    }
}

.yorum-seridi {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(min(100%, 300px), 1fr);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.yorum-seridi > * {
    scroll-snap-align: start;
}

@media (min-width: 1025px) {
    .yorum-seridi {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        overflow-x: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media print {
    .header,
    .quick-access,
    .reklam-alani,
    .back-to-top,
    .cookie-consent,
    .menu-toggle {
        display: none !important;
    }
}
