/* =========================================
   hotel-grid.css — Webhotelier tarzı fiyat grid
   ========================================= */

.hg-container { padding: 28px 20px 64px; }

/* ── ARAMA KUTUSU ── */
.hg-search-bar {
  background: linear-gradient(135deg, #1a3a5c, #2d5f8a);
  border-radius: 14px;
  padding: 20px 24px 22px;
  margin-bottom: 28px;
}
.hg-search-inner {}
.hg-search-title {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.hg-search-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 400;
  opacity: .7;
}
.hg-search-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.hg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hg-field label {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,.65);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.hg-field input,
.hg-field select {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: white;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 13px;
  min-width: 130px;
  outline: none;
  transition: border-color .2s;
}
.hg-field input:focus,
.hg-field select:focus { border-color: rgba(255,255,255,.6); }
.hg-field select option { background: #1a3a5c; color: white; }
.hg-field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); cursor: pointer; }
.hg-btn-search {
  background: #e8a020;
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  align-self: flex-end;
}
.hg-btn-search:hover { background: #d4921c; transform: translateY(-1px); }

/* ── LOADING ── */
.hg-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px;
  color: #718096;
  font-size: 15px;
}
.hg-loading i { font-size: 22px; color: #1a3a5c; }

/* ── EMPTY STATE ── */
.hg-empty {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hg-empty i { font-size: 48px; color: #e0e6ed; display: block; margin-bottom: 14px; }
.hg-empty p { color: #718096; font-size: 15px; }

/* ── GRID WRAPPER ── */
.hg-grid-wrap {
  background: white;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  border: 1px solid #eef0f3;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 16px;
}

/* ── TARIH BAŞLIK SATIRI ── */
.hg-date-header {
  display: grid;
  grid-template-columns: 280px repeat(var(--cols, 7), 1fr) 148px;
  background: #f8fafc;
  border-bottom: 2px solid #eef0f3;
  position: sticky;
  top: 0;
  z-index: 10;
}
.hg-plan-info-head {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .8px;
  display: flex;
  align-items: center;
}
.hg-book-head {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 800;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: .8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hg-date-col {
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border-left: 1px solid #eef0f3;
}
.hg-date-col.hg-weekend { background: #fdf8f0; }
.hg-date-col.hg-today   { background: #eff8ff; border-bottom: 2px solid #1a3a5c; }
.hg-dn  { font-size: 10px; font-weight: 800; color: #718096; text-transform: uppercase; letter-spacing: .5px; }
.hg-dd  { font-size: 18px; font-weight: 900; color: #1a3a5c; line-height: 1; }
.hg-dm  { font-size: 10px; color: #aaa; }
.hg-date-col.hg-today .hg-dd  { color: #e8a020; }
.hg-date-col.hg-today .hg-dn  { color: #1a3a5c; }

/* ── ODA BLOĞU ── */
.hg-room-block {
  border-bottom: 2px solid #eef0f3;
}
.hg-room-block:last-child { border-bottom: none; }

.hg-room-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #eef0f3;
}
.hg-room-thumb {
  width: 90px;
  height: 68px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.hg-no-img {
  background: linear-gradient(135deg,#eef4fb,#ddeaf7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a3a5c;
  font-size: 24px;
}
.hg-room-info { flex: 1; }
.hg-room-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 900;
  color: #1a3a5c;
  margin-bottom: 5px;
}
.hg-room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #718096;
  margin-bottom: 6px;
}
.hg-room-meta i { color: #e8a020; }
.hg-features { display: flex; flex-wrap: wrap; gap: 5px; }
.hg-ftag {
  font-size: 11px;
  background: #f0f7ff;
  border: 1px solid #d0e8f5;
  padding: 2px 9px;
  border-radius: 12px;
  color: #1a5276;
}

/* ── PLAN SATIRI ── */
.hg-plan-row {
  display: grid;
  grid-template-columns: 280px repeat(var(--cols, 7), 1fr) 148px;
  border-bottom: 1px solid #f4f6f8;
  min-height: 64px;
  align-items: stretch;
}
.hg-plan-row:last-child { border-bottom: none; }

.hg-plan-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  border-right: 1px solid #eef0f3;
}
.hg-plan-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a3a5c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hg-plan-name i { color: #e8a020; font-size: 12px; }
.hg-plan-meal { font-size: 11px; color: #718096; }
.hg-refund   { font-size: 10px; background: #eafaf1; color: #1e8449; padding: 2px 7px; border-radius: 10px; margin-top: 3px; width: fit-content; }
.hg-norefund { font-size: 10px; background: #fee2e2; color: #dc2626; padding: 2px 7px; border-radius: 10px; margin-top: 3px; width: fit-content; }

/* ── FİYAT HÜCRESİ ── */
.hg-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-left: 1px solid #f4f6f8;
  text-align: center;
  transition: background .15s;
  cursor: default;
  gap: 2px;
}
.hg-cell:hover { background: #f8fafc; }
.hg-cell-closed { background: #fef2f2; }
.hg-cell-closed:hover { background: #fee2e2; }
.hg-cell-noprice { background: #fafafa; }

.hg-orig  { font-size: 10px; color: #aaa; text-decoration: line-through; }
.hg-price { font-size: 13px; font-weight: 800; color: #1a3a5c; line-height: 1.2; }
.hg-warn  { font-size: 9px; background: #fef3c7; color: #92400e; padding: 1px 5px; border-radius: 8px; }
.hg-min   { font-size: 9px; color: #aaa; }
.hg-icon-closed { color: #e74c3c; font-size: 14px; opacity: .5; }
.hg-icon-call   { color: #aaa; font-size: 13px; }

/* ── REZERVE ET BUTONU ── */
.hg-book-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-left: 1px solid #eef0f3;
}
.hg-btn-book {
  background: linear-gradient(135deg, #1a3a5c, #2d5f8a);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  text-align: center;
  transition: transform .15s, box-shadow .15s;
  width: 124px;
}
.hg-btn-book:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,58,92,.3); }
.hg-btn-book strong { display: block; font-size: 14px; font-weight: 900; line-height: 1.2; color: #f0c040; }
.hg-btn-book span   { display: block; font-size: 11px; opacity: .9; margin-top: 2px; }
.hg-unavail {
  font-size: 11px;
  color: #aaa;
  text-align: center;
}

/* ── ALT NOT ── */
.hg-note {
  font-size: 12px;
  color: #718096;
  margin: 0 0 8px;
  padding: 10px 0;
}
.hg-note i { color: #e8a020; margin-right: 4px; }

/* ── REZERVASYON MODAL ── */
.hg-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.6);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.hg-modal-overlay.open { display: flex; }
.hg-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.3);
}
.hg-modal-header {
  background: linear-gradient(135deg, #1a3a5c, #2d5f8a);
  padding: 20px 24px;
  border-radius: 20px 20px 0 0;
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hg-modal-header > div:first-child { flex: 1; }
.hg-modal-room  { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 900; }
.hg-modal-dates { font-size: 12px; opacity: .75; margin-top: 3px; }
.hg-modal-price-wrap { text-align: right; }
.hg-modal-price { font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 900; color: #f0c040; }
.hg-modal-price-sub { font-size: 11px; opacity: .75; }
.hg-modal-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.hg-modal-plan {
  padding: 10px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e0e6ed;
  font-size: 13px;
  font-weight: 600;
  color: #1a3a5c;
}
.hg-modal-form { padding: 20px 24px 24px; }
.hg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.hg-summary {
  background: #f0f7ff;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 16px;
  border: 1px solid #d0e8f5;
}
.hg-summary-title {
  font-size: 12px;
  font-weight: 700;
  color: #1a3a5c;
  margin-bottom: 8px;
}
.hg-summary-title i { color: #e8a020; margin-right: 4px; }
.hg-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
  padding: 2px 0;
}
.hg-summary-row span:last-child { font-weight: 600; }
.hg-summary-total {
  border-top: 1px solid #d0e8f5;
  margin-top: 6px;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
}
.hg-summary-total span:last-child { font-size: 16px; color: #1a3a5c; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hg-search-form { gap: 8px; }
  .hg-field input, .hg-field select { min-width: 110px; font-size: 13px; }
  .hg-date-header,
  .hg-plan-row { grid-template-columns: 220px repeat(var(--cols,7), 1fr) 130px; }
  .hg-room-header { flex-direction: column; }
  .hg-room-thumb { width: 100%; height: 160px; }
}
@media (max-width: 640px) {
  .hg-search-form { flex-direction: column; }
  .hg-field input, .hg-field select { min-width: unset; width: 100%; }
  .hg-btn-search { width: 100%; }
  .hg-date-header,
  .hg-plan-row { grid-template-columns: 160px repeat(var(--cols,7), 72px) 110px; }
  .hg-plan-info-head, .hg-plan-info { padding: 8px; }
  .hg-modal-header { flex-wrap: wrap; gap: 8px; }
  .hg-form-grid { grid-template-columns: 1fr; }
  .hg-form-grid .form-group[style*="span 2"] { grid-column: span 1; }
}
