/* assets/css/style.css */

/* Import Classy Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: #fafafa;
  color: #2c2c2c;
  line-height: 1.6;
}

/* Header */
.site-header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  top: 0;
  z-index: 1;
}

.container {
  width: 90%;
  height: 30px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  font-weight: 700;
  text-decoration: none;
  color: #000;
  letter-spacing: 1px;
}

.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar .nav-links li a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.navbar .nav-links li a:hover {
  color: #000;
}

.navbar .nav-links li a::after {
  content: '';
  display: block;
  height: 2px;
  background-color: #000;
  width: 0;
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.navbar .nav-links li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: url('../images/img_1_1753923906136.jpg') no-repeat center center/cover;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 0 20px;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5em;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.3em;
  font-weight: 300;
}

/* Featured Photos */
.featured-photos {
  padding: 60px 20px;
  text-align: center;
  max-width: 1280px;
  margin: 0 auto;
}

.featured-photos h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #333;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-content: center; /* centers the grid */
  padding: 10px 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.photo-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.photo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.photo-card img:hover {
  transform: scale(1.02);
}

/* CTA Section */
.cta {
  background-color: #111;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2em;
  margin-bottom: 25px;
}

.cta-button {
  background-color: #fff;
  color: #111;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #ddd;
  color: #000;
}
/* Already included fonts and reset sections above */

/* === FOOTER STYLES === */
.site-footer {
  background-color: #111;
  color: #ccc;
  padding: 30px 20px 15px;
  margin-top: auto;
  font-size: 0.9em;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  margin-bottom: 15px;
}

.footer-links a {
  margin: 0 12px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
}

.social-icons a {
  display: inline-block;
  width: 32px;
  height: 32px;
  margin: 0 10px;
}

.social-icons img {
  width: 100%;
  height: auto;
  filter: none;
  transition: filter 0.3s ease;
}

.social-icons a:hover img {
  filter: none;
}

.request-form {
  align-items: center;
  justify-content: center;
  padding-top: 50px;
}

.request-form h1 {
  font-family:"Times New Roman",times, serif;
  margin-left: 65px;
}

@media screen and (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 15px;
  }

  .hero-text h1 {
    font-size: 2.2em;
  }

  .hero-text p {
    font-size: 1.1em;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .cta h2 {
    font-size: 1.5em;
  }

  .cta-button {
    font-size: 1em;
    padding: 10px 20px;
  }

  .footer-links a,
  .social-icons {
    display: block;
    margin: 10px 0;
    padding: 5px;
    width: 16px;
    height: 16px;
  }

  .footer-container {
    padding: 0 10px;
  }
}

/* === STICKY FOOTER SUPPORT === */

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
    
}

/* Admin Layout (fixed sidebar) */


.admin-container {
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0; /* top:0; bottom:0; left:0 */
  width: 220px;
  background: #111;
  color: #fff;
  padding: 20px;
  overflow-y: auto;  /* scroll if sidebar content is long */
}

/* Push main content down so it doesn't hide under the fixed bar */
.admin-main {
  margin-left: 230px; /* already there from fixed sidebar */
  padding-top: 50px;  /* adjust based on topbar height */
}

.admin-topbar {
  position: fixed;
  top: 0;
  left: 230px; /* match sidebar width */
  right: 0;
  z-index: 100;
  background-color: #fafafa;
  padding: 10px 20px;
  font-size: 0.9em;
  border-bottom: 1px solid #ddd;
  text-align: right;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li {
  margin: 20px 0;
}

.sidebar-nav a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
}

.sidebar-nav a:hover {
  color: #fff;
}

.admin-table th {
  background-color: #f8f8f8;
}

.action-link {
  background: #444;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.action-link:hover {
  background: #000;
}

.quote-create {
  background: #007BFF;
}

.quote-create:hover {
  background: #0056b3;
}


.dashboard-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-box {
  background: #fff;
  border-left: 5px solid #111;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex: 1;
  min-width: 200px;
  text-align: center;
}
.admin-main form {
  background: #fff;
  padding: 20px;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.admin-main form label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
}

.admin-main form input,
.admin-main form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.admin-main form button {
  margin-top: 20px;
  padding: 12px 25px;
  background-color: #111;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.admin-main form button:hover {
  background-color: #333;
}

.admin-main h1 {
    color: skyblue;
    font-family: "Times New Roman", Times, serif;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th, .admin-table td {
  padding: 8px 11px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 0.7em;
}

.admin-table th {
  background-color: #f8f8f8;
}

.action-link {
  background: #444;
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
}

.action-link:hover {
  background: black;
}

/* Header: Mobile responsiveness */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #000;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 10px;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #ddd;
  }

  .navbar.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 10px 15px;
    display: block;
    width: 100%;
  }
}

