:root {
    --otuken-dark: #162c25;
    --otuken-green: #24453a;
    --otuken-light: #3c6658;
    --otuken-gold: #d4af37;
    --otuken-sand: #f9f7f2;
    --otuken-earth: #e6e2d6;
    --otuken-text: #2c3531;
}

html { scroll-behavior: smooth; }
body { background: var(--otuken-sand); color: var(--otuken-text); }

nav[aria-label="Breadcrumb"] a { color: #fff !important; }
nav[aria-label="Breadcrumb"] a:hover { color: var(--otuken-gold) !important; }

.otuken-hero-panel {
    backdrop-filter: blur(4px);
    background: rgba(15, 24, 20, .42);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
    max-width: 100%;
    padding: clamp(16px, 2.8vw, 32px);
    width: fit-content;
}

.single-post-hero .single-post-hero-inner > .otuken-hero-panel { width: 100%; }

.otuken-page-content {
    color: var(--otuken-text);
    font-size: 1rem;
    line-height: 1.85;
}

.otuken-page-content h2,
.otuken-page-content h3,
.otuken-page-content h4 {
    color: var(--otuken-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin: 2rem 0 .8rem;
}

.otuken-page-content h2 { font-size: 1.75rem; }
.otuken-page-content h3 { font-size: 1.4rem; }
.otuken-page-content p { margin: 0 0 1.25rem; }
.otuken-page-content ul,
.otuken-page-content ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.otuken-page-content ul { list-style: disc; }
.otuken-page-content ol { list-style: decimal; }
.otuken-page-content li { margin: .35rem 0; padding-left: .25rem; }
.otuken-page-content a { color: var(--otuken-green); text-decoration: underline; text-underline-offset: 3px; }
.otuken-page-content img { border-radius: 6px; height: auto; max-width: 100%; }
.otuken-page-content blockquote { border-left: 3px solid var(--otuken-gold); color: var(--otuken-green); margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem; }
.otuken-page-content > :last-child { margin-bottom: 0; }

.otuken-default-title-panel {
    background: rgba(15, 24, 20, .42);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .2);
    max-width: none;
    padding: clamp(18px, 3vw, 36px);
    width: 100%;
}

.otuken-default-content {
    color: var(--otuken-text);
    font-size: 1rem;
    line-height: 1.85;
}

.otuken-default-content h2,
.otuken-default-content h3,
.otuken-default-content h4 {
    color: var(--otuken-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
    margin: 2.25rem 0 .85rem;
}

.otuken-default-content h2 { border-bottom: 1px solid var(--otuken-earth); font-size: 1.8rem; padding-bottom: .6rem; }
.otuken-default-content h3 { font-size: 1.45rem; }
.otuken-default-content p { margin: 0 0 1.25rem; }
.otuken-default-content ul,
.otuken-default-content ol { margin: 0 0 1.5rem; padding-left: 1.5rem; }
.otuken-default-content ul { list-style: disc; }
.otuken-default-content ol { list-style: decimal; }
.otuken-default-content li { margin: .45rem 0; padding-left: .25rem; }
.otuken-default-content strong { color: var(--otuken-dark); font-weight: 600; }
.otuken-default-content a { color: var(--otuken-green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.otuken-default-content a:hover { color: #a67f13; }
.otuken-default-content > :last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .otuken-hero-panel { padding: 16px; }
    .otuken-default-title-panel { padding: 18px; }
}

.home-feature-list {
    align-items: center;
    display: grid !important;
    gap: 1rem 1.25rem !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
    max-width: 38rem;
}

.otuken-about-spa-band { background: var(--otuken-dark) !important; }
body.page-template-page-hakkimizda .otuken-about-spa-panel { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }

@media (min-width: 1024px) {
    body.page-template-page-hakkimizda .otuken-about-spa-panel { flex-direction: row-reverse !important; }
}

@media (max-width: 1023px) {
    body.page-template-page-hakkimizda .otuken-about-spa-panel { flex-direction: column-reverse !important; }
}

.home-feature-item { align-items: center; display: flex; gap: .75rem; min-width: 0; }
.home-feature-icon { align-items: center; background: var(--otuken-earth); border-radius: 50%; color: var(--otuken-dark); display: inline-flex; flex: 0 0 3rem; height: 3rem; justify-content: center; }
.home-feature-icon i { font-size: 1.1rem; }
.home-feature-copy { display: block; min-width: 0; }
.home-feature-copy strong { color: var(--otuken-dark); display: block; font-size: .875rem; font-weight: 700; }
.home-feature-copy > span { color: rgba(44, 53, 49, .7); display: block; font-size: .7rem; line-height: 1.45; text-transform: uppercase; }

@media (max-width: 639px) {
    .home-feature-list { grid-template-columns: minmax(0, 1fr); max-width: 24rem; }
}

.otuken-cookie-consent {
    align-items: center;
    background: rgba(249, 247, 242, .98);
    border: 1px solid rgba(212, 175, 55, .45);
    border-radius: 10px;
    bottom: 20px;
    box-shadow: 0 12px 36px rgba(22, 44, 37, .2);
    color: var(--otuken-dark);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    left: 20px;
    max-width: 560px;
    padding: 16px 18px;
    position: fixed;
    width: calc(100vw - 40px);
    z-index: 10000;
}

.otuken-cookie-consent.is-dismissed { display: none; }
.otuken-cookie-copy { align-items: flex-start; display: flex; gap: 12px; }
.otuken-cookie-copy > i { color: #a67f13; font-size: 20px; margin-top: 2px; }
.otuken-cookie-copy p { font-size: 13px; line-height: 1.55; margin: 0; }
.otuken-cookie-copy a { color: var(--otuken-green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.otuken-cookie-accept { background: var(--otuken-dark); border: 0; border-radius: 7px; color: #fff; cursor: pointer; flex-shrink: 0; font: inherit; font-size: 13px; font-weight: 600; padding: 11px 15px; transition: background .2s ease, transform .2s ease; }
.otuken-cookie-accept:hover { background: var(--otuken-green); transform: translateY(-1px); }

@media (max-width: 600px) {
    .otuken-cookie-consent { align-items: stretch; bottom: 126px; flex-direction: column; gap: 12px; left: 12px; padding: 14px; width: calc(100vw - 24px); }
    .otuken-cookie-accept { width: 100%; }
}

.header-transparent {
    background: linear-gradient(to bottom, rgba(22,44,37,.92) 0%, rgba(22,44,37,0) 100%);
    transition: background .35s ease, box-shadow .35s ease;
}

.header-solid {
    background: var(--otuken-dark) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transition: background .35s ease, box-shadow .35s ease;
}

#main-header { transition: background .35s ease, box-shadow .35s ease; }

.slide { opacity: 0; transition: opacity 1.5s ease-in-out; position: absolute; inset: 0; z-index: 1; }
.slide.active { opacity: 1; z-index: 2; }
.slide-img { transform: scale(1.05); transition: transform 8s ease-out; width: 100%; height: 100%; object-fit: cover; }
.slide.active .slide-img { transform: scale(1); }
.hover-zoom-container { overflow: hidden; }
.hover-zoom-img { transition: transform .6s cubic-bezier(.25,1,.5,1); }
.hover-zoom-container:hover .hover-zoom-img { transform: scale(1.08); }

/* Internal pages use a readable solid header and reserve its full height. */
.otuken-subpage #main-header {
    background: linear-gradient(to bottom, rgba(22,44,37,.92) 0%, rgba(22,44,37,0) 100%) !important;
    box-shadow: none;
}

.blog-layout #main-header {
    background: linear-gradient(to bottom, rgba(22,44,37,.92) 0%, rgba(22,44,37,0) 100%) !important;
    box-shadow: none;
    z-index: 60;
}

.otuken-subpage #main-header.header-solid,
.blog-layout #main-header.header-solid {
    background: var(--otuken-dark) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.18) !important;
    top: 0 !important;
}

body.home #main-header.header-solid { top: 0 !important; }

@media (min-width: 640px) {
    body > div:first-child.hidden.lg\:block {
        display: block !important;
        background-color: var(--otuken-dark) !important;
    }

    #main-header {
        top: 32px;
    }
}

.blog-layout #main-header nav,
.blog-layout #main-header nav a,
.blog-layout #main-header nav button {
    color: rgba(255, 255, 255, .95);
}

.blog-layout > section:first-of-type {
    padding-top: 0 !important;
}

.blog-layout .blog-hero {
    margin-top: 0;
}

.blog-layout .blog-layout-content {
    min-height: 0;
}

.about-hero-copy {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border-radius: .5rem;
    background: rgba(12, 24, 20, .48);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .16);
    backdrop-filter: blur(3px);
}

.single-room .gallery-img-container {
    min-width: 0;
    min-height: 0;
}

.single-room .gallery-img-container .gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: zoom-in;
}

