/*
 * berg.aero — site-specific fixes and components on top of the Uncode theme CSS.
 * Loaded last on every page (see <head>), so rules here win over the theme.
 */

:root {
  --berg-ink: #111;
  --berg-text: #3d3d3d;
  --berg-muted: #6b6b6b;
  --berg-line: #e4e4e4;
  --berg-soft: #f5f5f5;
  --berg-radius: 14px;
}

/* ---------------------------------------------------------------------------
 * Header: the logo file is white. Every page except the home page has a white
 * header, where the logo was invisible. Darken it there.
 * ------------------------------------------------------------------------- */
body:not(.home) #main-logo .logo-image img[src*="light"] {
  filter: invert(1);
}
/* Only the white logo files (…light….webp) are inverted; the theme may show
   either the light or the dark file depending on the header state. */

/* Sticky header: the theme leaves it transparent (blur only) once the page is
   scrolled, so logo and menu disappeared over light or dark sections. */
#masthead.is_stuck .menu-container {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.home #masthead.is_stuck .menu-container {
  background-color: rgba(10, 10, 10, 0.92) !important;
  box-shadow: none;
}

/* Home hero on short screens (small phones, landscape): the full-height slider
   pushed the title up under the logo. Let it grow and start below the header. */
@media (max-height: 640px), (max-width: 359px) {
  .home #row-unique-0,
  .home #row-unique-0 .owl-carousel,
  .home #row-unique-0 .owl-stage-outer,
  .home #row-unique-0 .owl-stage,
  .home #row-unique-0 .owl-item,
  .home #row-unique-0 .row-internal,
  .home #row-unique-0 .row-inner,
  .home #page-header .header-wrapper {
    height: auto !important;
    min-height: 0 !important;
  }
  .home #row-unique-0 .row-internal > .row {
    padding-top: 170px !important;
    padding-bottom: 48px !important;
  }
}

/* Visible keyboard focus (the theme removes all focus outlines) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #3d7eff !important;
  outline-offset: 3px !important;
}

/* ---------------------------------------------------------------------------
 * Booking form
 * ------------------------------------------------------------------------- */

/* Two-column form rows are too narrow on phones ("Yolcu Say", "Phon…"):
   stack the fields. */
@media (max-width: 569px) {
  .wpcf7-inline-wrapper:not(.wpcf7-input-group) {
    display: block;
  }
  .wpcf7-inline-wrapper:not(.wpcf7-input-group) .wpcf7-inline-field {
    display: block;
    width: 100%;
    padding: 0;
  }
  .wpcf7-inline-wrapper:not(.wpcf7-input-group) .wpcf7-inline-field + .wpcf7-inline-field {
    margin-top: 18px;
  }
}

/* Country dialling-code list: scrollable inside the page (the smooth-scroll
   library is told to ignore it in booking-form.js), never wider than the field. */
.intl-tel-input .country-list {
  max-height: 260px;
  min-width: min(300px, calc(100vw - 72px));
  max-width: min(420px, calc(100vw - 72px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  white-space: normal;
  z-index: 20;
}
.intl-tel-input .country-list .country {
  padding: 8px 12px;
}

/* ---------------------------------------------------------------------------
 * Article / guide pages (tr/<slug>/index.html built from the blog template)
 * ------------------------------------------------------------------------- */
.berg-article {
  color: var(--berg-text);
  font-size: 17px;
  line-height: 1.75;
}
.berg-article h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--berg-ink);
}
.berg-article h2 {
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  color: var(--berg-ink);
}
.berg-article h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 28px 0 8px;
  color: var(--berg-ink);
}
.berg-article p,
.berg-article ul,
.berg-article ol {
  margin: 0 0 18px;
  color: var(--berg-text);
}
.berg-article ul,
.berg-article ol {
  padding-left: 22px;
}
.berg-article li {
  margin-bottom: 8px;
}
.berg-article li strong,
.berg-article p strong {
  color: var(--berg-ink);
}
.berg-article a:not(.btn) {
  color: var(--berg-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.berg-article a:not(.btn):hover {
  text-decoration-thickness: 2px;
}
.berg-article .berg-lead {
  font-size: 19px;
  line-height: 1.65;
  color: #2b2b2b;
}

.berg-breadcrumb {
  font-size: 14px;
  color: var(--berg-muted);
  margin: 0 0 22px;
}
.berg-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.berg-breadcrumb li {
  margin: 0;
}
.berg-breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #b5b5b5;
}
.berg-breadcrumb a:not(.btn) {
  color: var(--berg-muted);
  text-decoration: none;
}
.berg-breadcrumb a:not(.btn):hover {
  color: var(--berg-ink);
  text-decoration: underline;
}

.berg-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--berg-line);
  border: 1px solid var(--berg-line);
  border-radius: var(--berg-radius);
  overflow: hidden;
  margin: 28px 0;
}
.berg-specs div {
  background: #fff;
  padding: 16px 18px;
}
.berg-specs dt {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--berg-muted);
}
.berg-specs dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--berg-ink);
}

