/* THEME OVERRIDES */
:root {
    /* Global brand overrides (affects all pages using main theme tokens) */
    --bs-brand-2: #386d75;
    --bs-brand-2-dark: #2d565d;
    --bs-brand-2-darken: #2d565d;
    --bs-brand-2-light: #6aadb6;
    --bs-brand-2-rgb: 56, 109, 117;
    --bs-link-hover-color: #386d75;
    --bs-button-bg: #386d75;
    --bs-neutral-1000: #102030;
    --bs-background-1000: #102030;
    --bs-background-2: #e8f2f3;

    /* Helper aliases for custom styles */
    --brand-color: var(--bs-brand-2);
    --brand-color-dark: var(--bs-brand-2-darken);
    --brand-dark: var(--bs-neutral-1000);
}

.btn-brand-2,
.btn.btn-brand-2 {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: #ffffff !important;
}

.btn-brand-2:hover,
.btn.btn-brand-2:hover {
    background-color: var(--brand-color-dark) !important;
    border-color: var(--brand-color-dark) !important;
    color: #ffffff !important;
}

.btn-primary {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--brand-color-dark) !important;
    border-color: var(--brand-color-dark) !important;
    color: #ffffff !important;
}

.text-primary,
.color-primary {
    color: var(--brand-color) !important;
}

.background-brand-2,
.btn.background-brand-2,
.background-brand-2.text-dark,
.btn.background-brand-2.text-dark {
    color: #ffffff !important;
}

.neutral-1000,
.color-dark,
.text-dark {
    color: var(--brand-dark) !important;
}

/* Product List View Styles */
.box-grid-tours .row.list-view .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

.box-grid-tours .row.list-view .card-journey-small {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.box-grid-tours .row.list-view .card-journey-small:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.box-grid-tours .row.list-view .card-journey-small .card-image {
    flex: 0 0 200px;
    margin-right: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.box-grid-tours .row.list-view .card-journey-small .card-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.box-grid-tours .row.list-view .card-journey-small .card-info {
    flex: 1;
    padding: 0;
}

.box-grid-tours .row.list-view .card-journey-small .card-info h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.box-grid-tours .row.list-view .card-journey-small .card-info p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.box-grid-tours .row.list-view .card-journey-small .card-facitlities {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.box-grid-tours .row.list-view .card-journey-small .card-facitlities p {
    margin: 0;
    font-size: 14px;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--brand-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .box-grid-tours .row.list-view .card-journey-small {
        flex-direction: column;
        padding: 15px;
    }
    
    .box-grid-tours .row.list-view .card-journey-small .card-image {
        flex: none;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .box-grid-tours .row.list-view .card-journey-small .card-facitlities {
        gap: 10px;
    }
}

/* Sidebar Özel Stilleri */
.social-links-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: var(--brand-dark);
    transition: all 0.3s ease;
}

.social-link-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: var(--brand-color);
}

.social-link-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-item i {
    width: 20px;
    text-align: center;
    color: var(--brand-color);
    margin-top: 2px;
}

.contact-item p {
    margin: 0;
    line-height: 1.4;
}

.contact-item a {
    color: var(--brand-dark);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--brand-color);
}

.box-quick-links {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.title-quick-links {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--brand-dark);
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: var(--brand-dark);
    transition: all 0.3s ease;
    font-size: 14px;
}

.quick-link-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
    color: var(--brand-color);
}

.quick-link-item i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.box-author-profile .card-image img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
}

