/* you are going to change this website and image selection on admin side by input type=file atleast indatabase must be 10 images of apartement also add icon image on my files as logo



and keyframes on and before giving the output first run and check if there isn't any error design well footer also replace conact number with this       



give me a zipped folder also on admin can add onther admin password must not be hashed even media query on admin side must be like of instgram and add the function of sending recent to emails add logout for admins */
:root {
  --brand: #b7410e;
  --brand-light: #ff6f3c;
  --brand-dark: #7a2c09;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --bg: #f7f7fb;
  --shadow-soft: 0 16px 40px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 24px 60px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: #111827;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   KEYFRAME ANIMATIONS (public site only)
═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183, 65, 14, 0.35); }
  50%      { box-shadow: 0 0 0 10px rgba(183, 65, 14, 0); }
}

@keyframes shimmerBg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes iconPop {
  0%   { transform: scale(0.85) rotate(-4deg); }
  60%  { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}

img {
  max-width: 100%;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #03141d;
  color: #fff;
  padding: 1rem 0;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.05), 0 4px 24px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 50;
  animation: fadeIn 0.5s ease both;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color:#b63506;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.25rem;
}

.main-nav a,
.call-button {
  color: #a0490f;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: #ffb488;
}

.call-button {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  animation: gentlePulse 2.8s ease-in-out infinite;
}

.call-button:hover {
  transform: translateY(-2px);
}

.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, rgba(3,20,29,.95) 0%, rgba(3,20,29,.85) 100%), url('home.JPG') center/cover no-repeat;
  
  color: #fff;
  animation: shimmerBg 18s ease-in-out infinite;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  animation: fadeInUp 0.8s ease both;
}

.hero-preview {
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero-preview-card {
  animation: floatY 5s ease-in-out infinite;
}

.hero-copy .eyebrow,
.section-heading .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ffa56b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-copy h1 {
  font-size: clamp(2.85rem, 3.7vw, 4.8rem);
  margin: 0 0 1rem;
  max-width: 10ch;
}

.hero-copy p {
  max-width: 44rem;
  margin-bottom: 1.8rem;
  color: rgba(255,255,255,0.88);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button.primary {
  background: #ff6f3c;
  color: #fff;
}

.button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(255, 111, 60, 0.35);
}

.button.secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.button.secondary:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.2);
}

.hero-preview {
  position: relative;
}

.hero-preview-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 2rem;
}

