/* =====================================================
   KvarnerStay — közös stíluslap
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal-dark:   #085041;
  --teal-mid:    #0F6E56;
  --teal-base:   #1D9E75;
  --teal-light:  #9FE1CB;
  --teal-pale:   #E1F5EE;
  --amber:       #FAC775;
  --amber-dark:  #BA7517;
  --coral-pale:  #FAECE7;
  --coral:       #D85A30;
  --sand:        #FAEEDA;
  --white:       #ffffff;
  --gray-light:  #f5f5f0;
  --gray-mid:    #888780;
  --gray-dark:   #2C2C2A;
  --text:        #1a1a1a;
  --text-muted:  #5a5a5a;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,.07);
  --shadow-md:   0 3px 12px rgba(0,0,0,.10);
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--gray-light); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---- Navigáció ---- */
.nav {
  background: var(--teal-dark);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; position: sticky; top: 0; z-index: 100;
}
.nav-logo { color: var(--white); font-size: 20px; font-weight: 600; letter-spacing: -.3px; }
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--teal-light); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switcher { display: flex; gap: 4px; }
.lang-btn { background: transparent; border: 1px solid var(--teal-base); color: var(--teal-light); font-size: 12px; padding: 3px 8px; border-radius: var(--radius-sm); cursor: pointer; transition: all .15s; }
.lang-btn.active, .lang-btn:hover { background: var(--teal-base); color: var(--white); border-color: var(--teal-base); }
.btn-nav { background: var(--amber); color: var(--teal-dark); font-size: 13px; font-weight: 600; padding: 6px 16px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: opacity .15s; }
.btn-nav:hover { opacity: .88; }

/* ---- Hero / kereső ---- */
.hero {
  background: linear-gradient(160deg, var(--teal-mid) 0%, var(--teal-dark) 100%);
  padding: 52px 24px 48px;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 30px; font-weight: 600; margin-bottom: 8px; }
