/* style.css */

/* MAVİ, AÇIK MAVİ VE SNOW RENK TEMASI */
:root {
    --mavi: #1e88e5;
    --acik-mavi: #90caf9;
    --cok-acik-mavi: #f0f8ff;
    --koyu-mavi: #355384;
    --snow: #FFFAFA;
    --koyu-gri: #333;
}

body {
    background-color: var(--cok-acik-mavi);
    color: var(--koyu-gri);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Küçük cihazlarda yatay kaymayı engellemek için güvenli sınır */
@media (max-width: 360px) {

    html,
    body {
        overflow-x: hidden;
    }
}

a,
a:visited {
    color: var(--koyu-mavi);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    padding: 0 10px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.section-padding {
    padding: 25px 0;
}

/* Utility: light background section wrapper (used on contact page) */
.bg-light {
    background-color: #f7fbff;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--koyu-gri);
}

/* Hoşgeldiniz başlığının boyutunu ayarla */
#hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    /* Başlık ve paragraf arasına boşluk ekle */
}

.btn,
a.btn {
    background: var(--koyu-mavi);
    color: var(--snow);
    border: 1px solid var(--acik-mavi);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.btn:hover,
a.btn:hover {
    background: var(--acik-mavi);
    color: var(--koyu-mavi);
}

.mobile-only {
    display: none !important;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block !important;
    }
}

/* Make the hero "Yatlar ve Rezervasyon" button behave like header nav links on hover */
.hero-reserve {
    /* keep base button appearance */
    display: inline-block;
    position: relative;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    /* button itself should not move or change color on hover */
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Label inside the button moves like header links; button stays fixed */
.hero-reserve-label {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-decoration 0.3s ease;
}

.hero-reserve:hover .hero-reserve-label {
    transform: translateY(-5px);
    /* keep the same text color as the button */
    color: inherit;
    text-decoration: underline;
}

/* Ensure the hero button itself does NOT change background/color on hover (override .btn:hover) */
.hero-reserve:hover {
    background: var(--koyu-mavi) !important;
    color: var(--snow) !important;
    transform: none !important; /* prevent button moving */
}

/* Header ve Footer */
header,
footer {
    background-color: var(--koyu-mavi);
    color: var(--snow);
    padding: 20px 0;
    text-align: center;
    direction: ltr;
}

/* Ziyaretçi sayacı kaldırıldı */

header a,
header a:visited,
footer a,
footer a:visited {
    color: var(--snow) !important;
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    direction: ltr;
}

header h1 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--snow);
    margin: 0;
}

/* Adventure ve Yat Kiralama farklı boyutları */
.main-title {
    font-size: 2.5rem;
}

.sub-title {
    font-size: 1.8rem;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.logo {
    height: 3.25rem; /* increased from 2.5rem for better visibility on desktop */
    width: auto;
    object-fit: contain;
}

/* Navigation */
#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    direction: ltr;
}

#main-nav ul li a {
    color: var(--snow);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

#main-nav ul li a:hover {
    color: var(--acik-mavi);
    transform: translateY(-5px);
    text-decoration: underline;
}

.menu-toggle {
    display: none;
    background: var(--koyu-mavi);
    border: none;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
    padding: 4px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(30, 136, 229, 0.10);
    transition: background 0.2s;
}

body.dark .menu-toggle {
    background: var(--dark-bg-alt);
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--snow);
}

/* Sabit iletişim butonları */
.contact-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-float {
    display: block;
    text-decoration: none;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.whatsapp-float img:hover {
    transform: translateY(-7px);
}

/* Telefon butonu stilleri */
.phone-float .phone-icon-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    object-fit: cover;
    display: block;
}

.phone-float:hover .phone-icon-img {
    transform: translateY(-7px);
}

.lang-switcher {
    text-align: right;
    margin: 10px 20px 0 0;
    min-height: 50px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    direction: ltr;
}

.lang-btn {
    background: var(--koyu-mavi);
    color: var(--snow);
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: normal;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
    min-width: 80px;
    white-space: nowrap;
}