body.room-lightbox-open {
    overflow: hidden;
}

.room-lightbox {
    align-items: center;
    background: rgba(10, 16, 14, .94);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 2rem 5rem;
    pointer-events: none;
    position: fixed;
    transition: opacity .25s ease;
    visibility: hidden;
    z-index: 1000;
}

.room-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.room-lightbox-frame {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    margin: 0;
    max-width: 1200px;
    width: 100%;
}

.room-lightbox-image {
    height: auto;
    max-height: calc(100% - 3rem);
    max-width: 100%;
    object-fit: contain;
    width: auto;
}

.room-lightbox-frame figcaption {
    color: rgba(255, 255, 255, .75);
    font-size: .8rem;
    margin-top: .75rem;
}

.room-lightbox-close,
.room-lightbox-prev,
.room-lightbox-next {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 9999px;
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 3rem;
    justify-content: center;
    position: absolute;
    transition: background .2s ease, transform .2s ease;
    width: 3rem;
}

.room-lightbox-close:hover,
.room-lightbox-prev:hover,
.room-lightbox-next:hover {
    background: var(--otuken-gold);
    color: var(--otuken-dark);
    transform: scale(1.06);
}

.room-lightbox-close { right: 1.5rem; top: 1.5rem; }
.room-lightbox-prev { left: 1.5rem; top: 50%; }
.room-lightbox-next { right: 1.5rem; top: 50%; }