.hero p { color: var(--teal-light); font-size: 15px; margin-bottom: 28px; }
.search-box {
  background: var(--white); border-radius: var(--radius-lg);
  display: inline-flex; align-items: center; gap: 0;
  box-shadow: var(--shadow-md); overflow: hidden; max-width: 780px; width: 100%;
}
.search-field { display: flex; flex-direction: column; padding: 10px 16px; flex: 1; border-right: 1px solid #eee; }
.search-field label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-mid); margin-bottom: 2px; }
.search-field input { border: none; outline: none; font-size: 14px; color: var(--text); background: transparent; }
.search-field input::placeholder { color: #bbb; }
.btn-search { background: var(--teal-base); color: var(--white); border: none; padding: 0 28px; height: 100%; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.btn-search:hover { background: var(--teal-mid); }

/* ---- Tartalom szekciók ---- */
.section { max-width: 1140px; margin: 0 auto; padding: 40px 24px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 20px; font-weight: 600; color: var(--teal-dark); }
.section-link { font-size: 13px; color: var(--teal-base); }
.section-link:hover { text-decoration: underline; }

/* ---- Apartman kártyák ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s; cursor: pointer;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-img {
  height: 170px; background: var(--teal-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; color: var(--teal-base); overflow: hidden;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.card-name { font-size: 15px; font-weight: 600; color: var(--text); }
.card-rating { font-size: 13px; color: var(--amber-dark); }
.card-loc { font-size: 13px; color: var(--teal-base); margin-bottom: 10px; }
.card-footer { display: flex; justify-content: space-between; align-items: center; }
.card-price { font-size: 17px; font-weight: 700; color: var(--teal-dark); }
.card-price span { font-size: 13px; font-weight: 400; color: var(--text-muted); }
.card-guests { font-size: 12px; color: var(--text-muted); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.badge-new { background: var(--teal-pale); color: var(--teal-dark); }

/* ---- Szolgáltatói kategóriák ---- */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.cat-card {
  background: var(--white); border: 1.5px solid var(--teal-pale);
  border-radius: var(--radius-md); padding: 18px 12px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.cat-card:hover { border-color: var(--teal-base); background: var(--teal-pale); }
.cat-icon { font-size: 26px; color: var(--teal-base); margin-bottom: 8px; }
.cat-name { font-size: 13px; font-weight: 500; color: var(--text); }

/* ---- Gombok ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: var(--radius-md); border: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--teal-base); color: var(--white); }
.btn-primary:hover { background: var(--teal-mid); }
.btn-outline { background: transparent; color: var(--teal-base); border: 1.5px solid var(--teal-base); }
.btn-outline:hover { background: var(--teal-pale); }
.btn-amber { background: var(--amber); color: var(--teal-dark); }
.btn-amber:hover { opacity: .88; }

/* ---- CTA szalag ---- */
.cta-strip {
  background: var(--teal-mid); padding: 40px 24px; text-align: center;
}
.cta-strip h2 { color: var(--white); font-size: 22px; margin-bottom: 8px; }
.cta-strip p { color: var(--teal-light); font-size: 14px; margin-bottom: 20px; }

/* ---- Footer ---- */
.footer { background: var(--teal-dark); padding: 28px 24px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-logo { color: var(--white); font-size: 16px; font-weight: 600; }
.footer-logo span { color: var(--amber); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--teal-light); font-size: 13px; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: var(--gray-mid); font-size: 12px; width: 100%; text-align: center; margin-top: 8px; }

/* ---- Form elemek ---- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid #ddd;
  border-radius: var(--radius-md); font-size: 14px; color: var(--text);
  transition: border-color .2s; background: var(--white);
}
.form-input:focus { outline: none; border-color: var(--teal-base); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ---- Auth oldal ---- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--teal-pale); padding: 24px; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; font-size: 22px; font-weight: 700; color: var(--teal-dark); margin-bottom: 6px; }
.auth-logo span { color: var(--amber-dark); }
.auth-sub { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.auth-tab.active { color: var(--teal-base); border-bottom-color: var(--teal-base); }
.role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.role-btn { border: 1.5px solid #ddd; border-radius: var(--radius-md); padding: 12px; text-align: center; cursor: pointer; transition: all .2s; }
.role-btn.active { border-color: var(--teal-base); background: var(--teal-pale); }
.role-btn .role-icon { font-size: 22px; color: var(--teal-base); margin-bottom: 4px; }
.role-btn .role-name { font-size: 13px; font-weight: 600; color: var(--text); }
.role-btn .role-desc { font-size: 11px; color: var(--text-muted); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }
.auth-footer a { color: var(--teal-base); }
.alert { padding: 10px 14px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: var(--teal-pale); color: var(--teal-dark); }
.alert-error { background: #FCEBEB; color: #A32D2D; }

/* ---- Admin panel ---- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--teal-dark); padding: 20px 0; }
.admin-sidebar-logo { color: var(--white); font-size: 16px; font-weight: 700; padding: 0 20px 20px; border-bottom: 1px solid var(--teal-mid); margin-bottom: 12px; }
.admin-sidebar-logo span { color: var(--amber); }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--teal-light); font-size: 14px; cursor: pointer; transition: all .2s; }
.admin-nav-item:hover, .admin-nav-item.active { background: var(--teal-mid); color: var(--white); }
.admin-nav-item .badge-count { background: var(--amber); color: var(--teal-dark); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; margin-left: auto; }
.admin-main { background: var(--gray-light); padding: 28px; }
.admin-header { margin-bottom: 24px; }
.admin-header h1 { font-size: 20px; font-weight: 600; color: var(--teal-dark); }
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--teal-dark); }
.stat-sub { font-size: 12px; color: var(--teal-base); margin-top: 2px; }
.data-table { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-table-header { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.data-table-title { font-size: 15px; font-weight: 600; color: var(--text); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--gray-light); padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
td { padding: 12px 16px; font-size: 13px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
.status-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.status-pending { background: var(--sand); color: var(--amber-dark); }
.status-active { background: var(--teal-pale); color: var(--teal-dark); }
.status-suspended { background: #FCEBEB; color: #A32D2D; }
.action-btn { border: none; border-radius: var(--radius-sm); padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; margin-right: 4px; transition: opacity .15s; }
.action-btn:hover { opacity: .8; }
.action-approve { background: var(--teal-pale); color: var(--teal-dark); }
.action-reject { background: #FCEBEB; color: #A32D2D; }

/* ---- Foglalási naptár ---- */
.calendar { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; }
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.cal-title { font-size: 15px; font-weight: 600; color: var(--teal-dark); }
.cal-nav { background: transparent; border: 1px solid var(--teal-light); color: var(--teal-base); width: 30px; height: 30px; border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day-name { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-muted); padding: 4px 0; }
.cal-day { text-align: center; padding: 7px 2px; font-size: 13px; border-radius: var(--radius-sm); cursor: pointer; transition: all .15s; }
.cal-day:hover:not(.cal-unavail):not(.cal-empty) { background: var(--teal-pale); }
.cal-day.cal-today { font-weight: 700; color: var(--teal-base); }
.cal-day.cal-selected { background: var(--teal-base); color: var(--white); }
.cal-day.cal-in-range { background: var(--teal-pale); color: var(--teal-dark); }
.cal-day.cal-unavail { background: #f5f5f5; color: #ccc; cursor: not-allowed; text-decoration: line-through; }
.cal-day.cal-empty { cursor: default; }

/* ---- Szállás részlet ---- */
.property-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; height: 340px; margin-bottom: 28px; }
.gallery-main { background: var(--teal-pale); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--teal-base); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.gallery-thumb { background: var(--teal-pale); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--teal-light); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.amenity-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--teal-pale); color: var(--teal-dark); font-size: 13px; padding: 5px 12px; border-radius: 99px; margin: 4px; }
.booking-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 22px; position: sticky; top: 78px; }
.booking-price { font-size: 24px; font-weight: 700; color: var(--teal-dark); margin-bottom: 16px; }
.booking-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.price-breakdown { border-top: 1px solid #eee; margin-top: 14px; padding-top: 14px; }
.price-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.price-row.total { font-weight: 700; color: var(--text); font-size: 14px; border-top: 1px solid #eee; padding-top: 10px; margin-top: 4px; }

/* ---- Értesítés toast ---- */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--teal-dark); color: var(--white); padding: 12px 20px; border-radius: var(--radius-md); font-size: 14px; box-shadow: var(--shadow-md); transform: translateY(80px); opacity: 0; transition: all .3s; z-index: 999; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- Pending oldal (jóváhagyásra vár) ---- */
.pending-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--teal-pale); }
.pending-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; text-align: center; max-width: 420px; box-shadow: var(--shadow-md); }
.pending-icon { font-size: 48px; color: var(--amber-dark); margin-bottom: 16px; }
.pending-card h2 { font-size: 20px; font-weight: 600; color: var(--teal-dark); margin-bottom: 8px; }
.pending-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .search-box { flex-direction: column; border-radius: var(--radius-md); }
  .search-field { border-right: none; border-bottom: 1px solid #eee; }
  .btn-search { padding: 14px; width: 100%; justify-content: center; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .property-gallery { grid-template-columns: 1fr; height: auto; }
  .gallery-side { display: none; }
}