.lang-btn:hover,
.lang-btn:focus {
    background: var(--acik-mavi);
    color: var(--koyu-mavi);
    outline: none;
}

.lang-btn.active {
    background: var(--acik-mavi);
    color: var(--koyu-mavi);
    font-weight: normal;
    box-shadow: 0 2px 12px rgba(21, 101, 192, 0.15);
}

/* Removed duplicated 768px header/nav mobile block (consolidated below) */

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    /* Contact form mobil ayarları */
    .contact-form,
    .contact-details {
        padding: 15px 10px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 10px 12px;
    }

    .map-container {
        margin-left: 5px;
        margin-right: 5px;
    }

    /* Yacht gallery küçük mobil ayarları */
    .yacht-gallery-section {
        padding: 15px 0;
        min-height: 100vh;
    }

    .yacht-gallery-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        /* Küçük mobil için yeterli boşluk */
        padding: 10px;
        /* Çevre boşluğu */
        max-width: none;
        /* Tam genişlik kullan */
        margin: 20px auto;
        /* Ortalama */
        align-items: start;
        /* Üst hizalama */
        justify-items: stretch;
        /* Kartlar sütun genişliğini doldursun */
    }

    .yacht-box {
        min-height: 240px;
        /* Küçük mobil için sabit yükseklik */
        max-height: 280px;
        padding: 8px;
        width: 100%;
        max-width: none;
        /* Sütun genişliği kadar genişle */
        margin-bottom: 8px;
        /* Alt boşluk */
        box-sizing: border-box;
    }

    .yacht-box img {
        height: 100px;
        /* Küçük mobil için daha küçük resim */
    }

    .yacht-box .yacht-name {
        font-size: 0.7rem;
        /* Küçük mobil için daha küçük font */
        margin: 3px 0 2px;
        padding: 0 4px;
        /* Küçük mobil için sağ-sol padding */
    }

    .yacht-box .yacht-price {
        font-size: 0.6rem;
        margin: 0;
        color: #4f5b66;
        opacity: 0.9;
    }

    .calculate-price-btn,
    .more-photos-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-height: 28px;
    }
}

.aboutus-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .lang-switcher {
        text-align: center;
        margin: 16px 0 0 0;
        justify-content: center;
        flex-wrap: wrap;
        /* Küçük ekranlarda butonlar satır kaydırabilsin */
        gap: 6px;
        max-width: 100%;
        overflow-x: hidden;
        /* Yatay taşmayı engelle */
        direction: ltr;
    }

    .lang-btn {
        margin: 6px 2px 0 2px;
        min-width: auto;
        /* İçeriğe göre genişlik */
        font-size: 0.85rem;
        padding: 6px 10px;
        flex: 0 0 auto;
        /* Shrink olmasın, satır atılsın */
    }
}

/* iPhone SE ve çok küçük ekranlar için ekstra sıkılaştırma */
@media (max-width: 360px) {
    .lang-switcher {
        gap: 4px;
        padding: 0 6px;
    }

    .lang-btn {
        font-size: 0.8rem;
        padding: 5px 9px;
    }

    .menu-toggle {
        right: 12px;
        top: 12px;
    }

    /* Başlık boyutlarını daha da küçült */
    .logo {
        height: 2.25rem; /* small increase for very small screens while keeping layout */
    }

    .main-title {
        font-size: 1.25rem;
    }

    .sub-title {
        font-size: 0.95rem;
    }
}

