/* =====================================================
   Gofly Theme - Layout CSS (Header + Footer + Global)
   maldivler.com.tr için özelleştirilmiş
   ===================================================== */

/* ── Global Variables ── */
:root {
    --gofly-primary: #4DA528;
    --gofly-primary-rgb: 77, 165, 40;
    --gofly-primary-dark: #3d8420;
    --gofly-primary-light: #5eb83a;
    --gofly-secondary: #f59e0b;
    --gofly-topbar-bg: #EBEBEB;
    --gofly-footer-bg: #1D231F;
    --gofly-form-bg: #F3F8F6;
    --gofly-dark: #1D231F;
    --gofly-dark-2: #2a322c;
    --gofly-gray: #6c757d;
    --gofly-light-gray: #F3F8F6;
    --gofly-border: #e5e9ef;
    --gofly-white: #ffffff;
    --gofly-text: #4a5568;
    --gofly-heading: #0d1b2a;
    --gofly-font-primary: 'Poppins', sans-serif;
    --gofly-font-secondary: 'Roboto', sans-serif;
    --gofly-radius: 8px;
    --gofly-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --gofly-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --gofly-transition: all 0.3s ease;
    --header-height: 76px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body.gofly-theme-body {
    font-family: var(--gofly-font-secondary);
    color: var(--gofly-text);
    background: var(--gofly-white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--gofly-transition);
}

/* Form alanları arka plan rengi */
.gofly-theme-body .banner-form__wrapper,
.gofly-theme-body .banner-form__control input[type="text"],
.gofly-theme-body .banner-form__control input[type="date"],
.gofly-theme-body .banner-form__control .dropdown-toggle {
    background-color: var(--gofly-form-bg) !important;
}

/* ── Utility ── */
.gofly-theme-body .page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

/* Footer altı boşluğu kaldır */
html,
body.gofly-theme-body {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.gofly-footer {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--gofly-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--gofly-transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(77, 165, 40, 0.4);
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background: var(--gofly-primary-dark);
    transform: translateY(-2px);
}

/* =====================================================
   TOPBAR
   ===================================================== */
.topbar-area {
    background: var(--gofly-topbar-bg);
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.topbar-info-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.topbar-info-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gofly-text);
    font-size: 13px;
    font-family: var(--gofly-font-secondary);
}

.topbar-info-list li svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.topbar-info-list li a {
    color: var(--gofly-text);
}

.topbar-info-list li a:hover {
    color: var(--gofly-primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.topbar-social {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-social a {
    color: var(--gofly-text);
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gofly-border);
    transition: var(--gofly-transition);
}

.topbar-social a:hover {
    color: #fff;
    background: var(--gofly-primary);
    border-color: var(--gofly-primary);
}

.topbar-switchers {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language & Currency Switcher */
.topbar-switchers .language-switcher a,
.topbar-switchers .currency-switcher a {
    color: var(--gofly-text) !important;
    font-size: 13px;
}

/* =====================================================
   HEADER
   ===================================================== */
.header-area {
    background: var(--gofly-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: var(--gofly-transition);
    border-bottom: 3px solid var(--gofly-primary);
}

.header-area.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 20px;
}

/* Logo */
.header-logo a {
    display: flex;
    align-items: center;
}

/* Navigation */
.main-nav .nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-list>li {
    position: relative;
}

.main-nav .nav-list>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: var(--gofly-heading);
    font-family: var(--gofly-font-primary);
    font-size: 14.5px;
    font-weight: 500;
    border-radius: var(--gofly-radius);
    transition: var(--gofly-transition);
    white-space: nowrap;
}

.main-nav .nav-list>li>a svg {
    transition: var(--gofly-transition);
}

.main-nav .nav-list>li>a:hover,
.main-nav .nav-list>li>a.active {
    color: var(--gofly-primary);
    background: rgba(77, 165, 40, 0.08);
}

/* Anasayfa navbar – menü itemleri beyaz (travel-agency-04 gibi) */
.header-area.style-3 .main-nav .nav-list > li > a {
    color: var(--gofly-white) !important;
}
.header-area.style-3 .main-nav .nav-list > li > a svg {
    fill: var(--gofly-white);
    color: var(--gofly-white);
}
.header-area.style-3 .main-nav .nav-list > li > a:hover,
.header-area.style-3 .main-nav .nav-list > li > a.active {
    color: var(--gofly-white) !important;
    background: rgba(255, 255, 255, 0.15);
}
.header-area.style-3 .main-nav .nav-list > li > a:hover svg {
    fill: var(--gofly-white);
    color: var(--gofly-white);
}

/* Anasayfa navbar: search ikonu beyaz */
.header-area.style-3 .search-bar .header-search-btn {
    color: var(--gofly-white) !important;
}
.header-area.style-3 .search-bar .header-search-btn svg {
    fill: var(--gofly-white);
    color: var(--gofly-white);
}
.header-area.style-3 .search-bar .header-search-btn:hover {
    color: var(--gofly-white) !important;
    background: rgba(255, 255, 255, 0.15);
}
.header-area.style-3 .search-bar .header-search-btn:hover svg {
    fill: var(--gofly-white);
    color: var(--gofly-white);
}

/* Anasayfa navbar: scroll sonrası arka plan primary (siyah yerine) */
.header-area.style-3.sticky {
    background-color: var(--primary-color1, var(--gofly-primary)) !important;
}

/* Dropdown */
.main-nav .has-dropdown {
    position: relative;
}

.main-nav .has-dropdown:hover>a svg {
    transform: rotate(180deg);
}

.main-nav .dropdown-menu-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--gofly-white);
    border-radius: var(--gofly-radius);
    box-shadow: var(--gofly-shadow-lg);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--gofly-transition);
    border: 1px solid var(--gofly-border);
    z-index: 100;
}