.gallery-page {
  padding: 40px;
  background: #f9f9f9;
}

.photo-group {
  margin-bottom: 50px;
}

.photo-group h2 {
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
}

.photo-thumb {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover */
  object-position: center;
  display: block;
}


#lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}

#lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2em;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  margin-top: 10px;
  font-size: 2em;
  color: white;
  display: flex;
  justify-content: space-between;
  width: 120px;
}

#lightbox-count {
  margin-top: 10px;
  color: white;
  font-size: 1em;
}


.approval-form {
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.approve-btn {
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background-color: #ccc;
}

.approve-btn.approved {
  background-color: #4caf50;
  color: white;
}

.approve-btn.unapproved {
  background-color: #fbc02d;
  color: black;
}
.create-user-btn {
  display: inline-block;
  margin: 20px 0 10px;
  background: #111;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.create-user-btn:hover {
  background: #333;
}
.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.user-table th, .user-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
}

.user-table th {
  background-color: #f0f0f0;
  font-weight: 600;
}

.user-table a {
  color: #0077cc;
  text-decoration: none;
  margin-right: 10px;
}

.user-table a:hover {
  text-decoration: underline;
}

.photo-approval-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  margin-top: 30px;
}

.photo-admin-thumb {
  background: #fff;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.photo-admin-thumb img {
  position: relative;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.photo-meta {
  font-size: 0.9em;
  color: #444;
  margin-bottom: 10px;
}


.logout-link {
  margin-left: 20px;
  text-decoration: none;
  color: #c00;
  font-weight: bold;
}
.logout-link:hover {
  text-decoration: underline;
}

.filter-form {
  margin: 20px 0;
}

.filter-form select {
  padding: 5px;
  font-size: 1em;
  border-radius: 5px;
}


.bulk-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: #4caf50;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.bulk-btn:hover {
  background: #45a049;
}

.user-info p {
  margin-bottom: 10px;
}

.approval-status {
  font-size: 0.75em;
  text-align: center;
  margin-top: 5px;
  color: #666;
}

.admin-main form {
  margin-bottom: 30px;
}

.admin-main form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.admin-main form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

.admin-main form button {
  padding: 10px 20px;
  font-weight: bold;
  background: #111;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.admin-main form button:hover {
  background: #333;
}

.dropdown-form {
  margin-bottom: 30px;
}

.dropdown-form input[type="text"] {
  padding: 8px;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #aaa;
  border-radius: 5px;
}

.user-info-summary p {
  font-size: 0.95em;
  margin: 4px 0 10px;
}

.success-msg {
  color: green;
  margin-top: 10px;
}

.error-msg {
  color: red;
  margin-top: 10px;
}

textarea {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  resize: vertical;
}

@media (max-width: 768px) {
  .site-header.lightbox-open {
    display: none;
  }
}

.greeting {
  display: inline-block;
  padding: 5px 10px;
  font-weight: 500;
  color: #444;
  font-family: 'Segoe UI', sans-serif;
  cursor: default;
  vertical-align: middle;
}

.gallery-page {
  padding: 30px 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery-page h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
  font-weight: 600;
}

.group-form {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 40px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  max-width: 600px;
}

