/* ==========================================================================
   DIAMOND RENTALS LLC - MINIMALIST LIGHT DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Soft Light Theme */
  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-card: #FFFFFF;
  --border-light: #E2E8F0;
  --border-subtle: #CBD5E1;

  /* Typography Colors */
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #94A3B8;

  /* Softened Blue Accents */
  --brand-blue: #2563EB;
  --brand-blue-soft: #3B82F6;
  --brand-blue-hover: #1D4ED8;
  --accent-light-blue: #EFF6FF;

  /* Buttons System */
  --btn-filled-bg: #2563EB;
  --btn-filled-hover: #1D4ED8;
  --btn-filled-text: #FFFFFF;

  --btn-outlined-border: #3B82F6;
  --btn-outlined-text: #2563EB;
  --btn-outlined-hover-bg: rgba(37, 99, 235, 0.08);

  /* Fonts & Radius */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1100px;
  --nav-height: 76px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-subtle: 0 2px 15px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(15, 23, 42, 0.06);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.section-tag {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue-soft);
  margin-bottom: 0.6rem;
}

/* ==========================================================================
   BUTTON SYSTEM
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  outline: none;
  white-space: nowrap;
}

.btn-filled {
  background-color: var(--btn-filled-bg);
  color: var(--btn-filled-text);
  border-color: var(--btn-filled-bg);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.btn-filled:hover {
  background-color: var(--btn-filled-hover);
  border-color: var(--btn-filled-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.btn-outlined {
  background-color: transparent;
  color: var(--btn-outlined-text);
  border-color: var(--btn-outlined-border);
}

.btn-outlined:hover {
  background-color: var(--btn-outlined-hover-bg);
  border-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;

}

.btn-danger:hover {
  background-color: #DC2626;
  border-color: #DC2626;
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 0.975rem;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.header-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.header-title span {
  color: var(--brand-blue-soft);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.925rem;
  transition: color var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue-soft);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO ANIMATION SEQUENCE STYLING (Tweaked Centering & Logo Height)
   ========================================================================== */

.hero-sequence-section {
  position: relative;
  width: 100%;
  padding-top: var(--nav-height);
  background-color: var(--bg-alt);
  overflow: hidden;
}

.gallery-hero-wrapper {
  position: relative;
  width: 100%;
  height: 520px;
  background: var(--bg-alt);
  overflow: hidden;
  transition: background 1.8s ease;
}

.gallery-hero-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.gallery-hero-stage.aerial-revealed {
  opacity: 1;
}

.hero-overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.25rem 2rem;
  background: transparent;
  transition: background 1.8s ease;
}

.hero-overlay-layer.dark-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.25) 45%, rgba(15, 23, 42, 0.6) 100%);
}

.gallery-top-brand-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 60px;
  position: relative;
  margin: 0 auto;
  text-align: center;
}

.hero-anim-logo {
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.15));
  will-change: transform, opacity, background, padding, box-shadow, height, max-height;
  transition: all 2.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

/* Step 1: Massive Full-Sized Entrance Logo (Fills the gallery frame like a picture card) */
.hero-anim-logo.center-large {
  height: 380px;
  max-height: 75vh;
  width: auto;
  max-width: 90%;
  transform: translateY(20px) scale(1);
  background: #FFFFFF;
  padding: 2.5rem 3.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-light);
}

/* Step 2: Smoothly Glides Up and Minimizes to Top Title Line */
.hero-anim-logo.top-left-small {
  height: 2.85rem;
  max-height: none;
  width: auto;
  max-width: none;
  transform: translateY(0) scale(1);
  background: #FFFFFF;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid transparent;
}

.hero-anim-logo.fade-out {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.hero-typewriter-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.015em;
  border-right: 3px solid var(--brand-blue-soft);
  white-space: nowrap;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
  display: inline-block;
  line-height: 1.1;
  transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.hero-typewriter-title.done-typing {
  border-right: none;
}

.hero-typewriter-title.fade-out {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slogan-box {
  margin-top: 0.85rem;
  text-align: center;
  transition: opacity 1.2s ease, transform 1.2s ease, visibility 1.2s ease;
}

.hero-slogan-box.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.hero-slogan-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  color: #F8FAFC;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.8s ease, transform 1.8s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   EXPANDED ADMIN DASHBOARD MODAL (Full Scrolling to reach Save & Cancel)
   ========================================================================== */

.modal-card-expanded {
  width: 90vw;
  max-width: 1180px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
}

.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  flex-shrink: 0;
}

.admin-tab-content {
  display: none;
  flex-grow: 1;
}

.admin-tab-content.active {
  display: block;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.admin-panel-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-y: auto;
  max-height: 520px;
}

.hero-slogan-text.show {
  opacity: 1;
  transform: translateY(0);
}

/* Badge for Main Landing Cover Image in Admin */
.badge-main-cover {
  background: var(--brand-blue-soft);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.hero-slogan-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-style: italic;
  color: #F8FAFC;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s ease, transform 1s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  max-width: 620px;
}

.hero-slogan-text.show {
  opacity: 1;
  transform: translateY(0);
}

/* Quick Info Strip Fade-in animation */
.info-strip {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease, transform 1s ease;
}

.info-strip.visible {
  opacity: 1;
  transform: translateY(0);
}
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   MINIMALIST INFO STRIP
   ========================================================================== */

.info-strip {
  background: var(--bg-main);
  border-y: 1px solid var(--border-light);
  padding: 1.75rem 0;
  position: relative;
  z-index: 10;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  text-align: center;
}

.info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light-blue);
  color: var(--brand-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.info-details h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
}

