:root {
    --accent-color: #6B7B4C;
    --bs-primary: #6B7B4C;
    --bs-primary-rgb: 107, 123, 76;
}

/* Accessibility: skip link — hidden until keyboard focus */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 0.75rem 1rem;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
}
.skip-link:focus,
.skip-link:focus-visible {
    left: 1rem;
    top: 1rem;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.auth-container .btn.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--contrast-color, #fff);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.auth-container .btn.btn-primary:hover,
.auth-container .btn.btn-primary:focus {
    background: color-mix(in srgb, var(--accent-color), transparent 20%);
    border-color: color-mix(in srgb, var(--accent-color), transparent 20%);
    color: var(--contrast-color, #fff);
    transform: translateY(-1px);
}

/* Room Card Styles */
.room-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.room-image-slider {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-image-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

.room-badge {
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.room-badge.suite { background: #E67E22; }
.room-badge.deluxe { background: #9B59B6; }
.room-badge.popular { background: #2ECC71; }

.room-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 8px 15px;
    border-radius: 8px;
    z-index: 10;
    font-weight: 700;
    color: #2c3e50;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.room-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.room-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #555e66;
    font-size: 0.9rem;
}

.room-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-tag {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #eee;
}

.feature-tag i {
    color: var(--accent-color, #e67e22);
}

.room-desc {
    color: #555e66;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.room-action {
    margin-top: auto;
}

.btn-book {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--accent-color, #e67e22);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-book:hover {
    background: var(--heading-color, #2c3e50);
    color: white;
    transform: translateY(-2px);
}

/* Swiper Navigation Customization */
.room-image-slider .swiper-button-next,
.room-image-slider .swiper-button-prev {
    color: white;
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    backdrop-filter: blur(2px);
}

.room-image-slider .swiper-button-next::after,
.room-image-slider .swiper-button-prev::after {
    font-size: 14px;
    font-weight: bold;
}

/* Main Room List Slider Navigation */
.room-list-next,
.room-list-prev {
    color: var(--accent-color, #e67e22) !important;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.room-list-next:hover,
.room-list-prev:hover {
    background: var(--accent-color, #e67e22);
    color: #fff !important;
    transform: scale(1.1);
}

.room-list-next::after,
.room-list-prev::after {
    font-size: 18px;
    font-weight: bold;
}

@media (max-width: 991px) {
    .room-list-next,
    .room-list-prev {
        display: none; /* Hide external navigation on mobile/tablet where swipe is intuitive */
    }
}

/* Room list outer nav — clickable and above cards */
.room-list-prev,
.room-list-next {
    position: absolute;
    top: 45%;
    z-index: 20;
    width: 44px;
    height: 44px;
    margin-top: 0;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    color: var(--accent-color, #6B7B4C);
    pointer-events: auto !important;
}
.room-list-prev::after,
.room-list-next::after {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Ensure all slides have equal height */
.rooms-list-slider .swiper-slide {
    height: auto;
    display: flex; /* Ensure the card inside can take full height */
}

/* Ensure the card takes full height of the slide */
.rooms-list-slider .swiper-slide .room-card {
    height: 100%;
    width: 100%;
}

/* Room List Slider Pagination Spacing */
.rooms-list-slider {
    padding-bottom: 50px; /* Space for pagination dots */
}

.rooms-list-slider .swiper-pagination {
    bottom: 0 !important; /* Position dots at the very bottom */
}

/* Gallery Filters */
.gallery-filters {
    padding: 0;
    margin: 0 0 35px 0;
    list-style: none;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-filters li {
    cursor: pointer;
    display: inline-block;
    padding: 8px 20px;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
    color: #444444;
    transition: all 0.3s;
    border-radius: 50px;
    border: 1px solid #ddd;
    background: #fff;
}

.gallery-filters li:hover,
.gallery-filters li.filter-active {
    background: var(--accent-color, #e67e22);
    color: #fff;
    border-color: var(--accent-color, #e67e22);
}

.gallery-item-col.d-none {
    display: none !important;
}

/* Animation for filter */
.gallery-item-col {
    animation-duration: 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate__fadeIn {
  animation-name: fadeIn;
}

.animate__animated {
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

/* Gallery Slider Styles */
.gallery-slider {
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}
.gallery-item-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.gallery-img-wrapper {
    position: relative;
    height: 250px; /* Sabit yükseklik */
    overflow: hidden;
}
.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kırpmadan doldur */
    transition: transform 0.5s ease;
}

/* Reservation Results Styles - Horizontal List */
#reservation-results {
    transition: none;
    scroll-margin-top: calc(96px + var(--site-coupon-banner-h, 0px));
}
#reservation-results .msi-res-alert,
#reservation-results .alert-danger,
#reservation-results .msi-no-rooms {
    display: block !important;
    background: #fdecea !important;
    color: #8a1f11 !important;
    border: 1px solid #f1aeb5 !important;
    border-radius: 12px !important;
    padding: 1.1rem 1.15rem !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: center;
}
#reservation-results .alert-warning {
    background: #fff3cd !important;
    color: #664d03 !important;
    border: 1px solid #ffecb5 !important;
    border-radius: 12px !important;
    padding: 1.1rem 1.15rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}
#reservation-results .alert-info,
#reservation-results .msi-alt-rooms {
    background: #e8f1ea !important;
    color: #2f4a2f !important;
    border: 1px solid #c5d6c5 !important;
    border-radius: 12px !important;
    padding: 1.1rem 1.15rem !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}
.room-result-card .msi-room-price {
    white-space: nowrap !important;
    display: inline-block;
    line-height: 1.2;
}
.room-result-card .msi-room-footer {
    flex-wrap: wrap;
    row-gap: 0.75rem;
}
.room-result-card .msi-room-book-btn {
    border-radius: 50px !important;
}
.room-result-card .msi-room-features {
    margin: 0 0 1rem !important;
    padding-left: 1.15rem !important;
    color: #4a5560;
    font-size: 0.95rem;
    line-height: 1.45;
}
.room-result-card .msi-room-features li {
    margin-bottom: 0.2rem;
}
.room-result-card .msi-room-desc {
    font-size: 0.95rem;
}
@media (max-width: 767.98px) {
    #reservation-results .msi-res-alert,
    #reservation-results .alert-danger,
    #reservation-results .msi-no-rooms {
        font-size: 1.15rem !important;
        padding: 1.25rem 1rem !important;
    }
}

.room-result-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.room-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.room-result-card .badge {
    font-size: 0.85rem;
    padding: 8px 15px;
    border-radius: 0 0 10px 0; /* Sol üst köşe için stil */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.room-result-card img {
    transition: transform 0.5s ease;
    object-fit: cover;
}

.room-result-card:hover img {
    transform: scale(1.05);
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 767px) {
    .room-result-card .row > div:first-child {
        height: 200px; /* Mobil için sabit resim yüksekliği */
        overflow: hidden;
    }
    
    .room-result-card .badge {
        border-radius: 0 0 10px 0;
    }
}

/* Contact Section Styles */
.contact-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.contact-card .icon-box {
    transition: all 0.3s ease;
}

.contact-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--accent-color, #e67e22) !important;
    color: white !important;
}

.contact-form-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.contact-form-card:hover {
    transform: translateY(-5px);
}

.contact-form-card .form-control {
    transition: all 0.3s ease;
}

.contact-form-card .form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn-send-message {
    background: linear-gradient(45deg, var(--accent-color, #e67e22), #f39c12);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-send-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4) !important;
    background: linear-gradient(45deg, #d35400, #e67e22);
}

.btn-send-message i {
    transition: transform 0.3s ease;
}

.btn-send-message:hover i {
    transform: translateX(5px) scale(1.2);
}

.map-wrapper iframe {
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.map-wrapper:hover iframe {
    filter: grayscale(0);
}

/* Hero clears fixed coupon + header (main.css used to wipe coupon offset) */
.travel-hero.section {
    padding-top: calc(130px + var(--site-coupon-banner-h, 0px)) !important;
}
@media (max-width: 991.98px), (pointer: coarse) {
    .travel-hero.section {
        align-items: flex-start !important;
        min-height: auto !important;
        padding-top: calc(140px + var(--site-coupon-banner-h, 0px)) !important;
    }
}

/* About: centered image + translucent gray stats overlay */
.about-spotlight__intro {
    max-width: 40rem;
}
.about-spotlight__copy {
    color: #4a5560;
}
.about-spotlight__visual {
    position: relative;
    max-width: 960px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(5, 30, 35, 0.14);
}
.about-spotlight__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}
.about-spotlight__shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: rgba(32, 36, 40, 0.55);
    pointer-events: none;
    z-index: 1;
}
.about-spotlight__stats {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.7rem 0.6rem 0.85rem;
    color: #fff;
    background: rgba(32, 36, 40, 0.82);
}
.about-spotlight__stats .stat-item {
    flex: 1 1 0;
    text-align: center;
    min-width: 0;
}
.about-spotlight__stats .stat-value,
.why-us .about-spotlight__stats .stat-item span.stat-value {
    display: block !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #fff !important;
}
.about-spotlight__stats .stat-label,
.why-us .about-spotlight__stats .stat-item .stat-label {
    margin-top: 0.12rem !important;
    font-size: 0.7rem !important;
    color: rgba(255, 255, 255, 0.92) !important;
    opacity: 1 !important;
    line-height: 1.2;
}
.about-spotlight__visual .experience-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    bottom: auto;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    border-radius: 0.5rem;
    color: #fff !important;
    background: #6B7B4C !important;
    max-width: calc(100% - 1.5rem);
}
.about-spotlight__visual .experience-badge.bg-primary {
    background: #6B7B4C !important;
}
@media (max-width: 767.98px) {
    .about-spotlight__shade {
        height: 34%;
        background: rgba(32, 36, 40, 0.45);
    }
    .about-spotlight__stats {
        padding: 0.45rem 0.35rem 0.55rem;
        gap: 0.15rem;
    }
    .about-spotlight__stats .stat-value,
    .why-us .about-spotlight__stats .stat-item span.stat-value {
        font-size: 0.85rem !important;
    }
    .about-spotlight__stats .stat-label,
    .why-us .about-spotlight__stats .stat-item .stat-label {
        font-size: 0.55rem !important;
    }
    .about-spotlight__visual .experience-badge {
        left: 0.5rem;
        top: 0.5rem;
        padding: 0.3rem 0.5rem;
        gap: 0.3rem;
    }
    .about-spotlight__visual .experience-number {
        font-size: 0.75rem;
    }
    .about-spotlight__visual .experience-text {
        font-size: 0.6rem;
    }
}

/* PSI: avoid non-composited "transition: all" leftovers in theme overrides */
.auth-container .btn.btn-primary,
.btn-book,
.room-card,
.feature-card,
.feature-icon,
#gallery-filters li,
.portfolio-filters li {
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

/* Slightly stronger muted text for a11y contrast on light backgrounds */
.text-muted,
.text-body-secondary {
    color: #4a5560 !important;
}

/* Date range picker (desktop fallback if home-lite late) */
html.msi-dr-open, html.msi-dr-open body { overflow: hidden !important; }
.msi-dr { position: fixed; inset: 0; z-index: 10050; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.msi-dr[hidden] { display: none !important; }
.msi-dr__backdrop { position: absolute; inset: 0; background: rgba(8, 18, 22, 0.55); }
.msi-dr__panel {
    position: relative; z-index: 1; width: 100%; max-width: 440px;
    background: #fff; border-radius: 16px; padding: 1rem 1rem 1.15rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); max-height: min(92vh, 640px); overflow: auto;
}
.msi-dr__head { display: grid; grid-template-columns: 40px 1fr 40px 36px; align-items: center; gap: 0.25rem; margin-bottom: 0.35rem; }
.msi-dr__title { text-align: center; font-weight: 700; color: #1c4b56; font-size: 1.05rem; text-transform: capitalize; }
.msi-dr__nav, .msi-dr__close {
    appearance: none; border: 0; background: #f2f5f3; color: #1c4b56;
    width: 40px; height: 40px; border-radius: 10px; font-size: 1.35rem; line-height: 1;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.msi-dr__close { width: 36px; height: 36px; font-size: 1.5rem; }
.msi-dr__hint { text-align: center; color: #6B7B4C; font-weight: 600; font-size: 0.95rem; margin: 0.35rem 0 0.65rem; }
.msi-dr__weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 0.35rem; text-align: center; font-size: 0.75rem; color: #6a7680; font-weight: 600; }
.msi-dr__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.msi-dr__empty { min-height: 42px; }
.msi-dr__day {
    appearance: none; border: 0; background: transparent; color: #212529;
    min-height: 42px; border-radius: 10px; font-size: 0.95rem; font-weight: 600; cursor: pointer; padding: 0;
}
.msi-dr__day.is-today { box-shadow: inset 0 0 0 1.5px #6B7B4C; }
.msi-dr__day.is-in-range { background: #e8efe0; border-radius: 0; }
.msi-dr__day.is-start, .msi-dr__day.is-end { background: #6B7B4C; color: #fff; border-radius: 10px; }
.msi-dr__day.is-disabled { opacity: 0.35; cursor: not-allowed; }
.msi-dr__day:not(.is-disabled):hover { background: #dfe8d4; }
.msi-dr__day.is-start:hover, .msi-dr__day.is-end:hover { background: #5d6c42; }
.msi-dr__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid #e8ecef; }
.msi-dr__summary { font-size: 0.9rem; font-weight: 600; color: #1c4b56; line-height: 1.35; }
.msi-dr__apply { appearance: none; border: 0; background: #6B7B4C; color: #fff; font-weight: 700; font-size: 1rem; border-radius: 10px; padding: 0.7rem 1.15rem; cursor: pointer; white-space: nowrap; }
.msi-dr__apply:disabled { opacity: 0.45; cursor: not-allowed; }
#reservation .msi-date-display, .travel-hero .msi-date-display { cursor: pointer; }

.msi-reservation-contacts__title {
    margin: 0 0 1rem !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #1c4b56 !important;
}
.msi-reservation-contacts__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 1rem;
    max-width: 420px;
}
.msi-res-btn {
    flex: 1 1 150px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.1rem !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    color: #fff !important;
}
.msi-res-btn i { color: #fff !important; }
.msi-res-btn--call { background: #6B7B4C !important; }
.msi-res-btn--wa { background: #25D366 !important; }
.msi-reservation-contacts__mail a {
    color: #4a5560 !important;
    text-decoration: none !important;
    font-weight: 600;
}
.msi-reservation-contacts__desktop { display: none !important; }
.msi-reservation-contacts__title.msi-reservation-contacts__mobile { display: block; }
.msi-reservation-contacts__actions.msi-reservation-contacts__mobile { display: flex; }
.msi-reservation-contacts__desktop-icon { display: none !important; }
@media (min-width: 992px) {
    .msi-reservation-contacts__desktop { display: block !important; }
    .msi-reservation-contacts__title.msi-reservation-contacts__mobile,
    .msi-reservation-contacts__actions.msi-reservation-contacts__mobile { display: none !important; }
    .msi-reservation-contacts__desktop-icon { display: inline-block !important; }
    .msi-reservation-contacts__mail a { color: inherit !important; font-weight: inherit; }
}

/* In-page anchors clear sticky coupon + header */
#contact,
#contact-write,
#contact-form,
#rooms,
#gallery,
#booking,
#reservation {
    scroll-margin-top: calc(88px + var(--site-coupon-banner-h, 0px)) !important;
}
@media (max-width: 991.98px) {
    #contact,
    #contact-write,
    #contact-form,
    #rooms,
    #gallery,
    #booking,
    #reservation {
        scroll-margin-top: calc(76px + var(--site-coupon-banner-h, 0px)) !important;
    }
}
