/*
Theme Name: Polat Termal Otel
Description: Polat Termal Otel için yerel üst ve alt menüler.
Template: quylo
Version: 1.0.0
Author: Güray Avcı (SiberMimar)
Author URI: https://www.sibermimar.com.tr/
Text Domain: quylo-child
*/

:root {
  --hotel-night: #142f40;
  --hotel-gold: #f0c482;
  --hotel-light: #e8f0f1;
  --hotel-paper: #f4ead9;
  --hotel-width: 1216px;
  --hotel-gutter: clamp(16px, 4vw, 56px);
}

.polat-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100001;
  transform: translateY(-200%);
  padding: 10px 18px;
  background: #fff;
  color: var(--hotel-night);
  border-radius: 8px;
}

.polat-skip:focus { transform: translateY(0); }

.polat-site-header {
  position: sticky;
  top: 0;
  z-index: 98;
  border-bottom: 1px solid rgba(240, 196, 130, .28);
  background: var(--hotel-night);
  color: #fff;
}

.admin-bar .polat-site-header { top: 32px; }

.polat-over-hero {
  margin-bottom: -72px;
  background: rgba(16, 36, 50, .88);
}

.polat-header-inner,
.polat-footer-inner {
  width: min(100% - 2 * var(--hotel-gutter), var(--hotel-width));
  margin-inline: auto;
}

.polat-header-inner,
.polat-header-actions,
.polat-site-navigation,
.polat-main-menu {
  display: flex;
  align-items: center;
}

.polat-header-inner {
  min-height: 72px;
  gap: clamp(14px, 3vw, 44px);
}

.polat-brand {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #fff;
  text-decoration: none;
}

.polat-brand-image {
  display: block;
  width: auto;
  height: 54px;
  max-width: 100%;
  object-fit: contain;
}

.polat-site-navigation {
  flex: 1;
  justify-content: flex-end;
  gap: 8px;
}

.polat-site-navigation ul,
.polat-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.polat-main-menu li { position: relative; }

.polat-site-navigation a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 7px 12px;
  color: #fff;
  border-radius: 7px;
  font-size: .88rem;
  line-height: 1.3;
  text-decoration: none;
}

.polat-site-navigation a:hover,
.polat-site-navigation a[aria-current="page"] {
  color: var(--hotel-gold);
  background: rgba(255, 255, 255, .055);
}

.polat-main-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 2;
  min-width: 215px;
  padding: 6px;
  border: 1px solid rgba(240, 196, 130, .32);
  border-radius: 9px;
  background: var(--hotel-night);
}

.polat-main-menu .sub-menu .sub-menu { top: 0; right: 100%; }
.polat-main-menu li:hover > .sub-menu,
.polat-main-menu li:focus-within > .sub-menu { display: block; }

.polat-main-menu .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline-start: 9px;
  border-style: solid;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg) translateY(-2px);
}

.polat-career-link { white-space: nowrap; }

.polat-header-actions { gap: 8px; }

.polat-book-action,
.polat-call-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--hotel-gold);
  color: var(--hotel-night);
  font-size: .86rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.polat-book-action:hover { background: #ffda9b; color: var(--hotel-night); }

.polat-menu-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.polat-toggle-lines {
  display: block;
  width: 20px;
  height: 12px;
  border-block: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.polat-site-header :is(a, button):focus-visible,
.polat-site-footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.polat-site-footer {
  background: var(--hotel-night);
  color: var(--hotel-light);
}

.polat-footer-reservation {
  padding-block: clamp(28px, 5vw, 54px);
  background: var(--hotel-paper);
  color: var(--hotel-night);
}

.polat-reservation-inner,
.polat-reservation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 26px;
}

.polat-footer-reservation h2 {
  max-width: 22ch;
  margin: 0;
  color: var(--hotel-night);
  font: 400 clamp(1.7rem, 4vw, 3rem)/1.07 var(--uicore-primary-font-family, Belleza), Georgia, serif;
  text-wrap: balance;
}

.polat-site-footer .polat-reservation-actions { gap: 9px; }
.polat-call-action { background: transparent; border-color: var(--hotel-night); }
.polat-call-action:hover,
.polat-footer-reservation .polat-book-action { background: var(--hotel-night); color: #fff; }

.polat-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.35fr;
  gap: clamp(22px, 4vw, 46px);
  padding-block: clamp(32px, 6vw, 65px);
}

.polat-footer-brand { display: inline-block; color: #fff; }
.polat-footer-brand .polat-brand-image { height: 82px; }
.polat-footer-grid p { margin: 12px 0; }

.polat-footer-nav h2 {
  margin: 0 0 12px;
  color: var(--hotel-gold);
  font: 400 1.35rem/1.2 var(--uicore-primary-font-family, Belleza), Georgia, serif;
}

.polat-footer-nav address { font-style: normal; }
.polat-footer-nav a {
  display: block;
  padding: 5px 0;
  color: var(--hotel-light);
  line-height: 1.45;
  text-decoration: none;
}

.polat-footer-grid a:hover,
.polat-footer-bottom a:hover { color: var(--hotel-gold); text-decoration: underline; }

.polat-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.polat-social-links a,
.polat-footer-bottom a { color: var(--hotel-light); }

.polat-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 18px;
  border-top: 1px solid rgba(240, 196, 130, .3);
  font-size: .84rem;
}

.polat-footer-bottom .polat-credit { color: var(--hotel-gold); }

@media (max-width: 850px) {
  .admin-bar .polat-site-header { top: 46px; }
  .polat-header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0; }
  .polat-header-actions { margin-left: auto; }
  .polat-nav-ready .polat-menu-toggle { display: inline-grid; }
  .polat-site-navigation { order: 3; flex: 0 0 100%; align-items: stretch; flex-direction: column; padding-bottom: 12px; }
  .polat-site-navigation[hidden] { display: none; }
  .polat-site-navigation a { padding-inline: 10px; }
  .polat-main-menu { align-items: stretch; flex-direction: column; }
  .polat-main-menu .sub-menu {
    position: static;
    display: block;
    padding: 0 0 0 12px;
    border: 0;
    border-inline-start: 1px solid rgba(240, 196, 130, .32);
    border-radius: 0;
  }
  .polat-main-menu .menu-item-has-children > a::after { display: none; }
  .polat-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .polat-brand-image { height: 44px; max-width: 30vw; }
  .polat-book-action, .polat-call-action { padding-inline: 11px; }
  .polat-footer-grid { grid-template-columns: 1fr; }
  .polat-footer-nav a { min-height: 36px; }
  .polat-footer-bottom { flex-direction: column; }
}