.info-details p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.simple-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.simple-service-item {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.simple-service-item:hover {
  border-color: var(--brand-blue-soft);
  transform: translateY(-2px);
}

.simple-service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--brand-blue-soft);
}

.simple-service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SLIDER GALLERY SECTION (Clean Edge-To-Edge Images)
   ========================================================================== */

.gallery-section {
  padding: 4.5rem 0;
  background-color: var(--bg-main);
}

.gallery-controls-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.slider-wrapper {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.slider-stage {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #000;
}

.slide-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.slide-item.active {
  opacity: 1;
  visibility: visible;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all var(--transition);
}

.slider-arrow:hover {
  background: var(--brand-blue-soft);
  color: #FFFFFF;
  border-color: var(--brand-blue-soft);
}

.slider-arrow-prev { left: 1rem; }
.slider-arrow-next { right: 1rem; }

.thumbnails-container {
  display: flex;
  gap: 0.6rem;
  padding: 0.85rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  overflow-x: auto;
}

.thumb-item {
  width: 80px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: all var(--transition);
  flex-shrink: 0;
}

.thumb-item:hover { opacity: 0.95; }

.thumb-item.active {
  opacity: 1;
  border-color: var(--brand-blue-soft);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CONTACT FORM SECTION
   ========================================================================== */

.contact-section {
  padding: 4.5rem 0;
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info-box {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  opacity: 0;
  transform: translateX(-140px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.5rem;
}

.contact-detail-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-light-blue);
  color: var(--brand-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.925rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-detail-text p, .contact-detail-text a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.contact-detail-text a:hover {
  color: var(--brand-blue-soft);
}

.contact-form-box {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  opacity: 0;
  transform: translateX(140px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.contact-info-box.in-view,
.contact-form-box.in-view {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-blue-soft);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background-color: #F8FAFC;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.footer-slogan {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 320px;
  font-style: italic;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--brand-blue-soft);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   ADMIN MODAL & GALLERY EDITOR STYLING
   ========================================================================== */

/* Category Filter Pill Bar */
.cat-pill-btn {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.cat-pill-btn:hover {
  border-color: var(--brand-blue-soft);
  color: var(--brand-blue-soft);
  background: var(--bg-alt);
}

.cat-pill-btn.active {
  background: var(--brand-blue-soft);
  color: #FFFFFF;
  border-color: var(--brand-blue-soft);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-close:hover { color: var(--text-main); }

/* Exact Error Alert styling requested by user */
.admin-error-box {
  color: #DC2626;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.85rem;
  line-height: 1.45;
}

.upload-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-alt);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all var(--transition);
}

.upload-dropzone:hover {
  border-color: var(--brand-blue-soft);
  background: var(--accent-light-blue);
}

/* Gallery Management Editor Items List */
.admin-gallery-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.admin-gallery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.admin-gallery-item-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-gallery-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
}

.admin-gallery-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* Developer Credit & Footer Admin Button */
.footer-admin-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition);
}

.footer-admin-btn:hover {
  background: var(--bg-alt);
  color: var(--brand-blue-soft);
  border-color: var(--brand-blue-soft);
}

.developer-credit {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition);
}

.developer-credit span {
  color: var(--text-main);
  font-weight: 600;
}

.developer-credit:hover, .developer-credit:hover span {
  color: var(--brand-blue-soft);
}

/* Visitor Counter Badge */
.admin-visitor-counter {
  margin-top: 1.25rem;
  padding: 0.65rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-visitor-counter strong {
  color: var(--brand-blue-soft);
  font-weight: 700;
  font-size: 0.925rem;
}

/* ==========================================================================
   PAGE BANNER (Browse Equipment Page)
   ========================================================================== */

.page-banner {
  position: relative;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3.5rem;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  text-align: center;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.banner-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
  margin: 0 auto;
}

.banner-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.banner-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ==========================================================================
   EQUIPMENT TILES GRID & CARDS
   ========================================================================== */

.equipment-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.equipment-tile-card {
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.equipment-tile-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-blue-soft);
  box-shadow: var(--shadow-card);
}

.tile-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #F1F5F9;
  overflow: hidden;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.equipment-tile-card:hover .tile-img {
  transform: scale(1.04);
}

/* Availability Badges */
.badge-avail {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-avail.Available {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.badge-avail.In-Use, .badge-avail.In\ Use {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.badge-avail.Reserved {
  background: #DBEAFE;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.tile-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tile-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-blue-soft);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.tile-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.tile-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Rate Schedule Table inside Tile */
.tile-rates-table {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  text-align: center;
}

.rate-col {
  display: flex;
  flex-direction: column;
}

.rate-col-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
}

.rate-col-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-blue-soft);
}

/* ==========================================================================
   CUSTOM EQUIPMENT SELECTOR DROPDOWN (WITH TITLES & THUMBNAILS)
   ========================================================================== */

.custom-equip-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.custom-select-trigger:hover {
  border-color: var(--brand-blue-soft);
  background: #FFFFFF;
}

.trigger-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
}

.trigger-thumb {
  width: 34px;
  height: 26px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.trigger-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform var(--transition);
}

.custom-equip-select.open .trigger-arrow {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 100;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}

.custom-equip-select.open .custom-select-options {
  display: block;
}

.option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition);
}

