/* Corporate light theme for public site */

/* Layout spacing */
.section { padding: 48px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Accent boxes for WOW effect */
.box { position:relative; background:#ffffff; border:1px solid #e5e7eb; border-radius:16px; padding:24px; box-shadow:0 12px 30px rgba(0,0,0,.08); overflow:hidden; }
.box::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(800px 200px at 80% -80px, rgba(255,138,91,.12), transparent 60%), radial-gradient(600px 160px at -120px 60%, rgba(255,177,133,.10), transparent 60%); }
.box--hero { padding: 32px; }
.box--hero .hero-grid { gap:28px; align-items:center; }
.box--accent { border:1px solid rgba(255,138,91,.35); }
.box--accent::after { content:""; position:absolute; left:0; right:0; top:0; height:4px; background: #FF8A5B; opacity:.95; }
/* Accent color variants per box */
.box--accent--green { border-color: rgba(67,160,71,.35); }
.box--accent--green::after { background:#43A047; }
.box--accent--blue { border-color: rgba(25,118,210,.35); }
.box--accent--blue::after { background:#1976D2; }

/* Navbar */
.navbar { position: sticky; top: 0; z-index: 1300; background: #FF7A3E; border-bottom: 0; padding: 12px 0; box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.navbar.is-scrolled { padding-top: 8px; padding-bottom: 8px; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.navbar .container { position: relative; display: grid; grid-template-columns: 1fr; }
.navbar .navbar-brand { position: static; transform: none; display:block; margin: 0 auto 8px; justify-self: center; }
.navbar .navbar-brand img { display:block; height:40px; width:auto; }
.navbar .menu-link { color:#ffffff; font-weight:600; letter-spacing:.2px; padding:10px 14px; border-radius:9999px; border:1px solid transparent; transition: background .15s ease, border-color .15s ease, transform .08s ease; }
.navbar .menu-link:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); transform: translateY(-1px); }
.navbar .nav-item.active-menu > .menu-link { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); }
/* Aktif menüde de hover/inside durumunda şeffaflık geri gelsin */
.navbar .nav-item.active-menu:hover > .menu-link,
.navbar .nav-item.active-menu.has-inside > .menu-link,
.navbar .nav-item.active-menu:focus-within > .menu-link {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
}
.navbar .menu-link:active { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); }
.menu-caret path { stroke: rgba(255,255,255,.9) !important; }

/* Navbar CTA buttons: Login (outline white), Signup (gradient) */
.navbar .nav-cta { display:inline-flex; align-items:center; gap:8px; font-weight:700; padding:10px 16px; border-radius:9999px; transition: background .18s ease, border-color .18s ease, transform .08s ease, color .18s ease, filter .18s ease; }
/* Login: match homepage secondary (blue) */
.navbar .nav-cta--login { background:#1976D2; border:0; color:#fff; box-shadow: 0 6px 18px rgba(21,101,192,.35); }
.navbar .nav-cta--login:hover, .navbar .nav-cta--login:focus-visible { background:#1565C0; transform: translateY(-1px); outline: none; }
/* Signup: light orange (distinct from login) */
.navbar .nav-cta--signup { background: linear-gradient(90deg,#FFB185,#FFC9A3); border:0; color:#7A2E1B; box-shadow: 0 6px 18px rgba(255,122,62,.25); }
.navbar .nav-cta--signup:hover, .navbar .nav-cta--signup:focus-visible { background: linear-gradient(90deg,#FFA36F,#FFBE99); transform: translateY(-1px); outline: none; }

/* Dropdown */
.nav-item.dropdown { position: relative; }
.navbar .dropdown-menu-custom {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  transform-origin: top left;
  /* Kurumsal: beyaz taban + sıcak, ancak çok hafif degrade doku + dikey pastel ton */
  background: #ffffff !important;
  background-image:
    linear-gradient(180deg, rgba(255,177,133,.075), rgba(255,255,255,1) 30%),
    radial-gradient(600px 80px at 80% -20px, rgba(255,138,91,.08), transparent 60%),
    radial-gradient(420px 60px at -60px 40%, rgba(255,177,133,.08), transparent 60%);
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 14px !important;
  padding: 8px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08), inset 0 0 0 1px rgba(255,255,255,.7) !important;
  z-index: 2000;
  width: max-content;
  min-width: 200px;
  max-width: 80vw;
  max-height: 420px;
  overflow-y: auto;
}
/* Üstte ince marka şeridi */
.navbar .dropdown-menu-custom::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-2));
  border-top-left-radius: 14px; border-top-right-radius: 14px;
}
/* Ok işareti (hover açılır menü oku) */
.navbar .nav-item.dropdown > .dropdown-menu-custom::before {
  content: "";
  position: absolute;
  top: -8px;
  left: var(--caret-left, 18px);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid rgba(15,23,42,.08);
  border-top: 1px solid rgba(15,23,42,.08);
  transform: rotate(45deg);
  pointer-events: none;
}
/* Ekranın sağında taşmayı önlemek için sağa hizalama */
.navbar .dropdown-menu-custom.is-right { left: auto; right: 0; transform-origin: top right; }
.navbar .nav-item.dropdown > .dropdown-menu-custom.is-right::before { left: auto; right: var(--caret-right, 18px); }
/* JS ile niyet-dostu aç/kapat için .is-open sınıfı; klavye için focus-within */
.navbar .nav-item.dropdown.is-open > .dropdown-menu-custom,
.navbar .nav-item.dropdown:focus-within > .dropdown-menu-custom {
  display: block !important;
  animation: dropdownIn .2s ease both;
}
/* Açılış animasyonu: hafif aşağıdan ve %98 scale ile giriş */
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(6px) scale(.98); filter: blur(1px); }
  to   { opacity: 1; transform: translateY(0) scale(1);   filter: blur(0); }
}
.navbar .dropdown-item-custom { color:#0f172a; padding:10px 16px 10px 18px; border-radius:8px; white-space: nowrap; transition: background .14s ease, color .14s ease; background: transparent !important; }
.navbar .dropdown-item-custom { display:flex; align-items:center; gap:8px; position: relative; transition: background .14s ease, color .14s ease, transform .14s ease; }
.navbar .dropdown-item-custom:hover { background: #f1f5f9 !important; transform: translateX(2px); }
.navbar .dropdown-item-custom i { color: var(--brand-orange); opacity: .9; }
/* Hover’da sol tarafta ufak vurgu çizgisi */
.navbar .dropdown-item-custom::before {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 100%; border-top-left-radius: 8px; border-bottom-left-radius: 8px;
  background: var(--brand-orange); transform: none;
  transition: width .16s ease;
}
.navbar .dropdown-item-custom:hover::before { width: 3px; }
.dropdown-item-custom:focus-visible { outline: 2px solid rgba(255,122,62,.35); outline-offset: 2px; }
.dropdown-search { width:100%; padding:8px 10px; border:1px solid #cbd5e1; border-radius:8px; }
.dropdown-search::placeholder { color:#64748b; }

/* Parent link visual: sadece içerideyken (has-inside) ve aktif route için */
.nav-item.dropdown.has-inside > .menu-link { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
.nav-item.dropdown.is-open .menu-caret { transform: rotate(180deg); }

@media (max-width: 991.98px) {
  .dropdown-menu-custom { position: static; border-radius: 0; box-shadow: none; min-width: 100%; width: 100%; max-width: 100%; }
  .nav-item.dropdown > .dropdown-menu-custom::before { display: none; }
  .dropdown-item-custom { white-space: normal; }
}

/* Liste öğelerine hafif giriş animasyonu */
@keyframes dropdownItemIn { from { opacity: 0; transform: translateY(4px); } to { opacity:1; transform: translateY(0);} }
.dropdown-menu-custom > li { animation: dropdownItemIn .22s ease both; }
.dropdown-menu-custom > li:nth-child(1){ animation-delay:.02s }
.dropdown-menu-custom > li:nth-child(2){ animation-delay:.04s }
.dropdown-menu-custom > li:nth-child(3){ animation-delay:.06s }
.dropdown-menu-custom > li:nth-child(4){ animation-delay:.08s }
.dropdown-menu-custom > li:nth-child(5){ animation-delay:.10s }
.dropdown-menu-custom > li:nth-child(6){ animation-delay:.12s }
.dropdown-menu-custom > li:nth-child(7){ animation-delay:.14s }
.dropdown-menu-custom > li:nth-child(8){ animation-delay:.16s }
.dropdown-menu-custom > li:nth-child(9){ animation-delay:.18s }
.dropdown-menu-custom > li:nth-child(10){ animation-delay:.20s }

/* Badge (rozet) stilleri */
.menu-badge { display:inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 9999px; font-size: 10px; font-weight: 800; letter-spacing: .2px; line-height: 1.2; vertical-align: middle; }
.menu-badge--new { background: rgba(67,160,71,.15); color: #2e7d32; }
.menu-badge--featured { background: rgba(255,138,91,.20); color: #b44a22; }
.menu-badge--promo { background: rgba(25,118,210,.15); color: #1557a0; }
.menu-badge--custom { background: rgba(15,23,42,.08); color: #0f172a; }
.navbar .menu-link .menu-badge { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; }

/* Search */
.nav-search { position: relative; display:inline-block; }
.nav-search-input {
  padding: 10px 14px 10px 44px;
  border-radius: 9999px;
  border: 1px solid #cbd5e1;
  background:#ffffff;
  color:#0f172a;
  min-width:220px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.nav-search-input::placeholder { color:#64748b; }
.nav-search-input:focus { outline: none; border-color:#FF8A5B; box-shadow: 0 0 0 3px rgba(255,138,91,.25), inset 0 1px 2px rgba(0,0,0,.06); }
.navbar .nav-search-input { background: rgba(255,255,255,.96); border-color: rgba(255,255,255,.7); box-shadow: inset 0 1px 2px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.08); }
/* Icon inside search */
.nav-search-icon { position:absolute; left:12px; top:50%; transform: translateY(-50%); width:18px; height:18px; color:#64748b; pointer-events:none; }
.navbar .nav-search-icon { color: #64748b; }
.nav-search:focus-within .nav-search-icon { color:#FF8A5B; }
/* Search clear button */
.nav-search-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #64748b; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s ease, color .15s ease; }
.nav-search.has-value .nav-search-clear { opacity: .6; }
.nav-search-clear:hover { opacity: 1; color:#0f172a; }
.navbar .nav-search-clear { color: rgba(15,23,42,.8); }
/* Keyboard hint */
.nav-search-kbd { position: absolute; right: 36px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; border-bottom-width: 2px; padding: 2px 6px; border-radius: 6px; pointer-events: none; }
.navbar .nav-search-kbd { background: rgba(255,255,255,.9); border-color: rgba(0,0,0,.08); color: #334155; }

@media (max-width: 991.98px) {
  .nav-search-input { width: 100%; min-width: 0; }
}

/* Search */
.nav-search { position: relative; }
.nav-search-input { padding: 8px 12px 8px 36px; border-radius: 9999px; border: 1px solid #cbd5e1; background:#ffffff; color:#0f172a; min-width:220px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:12px center; }
.nav-search-input::placeholder { color:#64748b; }
.nav-search-panel { position: absolute; right: 0; top: calc(100% + 8px); background:#fff; color:#0f172a; border-radius:12px; box-shadow:0 16px 36px rgba(0,0,0,.16); min-width:300px; max-width:440px; border:1px solid rgba(0,0,0,.08); padding:8px; z-index:2100; }
.nav-search-item { color:#0f172a; }
.nav-search-item:hover { background:#f1f5f9; }
.nav-search-item--active { background:#e2e8f0; }

/* Buttons */
.btn { border-radius:9999px !important; font-weight:600; transition: background-color .18s ease, border-color .18s ease, transform .08s ease; }
.btn-primary { background-color:#FF8A5B; border-color:#FF8A5B; color:#fff; }
.btn-primary:hover, .btn-primary:focus { background-color:#FF7A3E; border-color:#FF7A3E; transform: translateY(-1px); }
.btn-secondary { background-color:#1976D2; border-color:#1976D2; color:#fff; }
.btn-secondary:hover, .btn-secondary:focus { background-color:#1565C0; border-color:#1565C0; transform: translateY(-1px); }

/* Cards & utilities */
.card { background:#fff; border:1px solid #e5e7eb; border-radius:12px; padding:16px; box-shadow:0 8px 24px rgba(0,0,0,.06); }
.feature-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:20px; }
.hero-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; align-items:center; }
.hero-visual { border-radius:12px; overflow:hidden; background: linear-gradient(135deg,#FFF6ED,#FFE8D9); border:1px solid rgba(0,0,0,.04); min-height: 320px; }
.hero h1 { font-family:'Plus Jakarta Sans', 'Inter', sans-serif; font-size:40px; line-height:48px; margin:0 0 12px; letter-spacing:.2px; }
.hero p { font-size:18px; line-height:28px; color:#475569; margin:0 0 20px; }
.hero .subtitle { font-size:14px; color:#64748b; margin-top:6px; }

/* Nature scene variant for hero right panel */
.hero-visual.scene {
  /* Prefer photo if present; fallback to vector scene, then gradient */
  background:
    url('../images/pet-hotel.png') center/cover no-repeat,
    url('../images/scene.svg') center/cover no-repeat,
    linear-gradient(135deg,#FFF6ED,#FFE8D9);
  min-height: 360px;
}
/* Background image handles sizing; no inline <img> used */

/* Decorative paw trail under hero CTA */
.paws-trail {
  height: 36px;
  margin: 16px 0 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20' fill='none'%3E%3Cg fill='%23FFB185' fill-opacity='.6'%3E%3Ccircle cx='10' cy='12' r='3'/%3E%3Ccircle cx='4' cy='7' r='1.6'/%3E%3Ccircle cx='10' cy='5.5' r='1.6'/%3E%3Ccircle cx='16' cy='7' r='1.6'/%3E%3C/g%3E%3Cg fill='%23D0E3FF' fill-opacity='.7'%3E%3Ccircle cx='50' cy='12' r='3'/%3E%3Ccircle cx='44' cy='7' r='1.6'/%3E%3Ccircle cx='50' cy='5.5' r='1.6'/%3E%3Ccircle cx='56' cy='7' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  opacity: .9;
}

/* Footer (match navbar orange) */
footer {
  background: #FF7A3E;
  border-top:1px solid rgba(255,255,255,.28);
  color:#ffffff;
}
footer a { color:#ffffff; }
footer a:hover { color:#0f172a; }

/* Extra breathing space between key boxes */
.box--hero { margin-bottom: 28px; }

/* ------------ Responsive (tablet & mobile) ------------ */
@media (max-width: 991.98px) {
  /* Navbar */
  .navbar .navbar-brand img { height: 36px; }
  .navbar .navbar-nav { flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
  .navbar .menu-link { padding: 8px 10px; font-size: .95rem; }
  .navbar .nav-cta { padding: 8px 12px; font-size: .95rem; }
  /* Search */
  .nav-search-input { width: 100%; min-width: 0; }
  /* Hero */
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-visual { min-height: 240px; }
}

/* ------------ Auth (Login) ------------- */
.auth-wrap { max-width: 760px; margin: 40px auto; padding: 0 16px; }
.auth-card { background:#fff; border:1px solid #e5e7eb; border-radius:16px; box-shadow:0 12px 30px rgba(0,0,0,.08); padding: 24px; }
.auth-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: .2px; }
.auth-sub { margin: 0 0 16px; color:#64748b; font-size: 14px; }
.auth-field { margin-bottom: 14px; }
.auth-label { display:block; font-weight: 600; color:#0f172a; margin-bottom: 6px; }
.auth-input {
  width:100%; box-sizing: border-box; border-radius:12px; border:1px solid #cbd5e1; padding: 12px 44px 12px 14px;
  font-size: 16px; color:#0f172a; background:#fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.auth-input::placeholder{ color:#94a3b8; opacity:1; font-style:normal; font-family:inherit; }
::-webkit-input-placeholder{ color:#94a3b8; opacity:1; font-style:normal; }
::-moz-placeholder{ color:#94a3b8; opacity:1; font-style:normal; }
:-ms-input-placeholder{ color:#94a3b8; opacity:1; font-style:normal; }
:-moz-placeholder{ color:#94a3b8; opacity:1; font-style:normal; }
.auth-input:focus { outline: none; border-color:#FF8A5B; box-shadow: 0 0 0 3px rgba(255,138,91,.2); }
.auth-input.is-invalid { border-color:#e11d48; box-shadow: 0 0 0 2px rgba(225,29,72,.15); }
.auth-help { color:#e11d48; font-size: 13px; margin-top: 4px; }
.auth-field-inline { display:flex; justify-content: space-between; align-items:center; gap:10px; margin-top: 6px; }
.auth-remember { display:flex; align-items:center; gap:8px; color:#334155; font-size: 14px; }
.auth-remember input { width: 18px; height: 18px; }
.auth-forgot a { color:#1976D2; text-decoration: none; font-weight: 600; }
.auth-forgot a:hover { text-decoration: underline; }
.auth-submit { width:100%; padding: 12px 16px; border-radius: 12px; background: linear-gradient(90deg,#FF8A5B,#FFB185); color:#fff; border:0; font-weight:700; font-size:16px; box-shadow: 0 8px 20px rgba(255,122,62,.25); transition: filter .18s ease, transform .08s ease; }
.auth-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.auth-security { display:flex; align-items:center; gap:8px; color:#64748b; font-size: 13px; margin-top: 14px; }
.auth-actions { display:flex; justify-content: center; gap:12px; margin-top: 12px; font-size: 14px; }
.auth-actions a { color:#1976D2; text-decoration: none; font-weight: 600; }
.auth-actions a:hover { text-decoration: underline; }
.pw-toggle { position:absolute; right: 10px; top: 36px; border:0; background: transparent; color:#64748b; cursor:pointer; width: 28px; height: 28px; border-radius: 8px; display:inline-flex; align-items:center; justify-content:center; }
.pw-toggle:hover { color:#0f172a; background:#f1f5f9; }
.pw-toggle svg { width: 18px; height: 18px; }

@media (max-width: 575.98px) {
  .auth-card { padding: 18px; }
  .auth-title { font-size: 22px; }
}

/* --- Typeahead (cities/districts/neighborhoods) --- */
.typeahead-wrap{ position: relative; }
.typeahead-list{ position:absolute; left:0; right:0; top:100%; margin-top:4px; background:#fff; border:1px solid #e5e7eb; border-radius:10px; box-shadow:0 10px 24px rgba(0,0,0,.08); max-height:220px; overflow:auto; z-index:10001; }
.typeahead-item{ padding:8px 10px; cursor:pointer; color:#0f172a; }
.typeahead-item:hover{ background:#f8fafc; }

@media (max-width: 575.98px) {
  /* Navbar tightening */
  .navbar .navbar-brand img { height: 32px; }
  .navbar .menu-link { padding: 7px 9px; font-size: .9rem; }
  .navbar .nav-cta { padding: 7px 10px; font-size: .9rem; }
  /* Hero typography */
  .hero h1 { font-size: 28px; line-height: 36px; }
  .hero p { font-size: 16px; line-height: 24px; }
  .hero-visual { min-height: 180px; }
}
