/* Arşipel Otel güncel site düzenlemeleri - v4 */
:root {
    --arsipel-blue: #163eb1;
    --arsipel-dark: #20232a;
    --arsipel-soft: #f4f5f7;
    --arsipel-border: rgba(255, 255, 255, 0.18);
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }
header .logo img { max-height: 58px; width: auto; }
header nav ul.menu > li > a { letter-spacing: .02em; }
header nav ul.menu li .sub-menu a { white-space: nowrap; }
.subtitle { box-sizing: border-box; }

.site-page {
    min-height: 100vh;
    background: #eef1f5;
    color: #20232a;
}
.site-page .site-main {
    min-height: 100vh;
    box-sizing: border-box;
    padding: 42px 28px 130px;
}
.site-page .site-container {
    width: min(1180px, 100%);
    margin: 0 auto;
}
.site-page .page-heading {
    margin: 0 0 28px;
    padding: 26px 30px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, rgba(22,62,177,.96), rgba(31,42,68,.96));
    box-shadow: 0 14px 40px rgba(30,42,73,.17);
}
.site-page .page-heading h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
}
.site-page .page-heading p {
    margin: 0;
    color: rgba(255,255,255,.88);
    font-size: 16px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    margin: 0;
    border-radius: 16px;
    background: #d9dee7;
    box-shadow: 0 10px 28px rgba(31,42,68,.13);
}
.gallery-card button {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform .35s ease, filter .35s ease;
}
.gallery-card button:hover img,
.gallery-card button:focus-visible img {
    transform: scale(1.035);
    filter: brightness(.92);
}
.gallery-card button:focus-visible {
    outline: 4px solid rgba(22,62,177,.45);
    outline-offset: -4px;
}
.gallery-card figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(20,25,35,.72);
    font-size: 12px;
    pointer-events: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10,14,22,.94);
}
.lightbox.is-open { display: flex; }
.lightbox img {
    max-width: min(94vw, 1500px);
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.lightbox .lightbox-close,
.lightbox .lightbox-prev,
.lightbox .lightbox-next {
    position: absolute;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.14);
    cursor: pointer;
}
.lightbox .lightbox-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 30px; }
.lightbox .lightbox-prev,
.lightbox .lightbox-next { top: 50%; width: 48px; height: 48px; margin-top: -24px; font-size: 28px; }
.lightbox .lightbox-prev { left: 18px; }
.lightbox .lightbox-next { right: 18px; }
.lightbox .lightbox-count {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
}

.events-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.event-card {
    padding: 26px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(31,42,68,.10);
    border: 1px solid rgba(31,42,68,.08);
}
.event-card h2 {
    margin: 0 0 13px;
    color: #163eb1;
    font-size: 23px;
    line-height: 1.25;
}
.event-card p {
    margin: 0;
    color: #444b57;
    font-size: 15px;
    line-height: 1.75;
}

.gallery-landing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.gallery-link-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(31,42,68,.16);
}
.gallery-link-card img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-link-card span {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    background: linear-gradient(transparent, rgba(10,14,22,.88));
}
.gallery-link-card:hover img { transform: scale(1.04); }