/* Hamburger Menü - 768px Media Query Birleştirildi */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
        position: relative;
    }

    .header-title {
        margin-bottom: 0.5rem;
        gap: 10px;
        /* Logo ve metin arasında boşluk */
        justify-content: flex-start;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .logo {
        height: 2.75rem; /* increased slightly for tablet/smaller desktop */
        /* Biraz daha belirgin logo */
        width: auto;
        flex-shrink: 0;
    }

    header h1 {
        font-size: 1.6rem;
        /* Genel başlık boyutu */
        text-align: left;
        margin: 0;
        padding-left: 0;
        /* İçerik padding'i header-title'da */
        line-height: 1.1;
    }

    /* Başlık içindeki ana ve alt başlık boyutları */
    .main-title {
        font-size: 1.4rem;
        line-height: 1.15;
        display: block;
    }

    .sub-title {
        display: block;
        /* Alt satıra insin, taşma olmasın */
        font-size: 1.05rem;
        line-height: 1.15;
        font-weight: 500;
        opacity: 0.95;
        margin-top: 2px;
    }

    #main-nav,
    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* Use the requested solid background color when the mobile menu is open */
        background-color: #355384;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        direction: ltr;
    }

    #main-nav.active,
    header nav.active {
        display: flex;
        transform: translateX(0);
    }

    #main-nav ul,
    header ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }

    #main-nav ul li,
    header ul li {
        padding: 20px 0;
        width: 100%;
    }

    #main-nav ul li a,
    header ul li a {
        font-size: 1.5rem;
        display: block;
    }

    .menu-toggle {
        display: block;
        z-index: 1000;
    }

    /* Hamburger -> X Animasyonu */
    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .menu-toggle .bar {
        transition: all 0.3s ease-in-out;
    }

    /* Mobil cihazlarda iletişim butonları */
    .contact-buttons {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .whatsapp-float img,
    .phone-float .phone-icon-img {
        width: 45px;
        height: 45px;
    }

    /* Contact form mobil ayarları */
    .contact-flex {
        flex-direction: column;
        gap: 15px;
        padding: 0 5px;
    }

    .contact-details,
    .contact-form-wrapper {
        min-width: auto;
    }

    .contact-form,
    .contact-details {
        padding: 20px 15px;
    }

    /* Yacht gallery mobil ayarları */
    .yacht-gallery-section {
        padding: 20px 0;
    }

    .yacht-gallery-section h2 {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        /* Mobil için yeterli boşluk */
        padding: 15px;
        /* Çevre boşluğu */
        max-width: none;
        /* Tam genişlik kullan */
        margin: 20px auto;
        /* Ortalama */
        align-items: start;
        /* Üst hizalama */
        justify-items: stretch;
        /* Kartlar sütun genişliğini doldursun */
    }

    .yacht-box {
        min-height: 260px;
        /* Mobil için sabit yükseklik */
        max-height: 300px;
        padding: 10px;
        width: 100%;
        max-width: none;
        /* Sütun genişliği kadar genişle */
        margin-bottom: 10px;
        /* Alt boşluk */
        box-sizing: border-box;
    }

    .yacht-box img {
        height: 110px;
        /* Mobil için daha küçük resim */
    }

    .yacht-box .yacht-name {
        font-size: 0.75rem;
        /* Mobil için daha küçük font */
        padding: 0 6px;
        /* Mobil için sağ-sol padding */
        margin-bottom: 4px;
    }

    .yacht-box .yacht-price {
        font-size: 0.65rem;
        margin: 0 0 4px;
        color: #4f5b66;
        opacity: 0.9;
    }

    .calculate-price-btn,
    .more-photos-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 30px;
    }
}


/* Servis Kutuları */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-box {
    background-color: #FFFFFF;
    border: 1px solid #EAECEE;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.service-content {
    padding: 10px 0;
}

.service-content h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: #2C3E50;
}

.service-content p {
    color: #555;
    line-height: 1.6;
}

/* Fotoğraf Galerisi */
.photo-gallery {
    margin: 40px 0;
}

.gallery-title {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: var(--koyu-mavi);
}

/* İletişim Sayfası */
.contact-flex {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 6px;
    justify-content: center;
    align-items: stretch; /* make children match height */
}

.contact-details {
    flex: 0 1 360px; /* allow shrinking, set a smaller base width */
    max-width: 420px;
    background: linear-gradient(135deg, var(--koyu-mavi) 0%, var(--mavi) 100%);
    color: white;
    padding: 20px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(30, 136, 229, 0.18);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.contact-details p {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 0;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-align: center;
}

.contact-details p:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 0;
}