.berg-faq {
  border-top: 1px solid var(--berg-line);
  margin: 10px 0 18px;
}
.berg-faq details {
  border-bottom: 1px solid var(--berg-line);
}
.berg-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 600;
  color: var(--berg-ink);
}
.berg-faq summary::-webkit-details-marker {
  display: none;
}
.berg-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
}
.berg-faq details[open] summary::after {
  content: "\2212";
}
.berg-faq summary:focus-visible {
  outline: 2px solid var(--berg-ink);
  outline-offset: 4px;
}
.berg-faq details p {
  margin: 0 0 18px;
}

.berg-cta {
  background: var(--berg-ink);
  color: #d9d9d9;
  border-radius: var(--berg-radius);
  padding: 30px;
  margin: 44px 0 10px;
}
.berg-cta h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: 26px;
}
.berg-cta p {
  margin: 0 0 20px;
}
.berg-cta .berg-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.berg-cta a.berg-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #fff;
  color: #fff;
}
.berg-cta a.berg-btn-primary {
  background: #fff;
  color: var(--berg-ink);
}
.berg-cta a.berg-btn:hover {
  opacity: 0.85;
}
.berg-cta a.berg-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------------------------------------------------------------------------
 * Guide cards (home page "Rehberler" row, related links under articles,
 * blog index)
 * ------------------------------------------------------------------------- */
.berg-guides {
  padding: 72px 36px;
  background: var(--berg-soft);
}
.berg-guides-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.berg-guides-head {
  max-width: 720px;
  margin-bottom: 32px;
}
.berg-guides-head .berg-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--berg-muted);
  margin: 0 0 10px;
}
.berg-guides-head h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--berg-ink);
}
.berg-guides-head p {
  margin: 0;
  color: var(--berg-muted);
}
.berg-guide-grid {
  list-style: none !important;
  padding: 0 !important;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.berg-guide-grid li {
  margin: 0;
  list-style: none;
}
.berg-guide-grid li::marker,
.berg-guide-grid li::before {
  content: none;
}
.berg-guide-grid a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--berg-line);
  border-radius: var(--berg-radius);
  padding: 22px 22px 20px;
  color: var(--berg-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.berg-guide-grid a:hover {
  border-color: var(--berg-ink);
  transform: translateY(-2px);
}
.berg-guide-grid a:focus-visible {
  outline: 2px solid var(--berg-ink);
  outline-offset: 3px;
}
.berg-guide-grid .berg-guide-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}
.berg-guide-grid .berg-guide-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--berg-muted);
  flex: 1;
}
.berg-guide-grid .berg-guide-more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}
.berg-guide-grid .berg-guide-more::after {
  content: " \2192";
}
@media (max-width: 569px) {
  .berg-guides {
    padding: 56px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .berg-guide-grid a {
    transition: none;
  }
  .berg-guide-grid a:hover {
    transform: none;
  }
}

/* Footer link list (service pages), inside the black booking footer */
.berg-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
}
.berg-footer-links a {
  color: #cfcfcf;
}
.berg-footer-links a:hover,
.style-light .berg-footer-links a:not(.btn-text-skin):hover {
  color: #fff !important;
}

/* Service links above the legal links in the booking footer (Turkish pages) */
.berg-footer-nav {
  padding: 36px 0 0;
}
@media (min-width: 960px) {
  .berg-footer-nav {
    padding-left: 25%;
  }
}

/* Legal pages: visible page title (they had no H1) */
.berg-legal-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

/* Guide cards placed inside article text (blog index) keep the card look */
.berg-article .berg-guide-grid a {
  text-decoration: none;
}

/* Theme list styles add bullets/indent to the footer link list */
ul.berg-footer-links {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
ul.berg-footer-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul.berg-footer-links li::before,
ul.berg-footer-links li::marker {
  content: none;
}

/* CTA box text: .berg-article p sets dark body text, which vanished on black */
.berg-article .berg-cta p {
  color: #d0d0d0;
}

/* Footer legal links: 12px with a 15px tall tap area; make them readable and tappable */
#booknow a.custom-link.fontsize-160000 {
  font-size: 14px !important;
  display: inline-block;
  padding: 10px 0;
}
#booknow a.custom-link.fontsize-160000:hover {
  color: #cfcfcf !important;
}

/* Booking form: narrow phones lost too much width to nested padding */
@media (max-width: 399px) {
  #booknow #resmobile,
  #booknow .row.single-h-padding {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  #booknow .uncell.double-block-padding {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Validation: make errors visible */
.wpcf7-not-valid-tip {
  color: #c62828 !important;
}
.wpcf7-form-control.wpcf7-not-valid {
  border-color: #c62828 !important;
}

/* Long-form grey text was just under AA contrast (#777 on white) */
.style-light .uncode_text_column,
.style-light .uncode_text_column p,
.style-light .uncode_text_column li {
  color: #5f5f5f;
}

/* Legal pages: readable line length */
.uncont:has(> .berg-legal-title) {
  max-width: 820px;
  margin: 0 auto;
}

/* Related pages under a guide: same column as the article above */
.berg-guides-related .berg-guides-inner {
  max-width: 804px;
}
.berg-guides-related .berg-guide-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
