﻿/* ================================================================
   AKDENORA UI Enhancements v3.0
   Minimal overrides — main design lives in akdenora-design.css
   ================================================================ */

/* Font face (local/CDN fallback) */
@font-face {
    font-family: "Material Design Icons";
    src: url("mdi/materialdesignicons-webfont.woff2?v=7.1.96") format("woff2"),
        url("mdi/materialdesignicons-webfont.woff?v=7.1.96") format("woff"),
        url("mdi/materialdesignicons-webfont.ttf?v=7.1.96") format("truetype");
    font-weight: normal;
    font-style: normal;
}

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Reservation step 2/3 preserve ── */
.f-white {
    color: #fff !important;
}

.semibold {
    font-weight: 600;
}

.bold {
    font-weight: 700;
}

.pointer {
    cursor: pointer;
}

.dmb {
    display: block;
}

/* Select2 base override */
.select2-container--default .select2-selection--single {
    border: none;
    background: transparent;
    height: 26px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text, #1A202C);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    height: 26px;
}

/* Spinner / loader */
#loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, .75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader.d-none {
    display: none !important;
}

.spinner {
    width: 42px;
    height: 42px;
    border: 4px solid var(--border, #DDE2EA);
    border-top-color: var(--gold, #C9A84C);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .6);
    padding: 20px;
    overflow-y: auto;
}

.modal-content {
    background: #fff;
    max-width: 680px;
    margin: 60px auto;
    border-radius: 16px;
    padding: 32px;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

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

/* Six-hour warning modal */
#modal-container {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .65);
}

#modal-container.six {
    display: flex;
}

.modall {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

/* intl-tel-input reset */
.iti {
    display: block !important;
    width: 100% !important;
}

.iti input[type=tel] {
    height: 26px !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1A202C !important;
    padding: 0 !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background: transparent !important;
    border-right: 1px solid #DDE2EA;
    padding-right: 8px;
    margin-right: 2px;
}

/* ── Passenger Dropdown Fixes ── */
.passenger-line .input-group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 120px !important;
    min-width: 120px !important;
}

.passenger-line .input-group .btn {
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    max-height: 32px !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
}

.passenger-line .input-group input {
    height: 32px !important;
    padding: 0 !important;
    text-align: center !important;
    border: none !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
}

/* ── Currency Dropdown Fixes ── */
.kurs.paxs {
    z-index: 10000 !important;
}

.kur-item {
    position: relative;
    z-index: 10001;
}

.kur-item:hover {
    background: #f5f7fa;
    color: var(--gold-dark);
}

/* ── Blog Grid Fixes ── */
.blog-grid .blog-card {
    display: block !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.blog-grid .blog-image {
    position: relative !important;
    height: 220px !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}

.blog-grid .blog-image > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.blog-grid .blog-content {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 22px 24px !important;
    background: #ffffff !important;
}

.blog-grid .blog-content h3 {
    margin-bottom: 10px !important;
}

.blog-grid .blog-content p {
    margin-bottom: 12px !important;
}

/* ── Blog Detail Modernization ── */
.blog-detail-page .page-header {
    background-size: cover !important;
    background-position: center !important;
}

.blog-detail-page .page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 18, 33, 0.65) 0%, rgba(10, 18, 33, 0.35) 60%, rgba(10, 18, 33, 0.75) 100%);
    z-index: 1;
}

.blog-detail-page .page-header-content {
    text-align: left !important;
    max-width: 860px;
    margin: 0 auto;
}

.blog-detail-page .page-breadcrumb {
    justify-content: flex-start !important;
}

.blog-detail-page .page-title {
    font-size: clamp(28px, 3.2vw, 48px) !important;
    margin-bottom: 12px !important;
}

.blog-detail-page .page-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.blog-detail-page .blog-detail-container {
    background: #f7f9fc !important;
}

