/* Supplementary design system styles for avsaadasi.com.tr matching Susanoğlu UI tokens */
:root {
  --avsa-ink: #0f1b2d;
  --avsa-ink-soft: #475569;
  --avsa-ink-mute: #64748b;
  --avsa-sea: #0f766e;
  --avsa-sea-dark: #115e59;
  --avsa-sea-light: #e6f4f3;
  --avsa-mist: #f4f6f7;
  --avsa-line: #e2e8f0;
  --avsa-sun: #f59e0b;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

.avsa-scroll-target,
[id] {
  scroll-margin-top: 5.5rem;
}

/* Header dropdown menus */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 60;
  min-width: 250px;
  max-height: 75vh;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--avsa-line);
  background: #ffffff;
  padding: 0.45rem;
  box-shadow: 0 18px 40px -12px rgba(15, 27, 45, 0.16);
}

.nav-dropdown[hidden] {
  display: none;
}

@media (min-width: 1280px) {
  .nav-dropdown-wrap:hover > .nav-dropdown,
  .nav-dropdown-wrap:focus-within > .nav-dropdown {
    display: block;
  }
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--avsa-ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown a:hover {
  background: var(--avsa-mist);
  color: var(--avsa-sea);
}

/* Filter pill active state */
.filter-btn.is-active,
.chip.is-active {
  background-color: var(--avsa-ink);
  border-color: var(--avsa-ink);
  color: #ffffff;
}

/* Hero Booking / Date & Guest Module (matching user's custom module) */
.avsa-booking-card {
  margin-top: 1.75rem;
  border-radius: 22px;
  background: #ffffff;
  padding: 1.5rem 1.75rem;
  color: #0f1b2d;
  box-shadow: 0 22px 50px -14px rgba(8, 17, 31, 0.45);
}

.avsa-booking-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-bottom: 1px solid #edf1f7;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
}

.avsa-booking-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #dc2626;
  flex-shrink: 0;
}

.avsa-booking-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1b2d;
  margin: 0;
}

.avsa-booking-dates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 640px) {
  .avsa-booking-dates {
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
  }
}

.avsa-date-box {
  position: relative;
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid #e6ebf2;
  background: #fafbfd;
  padding: 1rem 1.15rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.avsa-date-box:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(0, 87, 184, 0.06);
}

.avsa-date-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7c8ba1;
}