.group-form legend {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

/* Form container */
.group-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.group-form fieldset {
  border: none;
  margin-bottom: 30px;
  border: none;
  padding: 0;
  margin: 0;
}

.group-form legend {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #444;
}

.group-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

.group-form input,
.group-form select,
.group-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: 1em;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.group-form input[type="datetime-local"] {
  font-family: inherit;
}

.group-form button {
  margin-top: 20px;
  padding: 12px 20px;
  font-size: 1em;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.group-form button:hover {
  background-color: #000;
}

/* Success/Error styling */
.success-msg {
  background: #d4edda;
  color: #155724;
  padding: 12px 18px;
  border-radius: 6px;
  max-width: 700px;
  margin: 10px auto;
  border: 1px solid #c3e6cb;
}

.error-msg {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 18px;
  border-radius: 6px;
  max-width: 700px;
  margin: 10px auto;
  border: 1px solid #f5c6cb;
}

.view-link {
  background: #555;
  margin-left: 6px;
}

.view-link:hover {
  background: #333;
}

.version-label {
  background: #eee;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* Sidebar dropdown */
.sidebar ul .dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: block;
}

.dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 10px;
  background: none;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 5px 10px;
}

/* Red notification badge */
.badge {
  background-color: red;
  color: white;
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
}

.booking {
  display: block;
  text-decoration: none;
  background: #f0f8ff;
  margin-top: 4px;
  padding: 4px;
  border-radius: 4px;
  color: #000;
}
.booking:hover {
  background: #d9ebff;
}

.filter-form {
  margin: 10px 0 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.filter-form select {
  padding: 4px;
}

    .calendar {
      display: grid;
      grid-template-columns: repeat(7, 0.5fr);
      gap: 1px;
      background: #ccc;
      margin-top: 20px;
      border-radius: 3px;
    }
    .day {
      background: #fff;
      min-height: 120px;
      padding: 6px;
      border: 1px solid #ddd;
      vertical-align: top;
      font-size: 0.85em;
      position: relative;
    }
    .day-number {
      font-weight: bold;
      margin-bottom: 4px;
    }
    .booking {
      display: block;
      text-decoration: none;
      margin-top: 4px;
      padding: 4px;
      border-radius: 4px;
      font-size: 0.85em;
      color: #000;
}

    .status-label {
      display: inline-block;
      font-size: 0.7em;
      margin-top: 3px;
      padding: 1px 4px;
      background: #ddd;
      color: #333;
      border-radius: 3px;
}
    .booking.pending .status-label {
      background: #bbdefb;
}
    .booking.confirmed .status-label {
     background: #c8e6c9;
}
    .booking.completed .status-label {
     background: #e0e0e0;
}
    .booking.cancelled .status-label {
      background: #ffcdd2;
      color: #c62828;
}

    .booking small {
      display: block;
      font-size: 0.75em;
      color: #666;
    }
    .calendar-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .calendar-nav a {
      margin: 0 10px;
      text-decoration: none;
      color: #007BFF;
    }
    .weekday {
      background: #eee;
      padding: 8px;
      font-weight: bold;
      text-align: center;
    }
    .calendar-jump-form {
        margin-bottom: 12px;
        display: flex;
        gap: 10px;
        align-items: center;
        border-radius: 3px;
}

/* Dark theme scrollbar for sidebar */
.admin-sidebar {
  scrollbar-width: thin;            /* Firefox */
  scrollbar-color: #444 #111;       /* Firefox: thumb color, track color */
}

/* Chrome, Edge, Safari */
.admin-sidebar::-webkit-scrollbar {
  width: 8px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: #111;                 /* track color */
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background-color: #444;           /* thumb color */
  border-radius: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #666;           /* hover effect */
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table { width: 100%; }

  /* --- Layout & Typography --- */

  header { padding: 10px 16px 8px; 
    border-bottom: 1px solid #b81515; 
  }
  .wrap { max-width: var(--maxw); 
    margin: 0 auto; 
    padding: 0 16px;
    }
    
  h1 { margin:0 0 3px; 
    font-size: 25px;
    }
    
  .subtle { color:#9aa0a6;
    font-size:14px;
    }

  /* --- Under-header navbar --- */
  .gallery-nav { display:flex; 
    align-items:center; 
    padding: 14px 0; 
    border-bottom:1px solid #1f1f1f; 
  }
  
  .tabs { display:flex;
    align-items:center;
    gap:16px; 
  }
  
  .tabs a { text-decoration:none;
    color:#9aa0a6; 
    padding:6px 10px; 
    border-radius:8px; 
  }
    
  .tabs a.active { color:#fff;
    background:#1a1a1a; }
    
  .archives { margin-left:auto; 
    display:flex;   
    align-items:center; 
    gap:10px; 
  }
  
  select { background:#121212; color:#e8e8e8; border:1px solid #2a2a2a; padding:6px 10px; border-radius:8px; }

  .category h2 { font-size:22px; 
    margin: 8px 0 14px; 
  }

  /* --- Empty state --- */
  .empty { color:#9aa0a6; padding: 24px 0; }

  /* --- Utility --- */
  .visually-hidden { position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
  
  /* ===== Overlay / Lightbox safety defaults ===== */
html, body { height: auto; overflow: auto; }

/* Lightbox: closed by default (bulletproof) */
  .lb-backdrop{
     position: fixed;
     inset: 0;
     background: rgba(0,0,0,.9);
     z-index: 9999;
     display: block;            /* always present in DOM */
     visibility: hidden;        /* hidden when closed */
     opacity: 0;                /* transparent when closed */
     pointer-events: none;      /* can't intercept clicks when closed */
     align-items: center;
     justify-content: center;
     transition: opacity .15s ease, visibility 0s linear .15s;
}
.lb-backdrop.open{
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .15s ease;
  display: flex;
}


.lb-content{ max-width: 92vw; max-height: 88vh; }
.lb-content img{ width: 100%; height: 100%; object-fit: contain; display: block; }

.lb-close{
  position: absolute; 
  top: 12px; 
  right: 16px; 
  font-size: 28px; 
  cursor: pointer; 
  background: transparent; 
  border: none; 
  color: #eee;
}