.main-nav .has-dropdown:hover .dropdown-menu-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .dropdown-menu-nav li a {
    display: block;
    padding: 8px 18px;
    color: var(--gofly-text);
    font-size: 14px;
    font-family: var(--gofly-font-primary);
    transition: var(--gofly-transition);
}

.main-nav .dropdown-menu-nav li a:hover {
    color: var(--gofly-primary);
    background: rgba(77, 165, 40, 0.08);
    padding-left: 24px;
}

.main-nav .dropdown-menu-nav .dropdown-divider-item {
    border-top: 1px solid var(--gofly-border);
    margin-top: 4px;
    padding-top: 4px;
}

.main-nav .dropdown-menu-nav .dropdown-divider-item a {
    color: var(--gofly-primary);
    font-weight: 500;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search-btn,
.user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gofly-heading);
    padding: 7px 10px;
    border-radius: var(--gofly-radius);
    font-size: 14px;
    font-family: var(--gofly-font-primary);
    font-weight: 500;
    transition: var(--gofly-transition);
    background: none;
    border: none;
    cursor: pointer;
}

.header-search-btn:hover,
.user-btn:hover {
    color: var(--gofly-primary);
    background: rgba(77, 165, 40, 0.08);
}

/* User Dropdown */
.header-user-dropdown {
    position: relative;
}

.header-user-dropdown .dropdown-menu {
    min-width: 200px;
    border-radius: var(--gofly-radius);
    border: 1px solid var(--gofly-border) !important;
    box-shadow: var(--gofly-shadow-lg) !important;
    margin-top: 8px;
}

/* Mobile Toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 1px solid var(--gofly-border);
    border-radius: var(--gofly-radius);
    cursor: pointer;
    transition: var(--gofly-transition);
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gofly-heading);
    border-radius: 2px;
    transition: var(--gofly-transition);
}

.mobile-menu-btn:hover {
    border-color: var(--gofly-primary);
}

.mobile-menu-btn:hover span {
    background: var(--gofly-primary);
}

/* =====================================================
   MOBILE MENU
   ===================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: var(--gofly-transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--gofly-white);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gofly-border);
}

.mobile-nav-close {
    background: none;
    border: 1px solid var(--gofly-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gofly-heading);
    transition: var(--gofly-transition);
}

.mobile-nav-close:hover {
    background: var(--gofly-primary);
    color: #fff;
    border-color: var(--gofly-primary);
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
}

.mobile-nav-list>li>a {
    display: block;
    padding: 12px 20px;
    color: var(--gofly-heading);
    font-family: var(--gofly-font-primary);
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--gofly-transition);
}

.mobile-nav-list>li>a:hover {
    color: var(--gofly-primary);
    padding-left: 28px;
}

.mobile-nav-search a {
    text-decoration: none;
}
.mobile-nav-search a svg {
    flex-shrink: 0;
    fill: currentColor;
}

.mobile-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--gofly-light-gray);
    display: none;
}

.mobile-sub-menu.open {
    display: block;
}

.mobile-sub-menu li a {
    display: block;
    padding: 10px 20px 10px 32px;
    color: var(--gofly-gray);
    font-size: 14px;
    transition: var(--gofly-transition);
}

.mobile-sub-menu li a:hover {
    color: var(--gofly-primary);
}

.mobile-nav-bottom {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid var(--gofly-border);
}

.mobile-nav-bottom a {
    color: var(--gofly-gray);
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gofly-border);
    transition: var(--gofly-transition);
}

.mobile-nav-bottom a:hover {
    color: #fff;
    background: var(--gofly-primary);
    border-color: var(--gofly-primary);
}

/* =====================================================
   FOOTER (travel-agency-02: newsletter + footer-section two)
   ===================================================== */