.blog-detail-page .blog-detail-content {
    background: #ffffff;
    border: 1px solid #eef2f8;
    border-radius: 18px;
    padding: 28px 30px;
    box-shadow: 0 12px 40px rgba(20, 35, 70, 0.08);
}

.blog-detail-page .detail-image {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}

.blog-detail-page .detail-image img {
    display: block;
    width: 100%;
    height: auto;
}

.blog-detail-page .detail-body {
    font-size: 17px;
    line-height: 1.85;
    color: #24314d;
}

.blog-detail-page .detail-body h1,
.blog-detail-page .detail-body h2,
.blog-detail-page .detail-body h3 {
    color: var(--brand-primary);
    margin: 26px 0 12px;
    line-height: 1.35;
}

.blog-detail-page .detail-body p {
    margin-bottom: 18px;
}

.blog-detail-page .detail-body ul,
.blog-detail-page .detail-body ol {
    padding-left: 22px;
    margin-bottom: 18px;
}

.blog-detail-page .detail-body li {
    margin-bottom: 8px;
}

/* ── Social Section Modernization ── */
.social-section {
    padding: 70px 0;
    background: radial-gradient(1200px 400px at 20% -10%, rgba(211, 175, 110, 0.18), transparent 60%),
                radial-gradient(900px 300px at 90% 10%, rgba(42, 60, 90, 0.12), transparent 60%),
                #f8fafc;
}

.social-section .social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.social-section .social-item {
    background: #ffffff;
    border: 1px solid #e9eef6;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--brand-primary);
    box-shadow: 0 6px 18px rgba(20, 35, 70, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.social-section .social-item i {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5fb;
    font-size: 20px;
    color: var(--brand-primary);
}

.social-section .social-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(20, 35, 70, 0.12);
    border-color: rgba(211, 175, 110, 0.45);
}

/* Brand accents */
.social-item.social-instagram i {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
    color: #fff;
}

.social-item.social-facebook i {
    background: #1877f2;
    color: #fff;
}

.social-item.social-tripadvisor i {
    background: #34e0a1;
    color: #0b4a2f;
}

.social-item.social-google i {
    background: #ffffff;
    color: #1a73e8;
    border: 1px solid #e6edf6;
}

.social-item.social-tiktok i {
    background: #0f0f0f;
    color: #25f4ee;
    box-shadow: 2px 0 0 #fe2c55;
}

.social-item.social-google {
    color: #1a1a1a;
}

.social-item.social-tripadvisor {
    color: #0b4a2f;
}

/* ── Gallery Bottom Spacing Fix ── */
.gallery-section {
    padding-bottom: 36px !important;
}

.gallery-section .swiper,
.gallery-section .swiper-wrapper {
    margin-bottom: 0 !important;
}

@media (max-width: 576px) {
    .social-section {
        padding: 50px 0;
    }
    .social-section .social-item {
        padding: 14px 16px;
    }
}
/* Gallery - force equal thumbs in swiper */
.gallery-section .gallery-item {
  height: 220px;
  aspect-ratio: auto;
}
.gallery-section .gallery-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.gallery-section .gallery-slider-pagination {
  position: relative;
  bottom: auto !important;
  margin-top: 14px;
  text-align: center;
}
.gallery-section .gallery-slider-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 5px !important;
  opacity: 1;
  background: #cbd5e1;
  transition: transform .2s ease, background-color .2s ease;
}
.gallery-section .gallery-slider-pagination .swiper-pagination-bullet-active {
  background: #c9a84c;
  transform: scale(1.15);
}
@media (max-width: 767px) {
  .gallery-section .gallery-item {
    height: 160px;
  }
}

/* Home section spacing rhythm */
.page-home .why-section,
.page-home .destinations-section,
.page-home .social-section,
.page-home .blog-section,
.page-home .gallery-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-home .section-header,
.page-home .section-header-center {
  margin-bottom: 30px;
}

.page-home .section-title-link {
  color: inherit;
  transition: color .2s ease, opacity .2s ease;
}