.option-item:last-child {
  border-bottom: none;
}

.option-item:hover, .option-item.selected {
  background: var(--accent-light-blue);
}

.option-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.option-thumb {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}

.option-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.option-rate {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--brand-blue-soft);
  background: var(--bg-alt);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ==========================================================================
   EXPANDED ADMIN DASHBOARD MODAL (80-90% Viewport Screen Size)
   ========================================================================== */

.modal-card-expanded {
  width: 90vw;
  max-width: 1180px;
  height: 85vh;
  max-height: 840px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem;
  overflow: hidden;
}

.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.admin-tab-btn:hover {
  color: var(--brand-blue-soft);
  background: var(--bg-alt);
}

.admin-tab-btn.active {
  color: var(--brand-blue-soft);
  background: var(--accent-light-blue);
}

.admin-tab-content {
  display: none;
  flex-grow: 1;
  overflow-y: auto;
}

.admin-tab-content.active {
  display: block;
}

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  height: 100%;
}

.admin-panel-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-y: auto;
}

.admin-machinery-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow-y: auto;
}

.admin-machinery-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  gap: 0.75rem;
}

.admin-machinery-thumb {
  width: 50px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.admin-machinery-info {
  flex-grow: 1;
}

.admin-machinery-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-machinery-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.admin-dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE RESPONSIVE & LAYOUT CONTAINMENT (Prevents side-sliding on mobile)
   ========================================================================== */

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    padding: 0 1rem;
    overflow-x: hidden;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-card);
  }

  .nav-menu.active { transform: translateY(0); }
  .mobile-toggle { display: block; }

  .hero-title { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .slider-wrapper {
    max-width: 100%;
    margin: 0;
  }

  .slider-stage { height: 260px; }

  .slider-arrow-prev { left: 0.5rem; }
  .slider-arrow-next { right: 0.5rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
  }

  .modal-card {
    width: 95%;
    max-width: 100%;
    padding: 1.25rem;
  }
}

/* ==========================================================================
   SPECIFIC < 700PX RESPONSIVE OVERFLOW PREVENTIONS (Hero Text & Category Dropdown)
   ========================================================================== */
@media (max-width: 700px) {
  .gallery-top-brand-bar {
    width: 100%;
    max-width: 100%;
    padding: 0 0.5rem;
    gap: 0.5rem;
  }

  .hero-typewriter-title {
    font-size: clamp(1.2rem, 5.5vw, 1.85rem);
    white-space: normal;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.2;
  }

  .hero-slogan-text {
    font-size: clamp(0.775rem, 3.4vw, 0.95rem);
    padding: 0 0.75rem;
    text-align: center;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.35;
  }

  .hero-anim-logo.center-large {
    transform: translateY(85px) scale(1.35);
  }

  .hero-anim-logo.top-left-small {
    height: 2.1rem;
  }

  .category-select-wrapper {
    width: 96% !important;
    max-width: 100% !important;
    margin: 0 auto 1.5rem auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .category-select {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.85rem !important;
    padding: 0 0.65rem !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
}