.contact-details p i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-size: 14px;
}

.contact-details a {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    color: var(--acik-mavi) !important;
}

.social-media-contact {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.social-media-contact h4 {
    margin-bottom: 12px;
    color: white;
    font-size: 1.15rem;
}

.social-media-contact a {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 8px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    color: white !important;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.social-media-contact a:hover {
    background: white;
    color: var(--koyu-mavi) !important;
    transform: translateY(-2px);
}

/* Instagram specific: stack icon above text */
.social-media-contact .facebook-link,
.social-media-contact .instagram-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 10px;
    gap: 6px;
    background: rgba(255, 255, 255, 0.12);
}

.social-media-contact .facebook-link .social-icon,
.social-media-contact .instagram-link .social-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

/* Make sure the text is on its own line and slightly smaller */
.social-media-contact .facebook-link span,
.social-media-contact .instagram-link span {
    display: block;
    font-size: 0.8rem;
    line-height: 1;
    color: inherit;
}

@media (max-width: 480px) {
    .social-media-contact .facebook-link .social-icon,
    .social-media-contact .instagram-link .social-icon {
        width: 30px;
        height: 30px;
    }
    .social-media-contact .facebook-link span,
    .social-media-contact .instagram-link span {
        font-size: 0.75rem;
    }
}

.contact-form-wrapper {
    flex: 0 1 420px; /* narrower form column */
    max-width: 520px;
    min-width: 300px;
}

.contact-form-wrapper h3 {
    margin-bottom: 18px;
    font-size: 1.6rem;
    color: var(--koyu-mavi);
    text-align: center;
}

.contact-form {
    background: white;
    padding: 20px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 136, 229, 0.08);
}

.contact-form .form-group {
    margin-bottom: 14px;
    position: relative;
    text-align: center;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--koyu-gri);
    font-size: 0.95rem;
    text-align: center;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e8f0fe;
    border-radius: 8px;
    font-size: 0.98rem;
    background: #fafbfc;
    transition: all 0.25s ease;
    box-sizing: border-box;
    font-family: inherit;
    text-align: center;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--mavi);
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.08);
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.5;
    text-align: left;
}

.contact-form .btn {
    width: 100%;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--koyu-mavi) 0%, var(--mavi) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.contact-form .btn:hover {
    background: linear-gradient(135deg, var(--mavi) 0%, var(--acik-mavi) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.25);
}

.contact-form .btn:active {
    transform: translateY(0);
}

.map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 136, 229, 0.08);
    margin-left: 6px;
    margin-right: 6px;
    /* Allow map column to grow and take remaining space next to contact details */
    flex: 1 1 640px;
    max-width: 840px;
}

.map-container iframe {
    width: 100%;
    height: 480px; /* increased map height for desktop */
    border: none;
}

/* Responsive map heights */
@media (max-width: 1024px) {
    .map-container iframe {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .map-container {
        max-width: none;
    }
    .map-container iframe {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 260px;
    }
}

/* Hesaplama Formu */
.custom-calc-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 2px 16px rgba(30, 136, 229, 0.07);
}

.custom-calc-form .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.custom-calc-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    color: #223;
}

.custom-calc-form input[type="text"],
.custom-calc-form input[type="tel"],
.custom-calc-form input[type="date"],
.custom-calc-form input[type="time"],
.custom-calc-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7fafc;
    margin-bottom: 2px;
    transition: border 0.2s;
    box-sizing: border-box;
    display: block;
}

/* Yolcu sayısı select'i için özel stil */
.custom-calc-form select#modal-passenger {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
}

.custom-calc-form select#modal-passenger.mobile-select {
    max-height: none;
    overflow-y: visible;
    padding: 10px 12px;
}

/* Select dropdown açıldığında görünecek seçenekler */
.custom-calc-form select#modal-passenger option {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.custom-calc-form select#modal-passenger option:hover {
    background-color: #f5f5f5;
}

.custom-calc-form select#modal-passenger option:selected {
    background-color: var(--mavi);
    color: white;
}