.avsa-date-str-row {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avsa-date-str {
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f1b2d;
}

.avsa-date-big-row {
  margin-top: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.avsa-date-day {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: #0f1b2d;
}

.avsa-date-month {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0057b8;
  line-height: 1.2;
}

.avsa-date-weekday {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: #7c8ba1;
  line-height: 1.2;
  margin-top: 2px;
}

.avsa-date-mid-icon {
  display: none;
  align-items: center;
  justify-content: center;
  color: #0057b8;
}

@media (min-width: 640px) {
  .avsa-date-mid-icon {
    display: flex;
  }
}

.avsa-guest-box {
  margin-top: 0.85rem;
  border-radius: 16px;
  border: 1px solid #e6ebf2;
  background: #fafbfd;
  padding: 0.75rem 1.15rem;
}

.avsa-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.avsa-guest-summary {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f1b2d;
}

.avsa-guest-btn {
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #ffffff;
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0057b8;
  transition: background-color 0.15s ease;
}

.avsa-guest-btn:hover {
  background: #eff6ff;
}

.avsa-booking-submit {
  margin-top: 0.9rem;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  background-color: #d60000;
  padding: 0.95rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 20px -4px rgba(214, 0, 0, 0.4);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.avsa-booking-submit:hover {
  background-color: #b80000;
}

/* Facility Detail Gallery Slider (Desktop & Mobile with Overlay Arrows) */
.avsa-gallery-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.avsa-gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.avsa-gallery-slide {
  flex: 0 0 86%;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow: hidden;
  background: var(--avsa-mist);
  aspect-ratio: 4 / 3;
}

@media (min-width: 768px) {
  .avsa-gallery-track {
    gap: 14px;
  }
  .avsa-gallery-slide {
    flex: 0 0 74%;
    aspect-ratio: auto;
    height: 450px;
  }
}

.avsa-gallery-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.avsa-gallery-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.avsa-gallery-btn:hover img {
  transform: scale(1.015);
}

.avsa-gallery-counter {
  position: absolute;
  bottom: 12px;
  left: 12px;
  border-radius: 8px;
  background: rgba(15, 27, 45, 0.78);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.avsa-gal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f1b2d;
  border: 1px solid rgba(15, 27, 45, 0.14);
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

@media (min-width: 768px) {
  .avsa-gal-arrow {
    width: 48px;
    height: 48px;
  }
}

.avsa-gal-arrow:hover {
  background: #0b6e7a;
  color: #ffffff;
  border-color: #0b6e7a;
  transform: translateY(-50%) scale(1.06);
}

.avsa-gal-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.avsa-gal-arrow-left {
  left: 10px;
}

.avsa-gal-arrow-right {
  right: 10px;
}

@media (min-width: 768px) {
  .avsa-gal-arrow-left {
    left: 16px;
  }
  .avsa-gal-arrow-right {
    right: 16px;
  }
}

.avsa-gal-expand-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  border: 1px solid rgba(15, 27, 45, 0.12);
  background: rgba(255, 255, 255, 0.94);
  padding: 7px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f1b2d;
  box-shadow: 0 6px 16px rgba(15, 27, 45, 0.18);
  cursor: pointer;
}

.avsa-gal-expand-btn:hover {
  background: #ffffff;
}

/* Search autocomplete panel */
.avsa-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.5rem);
  z-index: 60;
  max-height: 24rem;
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid var(--avsa-line);
  background: #ffffff;
  padding: 0.5rem;
  color: var(--avsa-ink);
  box-shadow: 0 22px 45px -12px rgba(15, 27, 45, 0.22);
}

/* Editorial prose matching Susanoğlu typography */
.avsa-prose {
  color: var(--avsa-ink);
  font-size: 0.975rem;
  line-height: 1.72;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.avsa-prose img,
.avsa-prose figure,
.avsa-prose .wp-caption,
.avsa-prose video,
.avsa-prose iframe {
  max-width: 100% !important;
  height: auto !important;
}

.avsa-prose .wp-caption {
  width: 100% !important;
}

.avsa-prose > *:first-child {
  margin-top: 0;
}

.avsa-prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--avsa-ink);
}

.avsa-prose h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--avsa-ink);
}

.avsa-prose h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--avsa-ink);
}

.avsa-prose p {
  margin-bottom: 1rem;
  color: #334155;
}

.avsa-prose ul,
.avsa-prose ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: #334155;
}

.avsa-prose ul {
  list-style-type: disc;
}

.avsa-prose ol {
  list-style-type: decimal;
}

.avsa-prose li {
  margin-bottom: 0.4rem;
}

.avsa-prose a {
  color: #0e7490;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.avsa-prose a:hover {
  color: var(--avsa-ink);
}

.avsa-prose strong,
.avsa-prose b {
  color: var(--avsa-ink);
  font-weight: 700;
}

.avsa-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
  border-radius: 16px;
  border: 1px solid var(--avsa-line);
}

.avsa-prose blockquote {
  margin: 1.25rem 0;
  border-left: 3px solid #0e7490;
  background: var(--avsa-mist);
  padding: 0.85rem 1.15rem;
  border-radius: 0 12px 12px 0;
  color: #334155;
}

/* Table wrapper and styling */
.tablo-kapsayici,
.table-container {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 12px;
  border: 1px solid var(--avsa-line);
  background: #ffffff;
}

.avsa-prose table,
.avsa-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
  background: #ffffff;
}