.gofly-footer {
    background: var(--gofly-footer-bg);
    color: rgba(255, 255, 255, 0.75);
    margin-top: auto;
}

/* Yeni footer (footer-section two) tema rengi */
.footer-section.gofly-footer-theme {
    background: var(--gofly-footer-bg);
    background-image: none;
}

/* Logo altında açıklama metni */
.footer-section.gofly-footer-theme .footer-logo-and-addition-info .footer-logo-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 14px 0;
    max-width: 280px;
}

/* İletişim Bilgileri: li'ler arası boşluğu azalt */
.footer-section.gofly-footer-theme .footer-widget .contact-list .single-contact {
    margin-bottom: 14px;
}
.footer-section.gofly-footer-theme .footer-widget .contact-list .single-contact:last-child {
    margin-bottom: 0;
}
.footer-section.gofly-footer-theme .footer-widget .contact-list .single-contact .content span {
    margin-bottom: 4px;
}

.footer-main {
    padding: 70px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about .footer-logo img {
    max-height: 50px;
    width: auto;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer-social .social-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--gofly-transition);
}

.footer-social .social-link:hover {
    color: #fff;
    background: var(--gofly-primary);
    border-color: var(--gofly-primary);
    transform: translateY(-2px);
}

.footer-widget-title {
    color: var(--gofly-white);
    font-family: var(--gofly-font-primary);
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--gofly-primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--gofly-transition);
}

.footer-links li a:hover {
    color: var(--gofly-primary-light);
    padding-left: 4px;
}

.footer-links li a::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gofly-primary);
    flex-shrink: 0;
    opacity: 0.6;
    transition: var(--gofly-transition);
}

.footer-links li a:hover::before {
    opacity: 1;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact-list .contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gofly-primary-light);
    margin-top: 2px;
}

.footer-contact-list li a {
    color: rgba(255, 255, 255, 0.65);
    display: block;
}

.footer-contact-list li a:hover {
    color: var(--gofly-primary-light);
}

/* Footer Bottom */
.footer-bottom {
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    margin: 0;
    text-align: center;
}

.footer-copyright a {
    color: var(--gofly-primary-light);
}

.footer-copyright a:hover {
    color: var(--gofly-white);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-search-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    .topbar-area {
        display: none;
    }

    :root {
        --header-height: 88px;
    }

    .footer-main {
        padding: 50px 0 30px;
    }

    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 575px) {
    .mobile-nav {
        width: 280px;
    }
}

/* =====================================================
   ITI (intl-tel-input) fix
   ===================================================== */
.iti,
.iti-full-width {
    width: 100% !important;
}

/* =====================================================
   Language & Currency Switcher (Gofly uyumu)
   ===================================================== */
.language-switcher select,
.currency-switcher select {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 12px;
    cursor: pointer;
}

.language-switcher select option,
.currency-switcher select option {
    color: #333;
    background: #fff;
}

/* =====================================================
   Inline JSON-LD Schema img override
   ===================================================== */
.gofly-theme-body .custom-cursor__cursor {
    display: none !important;
}

/* =====================================================
   Newsletter: tam görünsün, footer üstte kalmasın
   (Temadaki margin-bottom:-145px footer'ı yukarı çekip bülteni kesiyordu;
   kaldırıyoruz, bülten tam görünsün, footer altta kalsın.)
   ===================================================== */
.blog-and-newsletter-section {
    overflow: hidden;
    position: relative;
    z-index: 10 !important;
}

.blog-and-newsletter-section .newsletter-section,
.blog-and-newsletter-section .newsletter-wrapper {
    position: relative;
    z-index: 2 !important;
}

/* Bülten kutusu tam görünsün: negatif margin kaldırıldı, alt boşluk ver */
.blog-and-newsletter-section .newsletter-section .newsletter-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 55px !important;
}
.blog-and-newsletter-section .newsletter-section {
    padding-bottom: 50px;
}

/* Dekoratif bg-shape: bülten kutusunun altında kalsın */
.blog-and-newsletter-section .bg-shape {
    bottom: 0 !important;
}

/* Footer, newsletter'ın altında kalsın (görsel sıra) */
.footer-section.two.gofly-footer-theme,
.gofly-theme-body .footer-section,
.footer-section {
    position: relative;
    z-index: 1 !important;
}

/* Turlar sayfası: içerik ve pagination newsletter şeklinin üstünde kalsın */
.tours-page-content {
    position: relative;
    z-index: 1;
}