.box-author-profile .card-info p:first-child {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* ---------------------------------------- */
/* Media gallery & video cards              */
/* ---------------------------------------- */
.media-card-image {
    overflow: hidden;
    position: relative;
}

.media-card-link {
    display: block;
}

.media-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card-img-square {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-card-overlay-icon {
    color: #fff;
}

.media-card-overlay-icon--zoom {
    font-size: 24px;
}

.media-card-overlay-icon--play {
    font-size: 48px;
}

/* ---------------------------------------- */
/* Header / mobile logo – keep aspect ratio, no stretch */
.header .main-header {
    padding: 18px 0;
}

.sticky-bar.stick .main-header {
    padding: 14px 0;
}

.header .main-header .header-left .header-logo {
    min-width: auto;
    max-width: none;
    flex-shrink: 0;
    align-self: center;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.site-logo-img {
    display: block;
    width: auto;
    height: auto;
    max-height: 80px;
    max-width: 220px;
    object-fit: contain;
}

.site-logo-img--mobile {
    max-height: 64px;
    max-width: 190px;
}

.mobile-header-logo .site-logo-link {
    flex-shrink: 0;
}

/* Identities logos                         */
/* ---------------------------------------- */
.identitie-logo-img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
}

/* ---------------------------------------- */
/* Career cards                             */
/* ---------------------------------------- */
.career-logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* ---------------------------------------- */
/* Contact map iframe                       */
/* ---------------------------------------- */
.contact-map-iframe {
    border: 0;
}

/* ---------------------------------------- */
/* Hotels index – location select & filters */
/* ---------------------------------------- */
.custom-select-display {
    transition: all 0.2s ease;
}

.custom-select-display:hover {
    border-color: #0d6efd !important;
}

.custom-select-option {
    transition: background-color 0.2s ease;
}

.custom-select-option:hover {
    background-color: #f8f9fa !important;
}

.cursor-pointer {
    cursor: pointer;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

.btn-close-location-filter {
    font-size: 0.7rem;
    opacity: 0.6;
}

.btn-close-location-filter:hover {
    opacity: 1 !important;
}

.location-search-highlight {
    background-color: #e8f2f3 !important;
}

.custom-select-dropdown {
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.active-filter-badge {
    font-size: 0.875rem;
}

.active-filter-close {
    font-size: 0.6rem;
    opacity: 1;
}

/* Home search – guest dropdown */
#guest-dropdown {
    z-index: 1050;
}

/* ---------------------------------------- */
/* Header / mobile menu nested sub-menus   */
/* ---------------------------------------- */
.sub-sub-menu {
    padding-left: 15px;
}

.sub-sub-menu--nested {
    margin-top: 5px;
}

.sub-sub-menu--nested-lg {
    margin-top: 10px;
}

.sub-sub-menu-item {
    margin: 3px 0;
}

.sub-sub-menu-link {
    color: var(--bs-neutral-600);
    font-size: 13px;
    text-decoration: none;
}

.mega-menu-link-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.box-author-profile .card-info p:last-child {
    font-size: 12px;
    color: var(--brand-dark);
    margin: 0;
}

/* Newsletter Form Stilleri */
.form-newsletter {
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
    align-items: left !important;
    justify-content: center !important;
}

.newsletter-form {
    display: flex !important;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px !important;
    justify-content: center;
}

.newsletter-form .form-control {
    flex: 1;
    min-width: 250px !important;
    max-width: 400px !important;
}

.newsletter-kvkk {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px !important;
    margin-bottom: 5px !important;
    align-self: flex-start;
    width: 100%;
}

.newsletter-kvkk .form-check-input {
    margin-top: 2px;
}

.newsletter-kvkk .form-check-label {
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
}

.newsletter-kvkk-link {
    font-size: 11px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    align-self: flex-start;
    width: 100%;
}

.newsletter-kvkk-link a {
    color: #fff !important;
    text-decoration: underline !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.newsletter-kvkk-link a:hover {
    opacity: 1;
}

/* Force hotel list pagination to use theme styles (avoid Bootstrap mixing) */
#hotels-pagination .pagination {
    justify-content: center;
    margin-top: 0;
}

#hotels-pagination .page-link {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border: 0;
    border-radius: 4px;
    text-align: center;
    padding: 0;
    font-family: "Urbanist", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--bs-button-text-2);
    margin: 2px 4px;
    background-color: var(--bs-button-bg-2);
}

#hotels-pagination .page-link:hover,
#hotels-pagination .page-link.active {
    background-color: var(--bs-button-bg);
    color: var(--bs-button-text);
}

/* Align pagination arrows vertically with numbers */
#hotels-pagination .page-link svg {
    vertical-align: middle;
}

/* Popular hotels – force equal image height overriding theme card image rule */
.card-journey-small .card-image .popular-hotels-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.popular-hotels-card .card-info .card-rating {
    left: 24px;
    right: 24px;
    justify-content: flex-end;
}

.popular-hotels-card .card-info .card-rating .popular-hotels-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    padding: 4px 12px 4px 4px;
    background: #ffffff;
    border: 1px solid rgba(16, 32, 48, 0.1);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.popular-hotels-card .card-info .card-rating .rating {
    flex-shrink: 0;
    white-space: nowrap;
    margin: 0;
}

.popular-hotels-card .card-info .card-rating .popular-hotels-review-count,
.popular-hotels-card .card-info .card-rating .popular-hotels-no-reviews {
    line-height: 1.3;
    white-space: nowrap;
    color: #475569 !important;
    padding-right: 4px;
}

.popular-hotels-card .card-info .card-program .card-location {
    margin-bottom: 12px !important;
}