.custom-calc-form input[type="text"]:focus,
.custom-calc-form input[type="tel"]:focus,
.custom-calc-form input[type="date"]:focus,
.custom-calc-form input[type="time"]:focus,
.custom-calc-form select:focus {
    border-color: var(--koyu-mavi);
    outline: none;
}

.time-range-group .time-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    direction: ltr;
}

.time-range-group select {
    flex: 1 1 140px;
    min-width: 120px;
}

.time-range-group .time-separator {
    font-weight: 600;
    color: var(--koyu-mavi);
}

.time-range-note {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: rgba(51, 51, 51, 0.72);
}

/* Date picker indicator tweaks */
.custom-calc-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.custom-calc-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.custom-calc-form .btn {
    background: var(--koyu-mavi);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-calc-form .btn:hover {
    background: var(--acik-mavi);
    color: var(--koyu-mavi);
}

/* Removed label[for="extras"] rule (no matching element in DOM) */

.custom-calc-form input[type="checkbox"] {
    accent-color: var(--koyu-mavi);
    margin-right: 6px;
}

/* .result removed (unused) */

/* .calculate-content h2 kaldırıldı (kullanılmıyor) */

.fixed-result {
    position: sticky;
    top: 20px;
    z-index: 10;
}

@media (max-width: 700px) {
    .fixed-result {
        position: static;
        margin-bottom: 16px;
    }
}

/* Yat Galerisi Stilleri */
.yacht-gallery-section {
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    max-width: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.yacht-gallery-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--koyu-mavi);
}

/* Ana container stilleri */
main {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Dil içerik konteynerları (legacy) kaldırıldı */

/* Birleştirilmiş Gallery Grid Stilleri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 sütun yapıldı */
    gap: 25px;
    /* Biraz daha fazla boşluk */
    margin: 20px auto;
    /* Ortalama için auto margin */
    padding: 20px;
    /* Çevre boşluğu */
    width: 100%;
    max-width: 1000px;
    /* Maximum genişlik sınırı */
    justify-items: center;
    align-items: start;
    /* Üst hizalama - binmeyi önler */
    box-sizing: border-box;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Birleştirilmiş Yacht Box Stilleri */
.yacht-box {
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 18px;
    /* Daha büyük padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    /* Daha yüksek minimum yükseklik */
    max-height: 420px;
    /* Daha yüksek maksimum yükseklik */
    width: 100%;
    max-width: 310px;
    /* Daha geniş maksimum genişlik */
    margin-bottom: 10px;
    /* Alt boşluk */
    position: relative;
    /* Pozisyon kontrolü */
    overflow: hidden;
    /* Taşmayı önler */
    box-sizing: border-box;
    /* Padding dahil boyut hesaplama */
}

.yacht-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.yacht-box.selected {
    border: 3px solid var(--koyu-mavi);
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.3);
}

.yacht-box img {
    width: 100%;
    height: 180px;
    /* Daha büyük resim yüksekliği */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
    /* Daha fazla margin */
    flex-shrink: 0;
}

.yacht-box .yacht-name {
    font-weight: bold;
    color: var(--koyu-mavi);
    margin: 8px 0 6px;
    /* Daha fazla margin */
    font-size: 0.9rem;
    /* Biraz daha büyük font */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 0 12px;
    /* Daha fazla sağ ve sol padding */
    text-transform: uppercase;
    /* Yat isimleri büyük harf */
}

.yacht-box .yacht-price {
    font-size: 0.78rem;
    color: #4f5b66;
    margin: 0 0 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Capacity label next to price; on mobile it will wrap below the price */
.yacht-box .yacht-price .yacht-capacity {
    display: inline-block;
    margin-left: 8px;
    /* inherit font-size from .yacht-price so price and capacity match */
    font-size: inherit;
    color: #667788;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .yacht-box .yacht-price {
        white-space: normal;
    }
    .yacht-box .yacht-price .yacht-capacity {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        /* inherit font-size from parent to match hourly price on mobile */
        font-size: inherit;
        color: #55606a;
    }
}

