/* THEME OVERRIDES */
:root {
    /* Global brand overrides (affects all pages using main theme tokens) */
    --bs-brand-2: #f8b000;
    --bs-brand-2-dark: #e09f00;
    --bs-brand-2-darken: #e09f00;
    --bs-brand-2-light: #ffdd66;
    --bs-link-hover-color: #f8b000;
    --bs-neutral-1000: #102030;
    --bs-background-1000: #102030;
    /* soften old green-ish background to a light yellow tone */
    --bs-background-2: #fff7d6;

    /* 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: var(--brand-dark) !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: var(--brand-dark) !important;
}

.btn-primary {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: var(--brand-dark) !important;
}

.btn-primary:hover {
    background-color: var(--brand-color-dark) !important;
    border-color: var(--brand-color-dark) !important;
    color: var(--brand-dark) !important;
}

.text-primary,
.color-primary {
    color: var(--brand-color) !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;
}

/* ---------------------------------------- */
/* 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: #fff7d6 !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;
}


/* 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 .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;
    }
}