.hero-preview-card h2 {
  margin: 0.75rem 0 1rem;
  font-size: 2rem;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats div {
  background: rgba(255,255,255,0.08);
  padding: 0.95rem 1rem;
  border-radius: 16px;
  min-width: 110px;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

/* ═══════════════════════════════════════════
   CLEANLINESS / TRUST SECTION
═══════════════════════════════════════════ */
.clean-promise {
  padding: 4rem 0 1rem;
}

.clean-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.clean-card {
  background: var(--surface);
  border: 1px solid #eef1f5;
  border-radius: 22px;
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  text-align: left;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clean-card:nth-child(1) { animation-delay: 0.05s; }
.clean-card:nth-child(2) { animation-delay: 0.15s; }
.clean-card:nth-child(3) { animation-delay: 0.25s; }
.clean-card:nth-child(4) { animation-delay: 0.35s; }

.clean-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.clean-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff;
}

.clean-card:hover .clean-card__icon {
  animation: iconPop 0.5s ease;
}

.clean-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.clean-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.listings {
  padding: 4rem 0 5rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.6s ease both;
}

.section-heading h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: 2.4rem;
}

.listing-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: end;
  padding: 1.2rem 1.25rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
  margin-bottom: 1.8rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.filter-group select {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(255, 111, 60, 0.15);
}

.filter-reset:hover {
  background: #e2e8f0;
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-submit {
  padding: 0.8rem 1.15rem;
}

.filter-reset {
  padding: 0.8rem 1.15rem;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.8rem;
}

.card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

.card-image {
  min-height: 230px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 1.6rem;
}

.card-label {
  display: inline-block;
  color: #ff6f3c;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.card-body h3 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
}

.card-body p {
  margin: 0 0 1.2rem;
  color: #475569;
}

.card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  color: #64748b;
}

.card-meta span {
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.card-actions .button {
  flex: 1;
  min-width: 140px;
}

.apartment-detail {
  padding: 4rem 0 5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.detail-image {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  border-radius: 32px;
}

.detail-copy {
  background: #fff;
  padding: 2rem;
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

.detail-copy h1 {
  margin-top: 0;
  font-size: 2.65rem;
}

.detail-specs {
  display: flex;
  gap: 1rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
}

.detail-specs span {
  background: #f8fafc;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  color: #0f172a;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}

.booking-form {
  display: grid;
  gap: 1rem;
}

.booking-form label {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.booking-form {
  display: grid;
  gap: 1rem;
}

.booking-form label {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.booking-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  margin-top: 0.45rem;
}

.booking-form button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.6rem;
}

.payment-page {
  padding: 5rem 0;
}

.payment-box {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.payment-box h2 {
  margin-top: 0;
}

.payment-box p {
  margin: 1rem 0;
  color: #475569;
}

.payment-details {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 16px;
  margin: 1.5rem 0;
}

.payment-details p {
  margin: 0.8rem 0;
}

.price {
  font-size: 1.8rem;
  color: #ff6f3c;
  font-weight: 700;
}

.manual-payment {
  background: #fef3c7;
  border: 2px solid #fcd34d;
  padding: 1.5rem;
  border-radius: 16px;
  margin: 1.5rem 0;
}

.manual-payment h3 {
  margin-top: 0;
  color: #92400e;
}

.manual-payment p {
  margin: 0.8rem 0;
  color: #78350f;
}

.manual-payment code {
  background: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

.help-text {
  margin-top: 1.5rem;
  color: #64748b;
}

.site-footer {
  background: linear-gradient(135deg, #03141d, #052638);
  color: #cbd5e1;
  padding-top: 60px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
}

.footer-section h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.2rem;
  position: relative;
}

.footer-section h3::after {
  content: "";
  width: 50px;
  height: 3px;
  background: #0ea5e9;
  display: block;
  margin-top: 8px;
  border-radius: 10px;
}

.footer-section p {
  line-height: 1.8;
  color: #94a3b8;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: #0ea5e9;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.08);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: 0.3s;
}

.social-links a:hover {
  background: #0ea5e9;
  transform: translateY(-4px);
}

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px 0;
}

.footer-bottom p {
  margin: 0;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
.empty-state {
  text-align: center;
  padding: 2rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
  color: #334155;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 2.5rem auto 0;
  padding: 1rem;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  width: fit-content;
  max-width: 100%;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pagination-btn:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff5f5;
}

.pagination-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.4rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-num:hover {
  border-color: #c0392b;
  color: #c0392b;
  background: #fff5f5;
}

.pagination-num.is-active {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
  box-shadow: 0 6px 16px rgba(192, 57, 43, 0.3);
}

.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  color: #94a3b8;
  font-weight: 600;
}

.pagination-info {
  width: 100%;
  text-align: center;
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 560px) {
  .pagination {
    width: 100%;
    padding: 0.85rem;
  }

  .pagination-numbers {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .pagination-num {
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .pagination-btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
  }
}

.admin-panel {
  padding: 4rem 0;
}

.admin-panel .dashboard-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}

.dashboard-card {
  background: #fff;
  padding: 1.7rem;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.06);
}

.dashboard-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.dashboard-card p {
  margin: 0.8rem 0 0;
  color: #475569;
}

.admin-list {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.06);
}

.admin-list table {
  width: 100%;
  border-collapse: collapse;
}

.admin-list th,
.admin-list td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.admin-list th {
  background: #f8fafc;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
}

.auth-form {
  max-width: 520px;
  margin: 3rem auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.08);
}

.auth-form h2 {
  margin-top: 0;
}

.auth-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.auth-form input,
.auth-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  margin-top: 0.4rem;
}

.auth-form textarea {
  min-height: 140px;
  resize: vertical;
}

.auth-form button {
  width: 100%;
  margin-top: 1.25rem;
}

.form-note {
  color: #dc2626;
  margin-top: 0.75rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    order: -1;
  }
}

.contact-page {
  padding: 4rem 0 5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.contact-card {
  background: #fff;
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.contact-details p {
  color: #475569;
  line-height: 1.8;
}

.contact-info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.contact-info-row strong {
  color: #0f172a;
  font-weight: 700;
}

.contact-info-row a {
  color: #0f172a;
  text-decoration: none;
}

.form-success,
.form-error {
  border-radius: 18px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.form-success {
  background: #ecfdf5;
  color: #166534;
}

.form-error {
  background: #fef2f2;
  color: #b91c1c;
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
  }

  .site-header {
    padding: 1.5rem 0;
  }
}

/* ═══════════════════════════════════════════
   SIDEBAR ADMIN LAYOUT
═══════════════════════════════════════════ */

.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f1f5f9;
}

/* ── Sidebar ── */
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #03141d;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 1rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(255,111,60,0.15);
  color: #b7410e;
}

.sidebar-link.active svg {
  stroke: #ff6f3c;
}

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.sidebar-avatar {
  width: 34px;
  height: 34px;
  background:#b7410e;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.sidebar-username {
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-role {
  color: #b7410e;
  font-size: 0.75rem;
}

.sidebar-logout {
  color: #b7410e;
  display: flex;
  padding: 0.4rem;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.sidebar-logout:hover {
  color: #ff6f3c;
  background: rgba(255,111,60,0.1);
}

/* ── Main content ── */
.admin-main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-x: auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-page-title {
  margin: 0;
  font-size: 1.75rem;
  color: #0f172a;
}

.admin-page-sub {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

/* ── Stat cards ── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

.dc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dc-icon--blue   { background: #eff6ff; color: #3b82f6; }
.dc-icon--blue svg { stroke: #3b82f6; }
.dc-icon--orange { background: #fff7ed; color: #ff6f3c; }
.dc-icon--orange svg { stroke: #ff6f3c; }
.dc-icon--green  { background: #f0fdf4; color: #22c55e; }
.dc-icon--green svg { stroke: #22c55e; }
.dc-icon--purple { background: #faf5ff; color: #a855f7; }
.dc-icon--purple svg { stroke: #a855f7; }

.dc-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.dc-label {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

/* ── Content cards ── */
.admin-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.admin-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.admin-card-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.view-all {
  font-size: 0.82rem;
  color: #ff6f3c;
  text-decoration: none;
  font-weight: 600;
}

.view-all:hover { text-decoration: underline; }

/* ── Tables ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  padding: 0.7rem 1.25rem;
  text-align: left;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #fafbff; }

.td-muted { color: #94a3b8 !important; font-size: 0.82rem; }
.td-price { font-weight: 600; color: #0f172a !important; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge--available, .badge--completed { background: #dcfce7; color: #15803d; }
.badge--pending   { background: #fef9c3; color: #92400e; }
.badge--booked    { background: #dbeafe; color: #1d4ed8; }
.badge--failed, .badge--cancelled { background: #fee2e2; color: #b91c1c; }

/* ── Add form ── */
.add-form {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.add-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.add-form input,
.add-form textarea,
.add-form select {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.9rem;
  color: #0f172a;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.add-form input:focus,
.add-form textarea:focus,
.add-form select:focus {
  outline: none;
  border-color: #ff6f3c;
  box-shadow: 0 0 0 3px rgba(255,111,60,0.1);
  background: #fff;
}

.add-form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 0.5rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .admin-section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   SIMPLE CARD GRID
═══════════════════════════════════════════ */

.simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.simple-grid .simple-card:nth-child(1) { animation-delay: 0.05s; }
.simple-grid .simple-card:nth-child(2) { animation-delay: 0.15s; }
.simple-grid .simple-card:nth-child(3) { animation-delay: 0.25s; }
.simple-grid .simple-card:nth-child(4) { animation-delay: 0.35s; }
.simple-grid .simple-card:nth-child(5) { animation-delay: 0.45s; }
.simple-grid .simple-card:nth-child(6) { animation-delay: 0.55s; }

.simple-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8edf2;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.simple-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
}

.simple-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
}

.simple-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.simple-card:hover .simple-card__img {
  transform: scale(1.06);
}

.simple-card__gallery-dots {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
}

.simple-card__gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background 0.25s ease, transform 0.25s ease;
}

.simple-card__gallery-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.simple-card__price {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #ff6f3c;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
}

.simple-card__price small {
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.85;
}

.simple-card__type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  text-transform: capitalize;
}

.simple-card__units-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(16, 122, 63, 0.9);
  color: #fff;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
}

.simple-card__units-badge.is-full {
  background: rgba(192, 57, 43, 0.92);
}

.simple-card__body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.simple-card__loc {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.45rem;
}

.simple-card__loc svg { stroke: #94a3b8; flex-shrink: 0; }

.simple-card__title {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.simple-card__specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.simple-card__specs span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 500;
}

.simple-card__specs svg { stroke: #94a3b8; flex-shrink: 0; }

.simple-card__btn {
  display: block;
  text-align: center;
  background: #03141d;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}

.simple-card__btn:hover {
  background: #ff6f3c;
}
/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #222;
    background: #f8f9fa;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90px;
}

/* =========================
   BRAND
========================= */
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #111827;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: 0.3s ease;
}

.brand:hover {
    opacity: 0.9;
}

/* LOGO IMAGE */
.brand img,
.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;

    /* Make logo look premium */
    background: #fff;
    padding: 6px;
    border-radius: 14px;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.06);

    transition: transform 0.3s ease;
}