.yacht-box.selected .yacht-name {
    color: var(--koyu-mavi);
    font-weight: bold;
}

.yacht-box.selected .yacht-price {
    color: var(--koyu-mavi);
}

.yacht-box-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Daha az gap */
    margin-top: auto;
    padding-top: 8px;
    /* Daha az padding */
}

/* Birleştirilmiş Button Stilleri - Tema Renklerine Uygun */
.calculate-price-btn,
.more-photos-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 32px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.calculate-price-btn {
    background: var(--koyu-mavi);
    color: white;
}

.calculate-price-btn:hover {
    background: var(--acik-mavi);
    color: var(--koyu-mavi);
}

.more-photos-btn {
    background: var(--koyu-mavi);
    color: white;
}

.more-photos-btn:hover {
    background: var(--acik-mavi);
    color: var(--koyu-mavi);
}

/* Modal ve Animasyon Stilleri */
.price-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.price-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-modal-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateX(100%);
    animation: slideInFromRight 0.4s ease forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.price-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--acik-mavi);
    padding-bottom: 10px;
}

.price-modal-header h2 {
    color: var(--koyu-mavi);
    margin: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.selected-yacht-info {
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    
}

.selected-yacht-info h3 {
    margin: 0 0 5px 0;
    color: var(--koyu-mavi);
}

.selected-yacht-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Foto Galerisi Modal */
.photo-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.photo-gallery-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.8);
    animation: scaleUp 0.4s ease forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Her zaman 2 sütun */
    gap: 15px;
    margin-top: 15px;
}

/* Mobil için */
@media (max-width: 600px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        /* Mobilde biraz daha az boşluk */
    }
}

/* Tablet için */
@media (min-width: 601px) and (max-width: 1024px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        /* Tablet için orta boşluk */
    }
}

/* Desktop için */
@media (min-width: 1025px) {
    .photo-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        /* Desktop'ta biraz daha fazla boşluk */
    }
}

.photo-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.photo-gallery-item:hover {
    transform: none;
    /* Hover büyütme efekti kapatıldı */
}

.photo-gallery-item img {
    width: 100%;
    height: 150px;
    /* Desktop için sabit yükseklik */
    object-fit: cover;
    border-radius: inherit;
    /* Alt köşeler de üst köşeler gibi yuvarlak olsun */
}

/* Mobil için foto boyutları */
@media (max-width: 600px) {
    .photo-gallery-item img {
        height: 120px;
        /* Mobilde daha küçük yükseklik */
    }
}

/* Tablet için foto boyutları */
@media (min-width: 601px) and (max-width: 1024px) {
    .photo-gallery-item img {
        height: 140px;
        /* Tablet için orta yükseklik */
    }
}