.popular-hotels-card .card-info .card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* Slider altı belge alanı – footer'dan bağımsız */
.slider-agency-license {
    position: relative;
    z-index: 4;
    margin-top: -22px;
    padding: 0 0 26px;
    background: transparent;
}

.slider-agency-license__box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slider-agency-license__box:not(.has-logo) {
    gap: 0;
}

.slider-agency-license__logo {
    height: 38px;
    width: auto;
    max-width: 170px;
    display: block;
}

.slider-agency-license__text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(16, 32, 48, 0.1);
    box-shadow: 0 6px 18px rgba(16, 32, 48, 0.12);
    font-size: 14px;
    line-height: 1.5;
    color: #102030;
}

.slider-agency-license__agency,
.slider-agency-license__license,
.slider-agency-license__license strong {
    color: #102030;
}

.slider-agency-license__agency {
    font-weight: 600;
}

.slider-agency-license__license strong {
    font-weight: 700;
}

.slider-agency-license__divider {
    color: rgba(16, 32, 48, 0.35);
}

@media (max-width: 767.98px) {
    .slider-agency-license {
        margin-top: 0;
        padding: 16px 0 22px;
    }

    .slider-agency-license__text {
        flex-direction: column;
        gap: 4px;
        max-width: 300px;
        border-radius: 12px;
    }

    .slider-agency-license__divider {
        display: none;
    }
}

/* Footer TURSAB alanı – slider'dan bağımsız */
.footer-tursab-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-tursab-wrap:not(.has-logo) {
    gap: 0;
}

.footer-tursab-logo {
    height: 40px;
    width: auto;
    max-width: 178px;
    display: block;
}

.footer-tursab-text {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    color: #102030;
}

.footer-tursab-text__agency,
.footer-tursab-text__license,
.footer-tursab-text__license strong {
    color: #102030;
}

.footer-tursab-text__agency {
    font-weight: 600;
}

.footer-tursab-text__license strong {
    font-weight: 700;
}

.footer-tursab-text__divider {
    color: rgba(16, 32, 48, 0.35);
}

@media (max-width: 767.98px) {
    .footer-tursab-text {
        flex-direction: column;
        gap: 4px;
        max-width: 280px;
        border-radius: 12px;
    }

    .footer-tursab-text__divider {
        display: none;
    }
}


/* FOOTER FIXES - ensure contrast on dark background */
.footer {
    background-color: var(--bs-background-1000) !important;
}

.footer .menu-footer li a,
.footer .footer-bottom a,
.footer .footer-bottom strong {
    color: #ffffff !important;
}

.footer .footer-bottom .footer-tursab-text,
.footer .footer-bottom .footer-tursab-text span,
.footer .footer-bottom .footer-tursab-text strong {
    color: #102030 !important;
}

.footer .menu-footer li a:hover,
.footer .footer-bottom a:hover {
    color: var(--brand-color) !important;
}

/* Override old green utility styles with new brand colors */
.link-green {
    color: var(--brand-color) !important;
}

.list-ticks-green li,
.list-checked-green li,
.list-checked-green-2 li,
.box-grid-hotels .card-flight .card-facilities .list-tick-green li {
    background-image: url('../imgs/template/icons/tick-list-2.svg') !important;
}

.btn-green-linear {
    background: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: var(--brand-dark) !important;
}

.btn-green-linear:hover {
    background: var(--brand-color-dark) !important;
    border-color: var(--brand-color-dark) !important;
    color: var(--brand-dark) !important;
}

/* Global badge / primary / success overrides to avoid old green tones */
.bg-primary,
.badge.bg-primary {
    background-color: var(--brand-color) !important;
    color: var(--brand-dark) !important;
}

.bg-success,
.badge-success,
.text-success {
    background-color: var(--brand-color) !important;
    color: var(--brand-dark) !important;
}

/* Rating pill text color align with brand palette */
.rate-element .rating {
    color: var(--brand-dark) !important;
}

/* Hotel card star / sale label background fix (kept in SCSS, this is just a safety net) */

/* Location custom select close button alignment */
.custom-select-display .btn-close-location-filter {
    background: transparent;
    border: none;
    padding: 0;
    margin-left: 8px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-neutral-500);
}

.custom-select-display .btn-close-location-filter svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .newsletter-form .form-control {
        width: 100%;
        min-width: auto;
    }
}

.testimonial-stars .testimonial-star.filled {
    stroke: var(--brand-color) !important;
    fill: var(--brand-color) !important;
}