.brand:hover img {
    transform: scale(1.05);
}

/* Brand text */
.brand span {
    color: #c62828;
    line-height: 1.2;
}

/* =========================
   NAVIGATION
========================= */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: 0.3s ease;
}

.main-nav a:hover {
    color: #c62828;
}

/* =========================
   CALL BUTTON
========================= */
.call-button {
    background: #c62828;
    color: #fff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 700;
    transition: 0.3s ease;
}

.call-button:hover {
    background: #a81f1f;
    transform: translateY(-2px);
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .header-inner {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
    }

    .brand {
        font-size: 1.1rem;
        text-align: center;
    }

    .brand img,
    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .main-nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .call-button {
        width: 100%;
        text-align: center;
    }
}
.btn-edit,
.btn-delete{
    display:inline-block;
    padding:6px 12px;
    border-radius:6px;
    color:#fff;
    text-decoration:none;
    font-size:14px;
    font-weight:500;
}

.btn-edit{
    background:#0d6efd;
}

.btn-edit:hover{
    background:#0b5ed7;
}

.btn-delete{
    background:#dc3545;
}

.btn-delete:hover{
    background:#bb2d3b;
}

/* ── Admin flash messages ── */
.admin-flash {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.admin-flash--success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.admin-flash--error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Status badges for uppercase Pesapal statuses (PAID / PENDING / FAILED) */
.badge--PAID, .badge--COMPLETED { background: #dcfce7; color: #15803d; }
.badge--PENDING { background: #fef9c3; color: #92400e; }
.badge--FAILED  { background: #fee2e2; color: #b91c1c; }

.badge--approved   { background: #dcfce7; color: #15803d; }
.badge--unapproved { background: #fef3c7; color: #92400e; }

/* ── Sidebar nav badge (pending approvals count) ── */
.sidebar-link { position: relative; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c0392b;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  margin-left: auto;
}

/* ── Payments page ── */
.payment-approve-form { display: inline; }
.btn-approve {
  background: #15803d;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-approve:hover { background: #12692f; }
.btn-approve[disabled] {
  background: #cbd5e1;
  color: #64748b;
  cursor: default;
}

/* ── Accounts page ── */
.accounts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .accounts-grid { grid-template-columns: 1fr; }
}
.account-hint {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: -0.5rem;
}

/* ── Apartment link in bookings table ── */
.apartment-link { color: #0f172a; text-decoration: none; }
.apartment-link:hover { color: #c0392b; text-decoration: underline; }
.td-id { color: #94a3b8; font-size: 0.82rem; }

/* ── Availability badges on listing cards ─────────────────────── */
.simple-card__avail-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  pointer-events: none;
}
.simple-card__avail-badge.is-ok     { background: rgba(22,163,74,.88); color:#fff; }
.simple-card__avail-badge.is-low    { background: rgba(234,88,12,.9);  color:#fff; }
.simple-card__avail-badge.is-full   { background: rgba(185,28,28,.92); color:#fff; }