.avsa-prose table thead,
.avsa-table thead,
.avsa-prose table tr:first-child {
  background: var(--avsa-mist);
}

.avsa-prose table th,
.avsa-prose table td,
.avsa-table th,
.avsa-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--avsa-line);
  text-align: left;
  vertical-align: top;
}

.avsa-prose table th,
.avsa-table th {
  font-weight: 700;
  color: var(--avsa-ink);
}

.avsa-rehberi-icerik section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--avsa-line);
}

.avsa-rehberi-icerik .yazar-kutusu {
  margin-top: 2.25rem;
  border-radius: 16px;
  border: 1px solid var(--avsa-line);
  background: var(--avsa-mist);
  padding: 1.35rem 1.5rem;
}

.avsa-rehberi-icerik .yazar-kutusu h3 {
  margin-top: 0;
  color: var(--avsa-ink);
}

.avsa-rehberi-icerik .yazar-kutusu p {
  margin-bottom: 0;
}

/* Easy Table of Contents styled as Susanoğlu mist card */
#ez-toc-container {
  margin: 1.5rem 0;
  border-radius: 16px;
  border: 1px solid var(--avsa-line);
  background: var(--avsa-mist);
  padding: 1rem 1.25rem;
}

#ez-toc-container .ez-toc-title-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

#ez-toc-container .ez-toc-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--avsa-ink);
}

#ez-toc-container .ez-toc-title-toggle {
  display: none;
}

#ez-toc-container nav ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style: decimal;
}

#ez-toc-container nav ul ul {
  margin-top: 0.25rem;
  list-style: disc;
}

#ez-toc-container nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  color: #334155;
}

#ez-toc-container nav a:hover {
  color: #0e7490;
  text-decoration: underline;
}

/* Ferry price calculator widget */
.feribot-sorgulama {
  margin: 1.5rem 0;
  border-radius: 16px;
  border: 1px solid var(--avsa-line);
  background: var(--avsa-mist);
  padding: 1.25rem;
}

.feribot-sorgulama .form-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: end;
}

.feribot-sorgulama label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--avsa-ink-mute);
}

.feribot-sorgulama select,
.feribot-sorgulama input[type="date"] {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--avsa-line);
  background: #ffffff;
  padding: 0.625rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--avsa-ink);
}

.feribot-sorgulama button[type="submit"] {
  width: 100%;
  border-radius: 10px;
  background: #0e7490;
  color: #ffffff;
  padding: 0.68rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  transition: background-color 0.15s ease;
}

.feribot-sorgulama button[type="submit"]:hover {
  background: #0c5f75;
}

/* Contact / Facility Registration Form (.tkf-wrap) */
.tkf-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tkf-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .tkf-row {
    grid-template-columns: 1fr 1fr;
  }
}

.tkf-wrap input[type="text"],
.tkf-wrap input[type="tel"],
.tkf-wrap select,
.tkf-wrap textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--avsa-line);
  background: #ffffff;
  padding: 0.68rem 0.9rem;
  font-size: 0.925rem;
  color: var(--avsa-ink);
  outline: none;
}

.tkf-wrap input:focus,
.tkf-wrap select:focus,
.tkf-wrap textarea:focus {
  border-color: #0e7490;
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14);
}

.tkf-wrap textarea {
  min-height: 110px;
  resize: vertical;
}

.tkf-kvkk {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #475569;
  cursor: pointer;
}

.tkf-kvkk input {
  margin-top: 0.2rem;
}

.tkf-error {
  display: none;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #b91c1c;
}

.tkf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 10px;
  background: #128c4a;
  padding: 0.8rem 1.25rem;
  font-size: 0.925rem;
  font-weight: 700;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.tkf-btn:hover {
  background: #0e7a40;
}

.tkf-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Bottom padding for mobile nav */
@media (max-width: 767px) {
  body {
    padding-bottom: 4.25rem;
  }
}