@media (max-width: 640px) {
    .room-lightbox { padding: 1rem 3.5rem; }
    .room-lightbox-close { right: .75rem; top: .75rem; }
    .room-lightbox-prev { left: .5rem; }
    .room-lightbox-next { right: .5rem; }
}

.single-room .room-gallery-formula {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1.5rem;
}

.single-room .room-gallery-formula .gallery-img-container.col-span-2 {
    grid-column: 1 / -1;
    grid-row: auto;
    height: auto;
    aspect-ratio: 21 / 9;
}

.single-room .room-gallery-formula .gallery-img-container:not(.col-span-2) {
    grid-column: span 1;
    height: auto;
    aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
    .single-room .room-gallery-formula {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem;
    }

    .single-room .room-gallery-formula .gallery-img-container.col-span-2 {
        aspect-ratio: 16 / 9;
    }
}

@media (min-width: 768px) {
    .single-room .gallery-img-container:not(.col-span-2) {
        height: 192px;
    }

    .single-room .gallery-img-container.col-span-2 {
        height: 400px;
    }
}

@media (min-width: 768px) {
    .about-hero-copy {
        margin-top: 4.5rem;
    }
}

.otuken-subpage > main,
.otuken-subpage > section:first-of-type { padding-top: 80px; }

@media (min-width: 1024px) {
    .otuken-subpage > main,
    .otuken-subpage > section:first-of-type { padding-top: 112px; }
}

