/* Daily Cruising - ViaTours Template Overrides */

/* Header dropdown link styling */
.headerDropdown__container a {
    display: block;
    padding: 8px 16px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.headerDropdown__container a:hover {
    color: var(--color-accent-1, #EB662B);
}

/* User menu dropdown positioned to the right */
.headerDropdown__content.-right {
    right: 0;
    left: auto;
}

/* Header logout button styling */
.headerDropdown__logout {
    display: block;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #dc3545;
    transition: color 0.2s ease;
}

.headerDropdown__logout:hover {
    color: #a71d2a;
}

/* Mobile menu logout button */
.menuNav__logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    color: #dc3545;
    padding: 0;
    font-weight: 500;
}

/* Currency component in header */
.header__right .topbar-currency select,
.header__right .topbar-currency .form-select {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    font-size: 0.85rem;
    padding: 4px 8px;
    height: auto;
    color: inherit;
}

/* Fix currency text color in viatours header (white text invisible on light bg) */
.header-currency .text-white {
    color: #444 !important;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Footer — dark theme: bg-dark-1 + text-white classes provide base, we override links */
.footer.-type-1.-dark a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.footer.-type-1.-dark a:hover {
    color: #fff;
}

.footer.-type-1.-dark .footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Right-align the user account dropdown (last item in header) */
.headerDropdown .headerDropdown.-align-right {
    left: auto;
    right: 0;
    transform: none;
}

/* Override vendors.css body padding that may conflict */
body {
    padding-bottom: 0 !important;
}

/* Ensure main content doesn't have old layout margins */
main > .mt-4 {
    margin-top: 0 !important;
}

/* Fix for NToastNotify toast placement */
#toast-container {
    z-index: 99999 !important;
}

/* Page header styles (for subpages) */
.page-header-vt {
    background: linear-gradient(135deg, #05073C 0%, #0c1060 100%);
    padding: 108px 0 50px; /* 88px fixed navbar + 20px gap */
    color: #fff;
    text-align: center;
}

.page-header-vt h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff !important;
}

.page-header-vt p {
    font-size: 1.1rem;
    opacity: 0.85;
    color: #fff !important;
}

/* Breadcrumb inside page header */
.vt-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.vt-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.vt-breadcrumb a:hover {
    text-decoration: underline;
}

/* Boat/Tour card fixes */
.tourCard.-type-1 .tourCard__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Form styles matching template */
.vt-form-section {
    padding: 60px 0;
    background: #f5f5f5;
}

/* Section spacing */
.section-80 {
    padding: 80px 0;
}

/* Alert/notification boxes */
.vt-alert {
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

/* Fix form controls to match template style */
.vt-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.vt-input:focus {
    border-color: #EB662B;
    box-shadow: 0 0 0 3px rgba(235, 102, 43, 0.1);
}

/* Accent color overrides */
.text-accent-1 { color: #EB662B !important; }
.bg-accent-1 { background-color: #EB662B !important; }

/* Keep admin/boat/agency panel body styling intact */
body[data-kt-app-layout] {
    padding-bottom: 0 !important;
}

/* ViaTours form inputs — use element+class selector (specificity 0,1,1) to beat main.css global input reset */
input.vt-form-input,
textarea.vt-form-input,
select.vt-form-input {
    width: 100%;
    padding: 9px 13px;
    border: 1.5px solid #c8cdd5;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #f4f6f9;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    display: block;
}

input.vt-form-input:hover,
textarea.vt-form-input:hover,
select.vt-form-input:hover {
    border-color: #a8b0bc;
    background: #eef1f6;
}

input.vt-form-input:focus,
textarea.vt-form-input:focus,
select.vt-form-input:focus {
    border-color: #EB662B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(235, 102, 43, 0.12);
}

input.vt-form-input:disabled,
input.vt-form-input[readonly],
textarea.vt-form-input:disabled,
textarea.vt-form-input[readonly] {
    background: #eff1f4;
    color: #999;
    cursor: not-allowed;
}

input.vt-form-input::placeholder,
textarea.vt-form-input::placeholder {
    color: #9aa3ae;
}

.vt-form-select {
    width: 100%;
    padding: 9px 40px 9px 13px;
    border: 1.5px solid #c8cdd5;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    background: #f4f6f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23667085' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-size: 16px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.vt-form-select:hover {
    border-color: #a8b0bc;
    background-color: #eef1f6;
}

.vt-form-select:focus {
    border-color: #EB662B;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(235, 102, 43, 0.12);
}

/* Passenger counter +/- buttons */
.vt-counter-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1.5px solid #c8cdd5;
    background: #f4f6f9;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.vt-counter-btn:hover {
    background: #EB662B;
    border-color: #EB662B;
    color: #fff;
}

/* Reservation sidebar — label styling */
.tourSingleSidebar label {
    font-size: 13px;
    font-weight: 600;
    color: #475467;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* Passenger counter number input */
.tourSingleSidebar input[type="number"] {
    background: #f4f6f9;
    border: 1.5px solid #c8cdd5;
    border-radius: 8px;
    color: #1a1a2e;
    font-weight: 600;
    text-align: center;
}

.tourSingleSidebar input[type="number"]:focus {
    border-color: #EB662B;
    outline: none;
    box-shadow: 0 0 0 3px rgba(235, 102, 43, 0.12);
}

/* Ensure featureIcon and featureCard are always visible (no data-anim-child delay) */
.featureIcon.-type-1,
.featureCard.-type-1,
.featureImage.-type-1 {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
}

/* Ensure the hero search form is always clickable */
.hero.-type-1 .searchForm.-type-1 {
    pointer-events: auto !important;
}

/* ─── Hero Search Form Items ─── */
.searchFormItem {
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 8px;
}
.searchFormItem:hover {
    background: rgba(235, 102, 43, 0.05);
}
.searchFormItem:hover .searchFormItem__icon {
    background: #EB662B !important;
    border-color: #EB662B !important;
}
.searchFormItem:hover .searchFormItem__icon i {
    color: #fff !important;
}
.searchFormItem__icon {
    transition: background 0.2s ease, border-color 0.2s ease;
    background: #fff;
}
.searchFormItem__icon i {
    transition: color 0.2s ease;
    color: #05073C;
}
.searchFormItem__content h5 {
    font-size: 12px;
    font-weight: 600;
    color: #05073C;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.searchFormItem__selected-val {
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    display: block;
    line-height: 1.4;
    pointer-events: none;
}
.searchFormItem__selected-val.is-placeholder {
    color: #aaa;
}

/* Native select/input sits on top, invisible, full area */
.hero-native-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    border: none;
    background: transparent;
    font-size: 14px;
}
.searchFormItem__button {
    position: relative;
}

/* ─── Hero Section: force content visible (animation JS may not fire above-fold) ─── */
.hero.-type-1 [data-anim-child^='slide-'],
.hero.-type-1 [data-anim-child^='fade'] {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
}
.hero.-type-1 [data-anim-wrap] {
    pointer-events: auto !important;
}

/* ─── Turlar Flyout Dropdown ─── */

/* Position the dropdown content absolutely below the button */
.headerTours .headerDropdown__content {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;
    z-index: 200;
    min-width: 220px;
}

/* White card container */
.headerTours__menu {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    overflow: visible;
}

/* Each row in the menu */
.headerTours__item {
    position: relative;
}

.headerTours__item > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.headerTours__item > a:hover {
    background: rgba(235, 102, 43, 0.07);
    color: #EB662B;
}

/* "Tüm Turlar" row */
.headerTours__item--all > a {
    font-weight: 600;
    color: #EB662B;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding-bottom: 12px;
    margin-bottom: 2px;
}

/* Right-pointing chevron on parent rows */
.headerTours__chevron {
    margin-left: auto;
    padding-left: 10px;
    font-size: 10px;
    opacity: 0.4;
    transition: opacity 0.15s;
}
.headerTours__item--parent:hover .headerTours__chevron {
    opacity: 0.8;
}

/* Flyout sub-menu */
.headerTours__sub {
    position: absolute;
    left: calc(100% + 4px);
    top: -8px;
    min-width: 210px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 300;
    pointer-events: none;
}

/* Show on CSS hover (desktop) or JS click toggle */
.headerTours__item--parent:hover .headerTours__sub,
.headerTours__item--parent.-click-open .headerTours__sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.headerTours__sub a {
    display: block;
    padding: 9px 18px;
    font-size: 0.87rem;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.headerTours__sub a:hover {
    color: #EB662B;
    background: rgba(235, 102, 43, 0.07);
}

/* Mobile submenu group labels */
.submenu__group-label {
    padding: 6px 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    pointer-events: none;
    list-style: none;
}

/* ─── "Denizin Keyfi" Joy Filter Section ─── */
.joy-section {
    background: linear-gradient(160deg, #f0f8ff 0%, #fff 60%);
}

.joy-section__title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
}

.joy-section__sub {
    font-size: 1.05rem;
    color: #717171;
    margin-top: 12px;
}

.joy-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px 22px;
    border-radius: 16px;
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.06);
    text-decoration: none;
    color: #333;
    transition: all 0.28s ease;
    cursor: pointer;
    height: 100%;
}

.joy-card:hover {
    box-shadow: 0 12px 36px rgba(235,102,43,0.15);
    transform: translateY(-5px);
    border-color: #EB662B;
    color: #EB662B;
}

.joy-card__icon {
    font-size: 2rem;
    color: #EB662B;
    margin-bottom: 14px;
    transition: transform 0.28s ease;
}

.joy-card:hover .joy-card__icon {
    transform: scale(1.15);
}

.joy-card__title {
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

/* ─── PagedList Pagination ─── */
.pagination.-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination.-dots .page-item {
    list-style: none;
}

.pagination.-dots .page-item .pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    color: #444;
    background: #f7f7f7;
    border: 1.5px solid #e4e4e4;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.pagination.-dots .page-item .pagination__page:hover {
    background: #EB662B;
    color: #fff;
    border-color: #EB662B;
}

.pagination.-dots .page-item.active .pagination__page {
    background: #EB662B;
    color: #fff;
    border-color: #EB662B;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(235, 102, 43, 0.35);
}

.pagination.-dots .page-item.disabled .pagination__page {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Boat detail gallery grid — responsive override (main.css uses fixed 770px/510px) */
.tourSingleGrid.-type-2 .tourSingleGrid__grid {
    grid-template-columns: 2fr 1fr !important;
    grid-template-rows: 240px 240px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.tourSingleGrid.-type-2 .tourSingleGrid__grid > *:nth-child(1) {
    grid-row: span 2 !important;
}

@media (max-width: 767px) {
    .tourSingleGrid.-type-2 .tourSingleGrid__grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 260px !important;
        overflow-x: unset !important;
    }
    .tourSingleGrid.-type-2 .tourSingleGrid__grid > *:nth-child(n+2) {
        display: none !important;
    }
}

/* Bootstrap responsive display utilities (missing from viatours main.css) */
@media (min-width: 992px) {
    .d-lg-block { display: block !important; }
    .d-lg-flex  { display: flex  !important; }
    .d-lg-none  { display: none  !important; }
}
@media (max-width: 991px) {
    .d-lg-block { display: none  !important; }
}

/* ─── Featured boats: standardize card image aspect ratio ─── */
.tourCard.-type-1 .tourCard__image .ratio.ratio-16x9 {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.tourCard.-type-1 .tourCard__image .ratio.ratio-16x9 img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ─── Joy slider: hide swiper nav dots/arrows ─── */
.joy-section .swiper-button-prev,
.joy-section .swiper-button-next,
.joy-section .swiper-pagination {
    display: none !important;
}

/* ─── Destinations slider: hide nav arrows ─── */
.dest-slider-no-nav .swiper-button-prev,
.dest-slider-no-nav .swiper-button-next {
    display: none !important;
}

/* ─── FAQ custom accordion ─── */
.vt-faq { display: flex; flex-direction: column; gap: 12px; }

.vt-faq__item {
    background: #fff;
    border: 1.5px solid #e8ecf0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vt-faq__item.open {
    border-color: #EB662B;
    box-shadow: 0 4px 20px rgba(235,102,43,0.10);
}
.vt-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #05073C;
    text-align: left;
    transition: color 0.2s;
}
.vt-faq__item.open .vt-faq__question { color: #EB662B; }
.vt-faq__icon {
    font-size: 13px;
    color: #EB662B;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.vt-faq__item.open .vt-faq__icon { transform: rotate(180deg); }
.vt-faq__answer {
    padding: 0 24px 20px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.vt-faq__answer p { margin: 0; }

/* ─── Blog section: ratio helper if missing ─── */
.blog-card-item .ratio.ratio-16x9 {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.blog-card-item .ratio.ratio-16x9 img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ─── Contact section y-gap spacing ─── */
.y-gap-25 > * + * { margin-top: 25px; }

/* ─── Partnership buttons on same row with gap ─── */
.cta__content .d-flex[style*="gap"] { flex-wrap: wrap; }