.page-home .section-title-link:hover,
.page-home .section-title-link:focus {
  color: #a8882e;
  opacity: .95;
}

/* Gallery had a tighter bottom value; normalize on homepage */
.page-home .gallery-section {
  padding-bottom: 60px !important;
}

/* Reduce visual gap before footer */
.page-home .akd-footer {
  padding-top: 46px;
}

@media (max-width: 991px) {
  .page-home .why-section,
  .page-home .destinations-section,
  .page-home .social-section,
  .page-home .blog-section,
  .page-home .gallery-section {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .page-home .section-header,
  .page-home .section-header-center {
    margin-bottom: 26px;
  }

  .page-home .akd-footer {
    padding-top: 42px;
  }
}

@media (max-width: 576px) {
  .page-home .why-section,
  .page-home .destinations-section,
  .page-home .social-section,
  .page-home .blog-section,
  .page-home .gallery-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .page-home .section-header,
  .page-home .section-header-center {
    margin-bottom: 20px;
  }

  .page-home .akd-footer {
    padding-top: 36px;
  }
}

/* Contact map fallback */
.contact-map-container .map-box {
  width: 100%;
  max-width: 100%;
  height: 360px;
  margin: 0;
  float: none;
  border-radius: 16px;
  overflow: hidden;
  border: 0;
}

/* Why section premium motion */
.why-section .anim-card {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: transform .6s ease, opacity .6s ease, box-shadow .6s ease;
  will-change: transform, opacity;
}
.why-section .anim-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.why-section .why-icon {
  transition: transform .45s ease, box-shadow .45s ease;
}
.why-section .anim-card:hover .why-icon {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 24px rgba(13,27,53,0.18);
}

/* Booking lookup page */
.booking-lookup-section {
  margin-top: 24px;
  margin-bottom: 60px;
}
.booking-lookup-wrap {
  display: block;
}
.booking-lookup-card {
  border: 1px solid rgba(13, 27, 53, 0.08);
  border-radius: 18px;
  overflow: hidden;
  animation: bookingFadeUp .7s ease both;
  max-width: 520px;
  width: 100%;
}
.booking-lookup-header {
  margin-bottom: 18px;
  text-align: left;
}
.booking-lookup-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.booking-lookup-form .btn {
  margin-bottom: 0;
}
.booking-lookup-form .ui-form-helper {
  margin-bottom: 0;
}
.booking-lookup-card .card-body {
  padding-bottom: 28px;
}
@media (max-width: 991px) {
  .booking-lookup-card .card-body { padding-bottom: 24px; }
}
@media (max-width: 575px) {
  .booking-lookup-card .card-body { padding-bottom: 22px; }
}
.booking-lookup-card .card-body {
  padding: 28px;
}
.booking-lookup-form .form-group {
  margin-bottom: 12px;
}
.booking-lookup-form .btn {
  margin-bottom: 0;
}
.booking-lookup-form .ui-form-helper {
  margin-bottom: 0;
}
.booking-lookup-card {
  padding-bottom: 0;
}
.booking-lookup-section .ui-form-label {
  font-weight: 600;
  color: #0D1B35;
}
.booking-lookup-section .form-control {
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(13,27,53,0.12);
  box-shadow: none;
}
.booking-lookup-section .form-control:focus {
  border-color: rgba(13,27,53,0.45);
  box-shadow: 0 0 0 0.2rem rgba(13,27,53,0.08);
}
.booking-lookup-section .btn-primary {
  background: linear-gradient(135deg, #0D1B35 0%, #1E3565 100%);
  border: 0;
  height: 48px;
  border-radius: 12px;
  font-weight: 600;
}
.booking-lookup-section .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13,27,53,0.18);
}
.booking-lookup-section .ui-form-hint {
  color: #60708b;
}
@keyframes bookingFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 991px) {
  .booking-lookup-card .card-body { padding: 28px; }
}
@media (max-width: 575px) {
  .booking-lookup-card .card-body { padding: 22px; }
}