/* Fallback colors keep the static pages readable if Tailwind CDN is delayed or unavailable. */
.bg-brand-dark { background-color: var(--otuken-dark) !important; }
.bg-brand { background-color: var(--otuken-green) !important; }
.bg-brand-accent { background-color: var(--otuken-gold) !important; }
.bg-brand-sand { background-color: var(--otuken-sand) !important; }
.text-brand-dark { color: var(--otuken-dark) !important; }
.text-brand-accent { color: var(--otuken-gold) !important; }
.text-brand-text { color: var(--otuken-text) !important; }
.text-white { color: #fff !important; }
.hover\:bg-brand-dark:hover { background-color: var(--otuken-dark) !important; }
.hover\:bg-white:hover { background-color: #fff !important; }
.focus\:border-brand-accent:focus { border-color: var(--otuken-gold) !important; }

/* Reservation form primitives: keep the reference design stable without CDN utilities. */
.form-input {
    width: 100%;
    background: transparent;
    border: 1px solid var(--otuken-earth);
    border-radius: .375rem;
    padding: .75rem 1rem;
    font-size: .875rem;
    color: var(--otuken-text);
    transition: border-color .3s ease, box-shadow .3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--otuken-gold);
    box-shadow: 0 0 0 1px var(--otuken-gold);
}

.guest-counter {
    align-items: center;
    background: #fff;
    border: 1px solid var(--otuken-earth);
    border-radius: .375rem;
    display: flex;
    height: 50px;
    justify-content: space-between;
    padding: 4px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.guest-counter:focus-within {
    border-color: var(--otuken-gold);
    box-shadow: 0 0 0 1px var(--otuken-gold);
}

.guest-counter-button {
    align-items: center;
    background: var(--otuken-sand);
    border: 1px solid var(--otuken-earth);
    border-radius: .25rem;
    color: var(--otuken-dark);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.guest-counter-button:hover:not(:disabled) {
    background: var(--otuken-dark);
    border-color: var(--otuken-dark);
    color: #fff;
}

.guest-counter-button:disabled { cursor: not-allowed; opacity: .4; }
.guest-counter-button:focus-visible { outline: 2px solid var(--otuken-gold); outline-offset: 2px; }
.guest-counter-value { appearance: textfield; background: transparent; border: 0; color: var(--otuken-dark); font-size: .95rem; font-weight: 600; outline: 0; text-align: center; width: 56px; }
.guest-counter-value::-webkit-inner-spin-button,
.guest-counter-value::-webkit-outer-spin-button { appearance: none; margin: 0; }
.guest-counter-pair { display: grid; gap: .5rem; margin-top: .35rem; width: 100%; }
.guest-count-label { color: var(--otuken-dark); display: block; font-size: .625rem; font-weight: 600; line-height: 1.1; margin-bottom: .2rem; text-transform: uppercase; }
.guest-counter-pair .guest-counter { height: 36px; padding: 2px; }
.guest-counter-pair .guest-counter-button { flex-basis: 28px; height: 28px; }
.guest-counter-pair .guest-counter-value { font-size: .8rem; width: 32px; }

@media (min-width: 1024px) {
    .guest-counter-pair { gap: .375rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.guest-counter-pair.is-adult-only { grid-template-columns: minmax(0, 1fr); }
.guest-counter-pair.is-adult-only .guest-count-label { display: none; }

.form-label {
    display: block;
    margin-bottom: .5rem;
    color: var(--otuken-dark);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.custom-checkbox {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid var(--otuken-earth);
    border-radius: .25rem;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.custom-checkbox:checked {
    background: var(--otuken-dark);
    border-color: var(--otuken-dark);
}

.custom-checkbox:checked::after {
    content: '';
    width: .375rem;
    height: .75rem;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: .125rem;
}

.shadow-float { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04); }
.shadow-soft { box-shadow: 0 10px 40px -10px rgba(0,0,0,.06); }

.otuken-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 3rem;
}

.otuken-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 0 3px;
    padding: 0 .75rem;
    border: 1px solid var(--otuken-earth);
    border-radius: .375rem;
    background: #fff;
    color: var(--otuken-text);
    text-decoration: none;
    font-size: .875rem;
    line-height: 1;
}

.otuken-pagination .page-numbers.current {
    border-color: var(--otuken-gold);
    background: var(--otuken-gold);
    color: #fff;
}

.otuken-pagination .page-numbers:hover:not(.current) {
    border-color: var(--otuken-gold);
    background: var(--otuken-gold);
    color: #fff;
}

.otuken-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.otuken-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.otuken-pagination nav {
    width: auto;
}

.navigation.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 3rem;
}

.navigation.pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 0 3px;
    padding: 0 .75rem;
    border: 1px solid var(--otuken-earth);
    border-radius: .375rem;
    background: #fff;
    color: var(--otuken-text);
    text-decoration: none;
    font-size: .875rem;
    line-height: 1;
}

.navigation.pagination .page-numbers.current {
    border-color: var(--otuken-gold);
    background: var(--otuken-gold);
    color: #fff;
}

.navigation.pagination .page-numbers:hover:not(.current) {
    border-color: var(--otuken-gold);
    background: var(--otuken-gold);
    color: #fff;
}

.navigation.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.flex.justify-center.mt-12.gap-2:has(ul.page-numbers) {
    width: 100%;
    margin-top: 3rem;
}

.flex.justify-center.mt-12.gap-2 ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.flex.justify-center.mt-12.gap-2 .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 0 3px;
    padding: 0 .75rem;
    border: 1px solid var(--otuken-earth);
    border-radius: .375rem;
    background: #fff;
    color: var(--otuken-text);
    text-decoration: none;
    font-size: .875rem;
    line-height: 1;
}

.flex.justify-center.mt-12.gap-2 .page-numbers.current {
    border-color: var(--otuken-gold);
    background: var(--otuken-gold);
    color: #fff;
}

.flex.justify-center.mt-12.gap-2 .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.otuken-site-logo { letter-spacing: .04em; }
.otuken-page-link { transition: color .25s ease, border-color .25s ease; }
.otuken-page-link:hover { color: var(--otuken-gold); }

@media (max-width: 767px) {
    header.otuken-menu-open .otuken-mobile-menu {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 60;
    }
}

.otuken-form-message {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: .375rem;
    background: #edf7f0;
    color: #21643b;
}

.otuken-contact-card {
    background: #fff;
    border: 1px solid rgba(230, 226, 214, .8);
    border-radius: .75rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,.06);
}

@media (max-width: 767px) {
    .otuken-mobile-menu { background: var(--otuken-dark); padding: 1rem 1.5rem 1.25rem; }
    .otuken-mobile-menu a { display: block; padding: .65rem 0; color: rgba(255,255,255,.9); }
}