@media (max-width: 959px) {
    .site-page .site-main { padding: 28px 18px 150px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .events-list { grid-template-columns: 1fr; }
    .gallery-landing { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .site-page .site-main { padding: 18px 12px 165px; }
    .site-page .page-heading { padding: 22px 20px; border-radius: 14px; }
    .gallery-grid { grid-template-columns: 1fr; gap: 13px; }
    .gallery-card, .gallery-card button, .gallery-card img { min-height: 280px; }
    .event-card { padding: 21px; }
    .lightbox { padding: 10px; }
    .lightbox .lightbox-prev { left: 8px; }
    .lightbox .lightbox-next { right: 8px; }
}

/* Header düzeni: mevcut tema görünümünü koruyarak daha temiz hizalama */
.site-page header .logo { margin: 5px 0 0 18px; }
.site-page header .socials { float: left; margin-left: 24px; padding-top: 14px; }
.site-page header nav { margin-right: 18px; }
.site-page header nav ul.menu > li { margin-right: 20px; }
.site-page header nav ul.menu > li:last-child { margin-right: 0; }

@media (max-width: 759px) {
    .site-page header .logo { margin-left: 10px; }
    .site-page header .socials { display: none; }
    .site-page .site-main { padding-top: 22px; }
}

/* Uzun Bozcaada Etkinlikleri bağlantısı tek satırda kalsın */
header nav ul.menu > li:nth-child(2) > .sub-menu {
    width: 240px;
    margin-left: -120px;
}
@media (max-width: 759px) {
    header nav ul.menu > li:nth-child(2) > .sub-menu { width: auto; margin-left: 0; }
}


/* Mobil menü okunabilirlik düzenlemesi */
@media only screen and (max-width: 760px) {
    header a.menu_toggler {
        right: 10px !important;
        border-radius: 6px;
        background-color: #050505 !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
    }

    header .mobile_menu_wrapper {
        position: relative !important;
        z-index: 9998 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #050505 !important;
        border-top: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    }

    header .mobile_menu {
        box-sizing: border-box;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 12px 18px 22px !important;
        background: #050505 !important;
    }

    header .mobile_menu > li,
    header .mobile_menu li {
        background: transparent !important;
    }

    header .mobile_menu li > a {
        box-sizing: border-box;
        min-height: 42px;
        padding: 8px 6px !important;
        color: #ffffff !important;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, .13);
        font-size: 14px !important;
        line-height: 26px !important;
        text-shadow: none !important;
    }

    header .mobile_menu li > a:hover,
    header .mobile_menu li:hover > a,
    header .mobile_menu li.current-menu-item > a,
    header .mobile_menu li.current-menu-parent > a {
        color: #ffffff !important;
        background: #163eb1 !important;
    }

    header .mobile_menu li .sub-menu {
        box-sizing: border-box;
        margin: 5px 0 10px !important;
        padding: 5px 10px 5px 18px !important;
        background: #111111 !important;
        border-left: 3px solid #163eb1;
    }

    header .mobile_menu li .sub-menu a {
        padding: 7px 5px !important;
        color: #ffffff !important;
        border-bottom-color: rgba(255, 255, 255, .10);
        font-size: 13px !important;
    }
}


/* Arşipel Otel sabit üst menü düzenlemesi - v4 */
body.sticky-site-header {
    --arsipel-sticky-header-height: 89px;
}

html.fixed_menu body.sticky-site-header.fullscreen_layout > header,
body.sticky-site-header > header {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9000 !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .24);
}

body.sticky-site-header > header .header_wrapper {
    position: relative !important;
}

/* İçerik, sabit başlığın altında başlasın. */
body.sticky-site-header.site-page .site-main {
    padding-top: calc(var(--arsipel-sticky-header-height) + 42px) !important;
}

/* Eski temada alt menü aşağıdaki başlığa göre yukarı açılıyordu. Başlık üstteyken aşağı açılsın. */
@media only screen and (min-width: 761px) {
    body.sticky-site-header > header nav ul.menu > li > .sub-menu {
        top: -9999px !important;
        bottom: auto !important;
    }

    body.sticky-site-header > header nav ul.menu > li:hover > .sub-menu {
        top: 69px !important;
        bottom: auto !important;
    }

    body.sticky-site-header > header nav ul.menu > li > .sub-menu > li:first-child:before {
        display: block !important;
        top: -5px !important;
        bottom: auto !important;
        border-top: 0 !important;
        border-bottom: 5px solid !important;
    }

    body.sticky-site-header > header nav ul.menu > li > .sub-menu > li:last-child:before {
        display: none !important;
    }

    body.sticky-site-header > header nav ul.menu > li > .sub-menu > li.current-menu-item:before,
    body.sticky-site-header > header nav ul.menu > li > .sub-menu > li.current-menu-parent:before,
    body.sticky-site-header > header nav ul.menu > li > .sub-menu > li:hover:before {
        border-top: 0 !important;
        border-bottom: 5px solid #2a282f !important;
    }
}

/* Başlık artık altta olmadığı için tam ekran sayfalardaki eski alt boşluğu kaldır. */
body.sticky-site-header.fullscreen_layout .fullscreen_block {
    padding-bottom: 0 !important;
}

@media only screen and (max-width: 959px) {
    body.sticky-site-header.site-page .site-main {
        padding-top: calc(var(--arsipel-sticky-header-height) + 28px) !important;
    }
}

@media only screen and (max-width: 760px) {
    body.sticky-site-header {
        --arsipel-sticky-header-height: 87px;
    }

    html.fixed_menu body.sticky-site-header.fullscreen_layout > header,
    body.sticky-site-header > header {
        height: auto !important;
    }

    body.sticky-site-header > header .header_wrapper {
        min-height: 69px;
        box-sizing: border-box;
    }

    /* Mobil menü sabit başlığın hemen altında açılır ve ekranı taşırmaz. */
    body.sticky-site-header > header .mobile_menu_wrapper {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: calc(100vh - var(--arsipel-sticky-header-height));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.sticky-site-header.site-page .site-main {
        padding-top: calc(var(--arsipel-sticky-header-height) + 22px) !important;
    }
}


/* Arşipel Otel footer ve WhatsApp düzenlemesi - v5 */
.site-footer {
    position: relative !important;
    z-index: 150 !important;
    box-sizing: border-box;
    width: 100%;
    padding: 15px 20px;
    color: #d8d7dc;
    background: #2a282f;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .16);
}

.site-footer .site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5px 16px;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.site-footer a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Eski tema footer metnini header içinde konumlandırmasın. */
body.sticky-site-header > header > .subtitle {
    display: none !important;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 8995;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    min-height: 52px;
    padding: 11px 17px 11px 13px;
    color: #ffffff !important;
    background: #25d366;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .30);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    color: #ffffff !important;
    background: #1fbd5a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .36);
    transform: translateY(-2px);
}

.whatsapp-float svg {
    display: block;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    fill: currentColor;
}

@media only screen and (max-width: 760px) {
    .site-footer {
        padding: 14px 70px 14px 14px;
        font-size: 11px;
    }

    .site-footer .site-footer-inner {
        display: block;
    }

    .site-footer .site-footer-inner span {
        display: block;
    }

    .whatsapp-float {
        right: 12px;
        bottom: 12px;
        width: 54px;
        min-width: 54px;
        height: 54px;
        min-height: 54px;
        padding: 0;
        border-radius: 50%;
    }

    .whatsapp-float span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .whatsapp-float svg {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }
}


/* Ana sayfa tam ekran galeri footer düzeltmesi - v6 */
body.fullscreen_layout .site-footer {
    position: fixed !important;
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 8990 !important;
    min-height: 48px;
    padding-top: 9px;
    padding-bottom: 9px;
    padding-right: 175px;
    background: rgba(42, 40, 47, .96);
}

/* Ana sayfadaki WhatsApp düğmesi footer üzerinde sağda kalır. */
body.fullscreen_layout .whatsapp-float {
    z-index: 8996;
}

@media only screen and (max-width: 760px) {
    body.fullscreen_layout .site-footer {
        min-height: 64px;
        padding: 9px 72px 9px 10px;
        font-size: 10px;
        line-height: 1.45;
    }

    /* Mobil galeri başlığı footer arkasında kalmasın. */
    body.fullscreen_layout .fs_title_wrapper {
        bottom: 66px !important;
    }
}