/* Desktop için foto boyutları */
@media (min-width: 1025px) {
    .photo-gallery-item img {
        height: 150px;
        /* Desktop için büyük yükseklik */
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scaleUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Responsive Design - Tablet ve Mobil */
@media (max-width: 1024px) {
    .yacht-gallery-section {
        padding: 30px 0;
        max-width: none;
        min-height: 100vh;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet'te de 3 sütun */
        gap: 20px;
        /* Tablet için uygun boşluk */
        padding: 20px;
        /* Çevre boşluğu */
        max-width: 900px;
        /* Tablet için max genişlik */
        margin: 20px auto;
        /* Ortalama */
        align-items: start;
        /* Üst hizalama */
    }

    .yacht-box {
        min-height: 280px;
        /* Tablet için sabit yükseklik */
        max-height: 320px;
        padding: 10px;
        width: 100%;
        max-width: 280px;
        margin-bottom: 15px;
        /* Alt boşluk */
    }

    .yacht-box img {
        height: 120px;
        /* Tablet için daha küçük resim */
    }
}

/* About Us galerisi: 4 sütunlu grid (desktop), responsive kırılımlar */
.about-gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
}

@media (max-width: 1024px) {
    .about-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .about-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

/* Modal Form ve Sonuç Stilleri */
.map-container {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(30, 136, 229, 0.08);
    margin-left: 6px;
    margin-right: 6px;
    /* Allow map column to grow and take remaining space next to contact details */
    flex: 1 1 640px;
    max-width: 840px;
    display: flex;
    flex-direction: column;
}
.map-container iframe {
    width: 100%;
    height: 100%; /* fill the container */
    border: none;
    display: block;
}

/* Ensure both columns have a consistent minimum height on desktop */
@media (min-width: 900px) {
    .contact-details,
    .map-container {
        min-height: 480px; /* match the desktop map height */
    }
}

.price-extra {
    margin-right: 8px;
}

/* For Arabic / RTL: push each extras row to the far right and keep checkbox at the right edge */
html[dir='rtl'] .extras-container {
    text-align: right;
}

html[dir='rtl'] .extras-label {
    /* Reverse visual order so the checkbox appears at the far right.
       Use row-reverse and anchor the group to the right (flex-start in reversed axis).
    */
    flex-direction: row-reverse;
    justify-content: flex-start;
}

html[dir='rtl'] .extras-label .price-extra {
    /* price sits to the left of the text in rtl (keep spacing) */
    margin-left: 8px;
    margin-right: 0;
}

/* Ensure checkbox spacing looks correct when using flex layout */
.custom-calc-form input[type="checkbox"] {
    margin: 0;
}

html[dir='rtl'] .custom-calc-form input[type="checkbox"] {
    /* small gap so checkbox doesn't touch the edge */
    margin-left: 6px;
    margin-right: 0;
}

.submit-btn {
    background: linear-gradient(135deg, var(--koyu-mavi) 0%, var(--mavi) 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--mavi) 0%, var(--acik-mavi) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
    color: var(--koyu-mavi);
}

.result-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.total-amount {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}

.total-tl {
    color: #0066cc;
}

.currency-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #e8f4fd;
    border-radius: 3px;
    font-size: 14px;
}

.approx-note {
    margin-top: 6px;
    color: #666;
    font-size: 12px;
}

.rate-info {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

/* WhatsApp reservation button */
.wa-action {
    margin-top: 16px;
    text-align: center;
}

.whatsapp-booking-btn {
    display: inline-block;
    background: #25D366;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-booking-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
}

.whatsapp-booking-btn:active {
    transform: translateY(0);
}

/* RTL improvements for modal form */
html[dir='rtl'] .custom-calc-form .form-group {
    text-align: right;
}

html[dir='rtl'] .custom-calc-form label {
    text-align: right;
}

html[dir='rtl'] .extras-container {
    text-align: right;
}

html[dir='rtl'] .custom-calc-form input[type="checkbox"] {
    margin-left: 6px;
    margin-right: 0;
}

html[dir='rtl'] .price-extra {
    margin-left: 8px;
    margin-right: 0;
}

/* Final mobile overrides to ensure 2-column gallery on small screens */
@media (max-width: 768px) {
    .yacht-gallery-section .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-width: none !important;
        justify-items: stretch !important;
    }

    .yacht-gallery-section .yacht-box {
        max-width: none !important;
        width: 100% !important;
    }

    /* Ensure capacity and price are fully visible on small screens.
       Some yacht names wrap to two lines and the fixed card height + overflow:hidden
       was clipping the price/capacity row. Allow the card to grow and let the
       price/capacity wrap. */
    .yacht-gallery-section .yacht-box {
        overflow: visible !important;
        min-height: auto !important;
        max-height: none !important;
        padding-bottom: 12px !important;
    }

    .yacht-gallery-section .yacht-box .yacht-name {
        font-size: 0.9rem !important;
        white-space: normal !important;
        line-height: 1.12 !important;
        padding: 0 8px !important;
    }

    .yacht-gallery-section .yacht-box .yacht-price {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 0.72rem !important;
        padding: 0 8px !important;
    }

    .yacht-gallery-section .yacht-box .yacht-price .yacht-capacity {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 6px !important;
        color: #55606a !important;
        font-size: 0.72rem !important;
        font-weight: 600 !important;
    }
}