/* general styling */

/* MD CD trial font */
@font-face {
  font-family: 'Aktiv Grotesk';
  src: url('assets/fonts/font-1/AktivGroteskCd_Trial_Md.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* semibold EX trial font */
@font-face {
  font-family: 'Aktiv Grotesk SB';
  src: url('../assets/fonts/font-1/AktivGroteskEx_Trial_SBd.ttf') format('truetype');
  font-style: normal;
}

/* regular CD trial font */
@font-face {
  font-family: 'Aktiv Grotesk RG';
  src: url('../assets/fonts/font-1/AktivGroteskCd_Trial_Rg.ttf') format('truetype');
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Aktiv Grotesk', sans-serif;
  background-color: #ffffff;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* homepage */
.introduction h1 {
  font-family: 'Aktiv Grotesk SB', sans-serif;
  font-size: 32px;
  color: #789DAF;
  padding-left: 1rem;
  padding-top: 2rem;
}

.introduction p {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  font-size: 20px;
  color: black;
  padding-left: 1rem;
  padding-top: .5rem;
}

.homepage {
  text-align: center;
}


header {
  background-color: #3E748E;
  padding: 2rem 0;
}


nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.nav-divider {
  height: 24px;
  width: 1px;
  background-color: white;
  opacity: 0.6;
  margin: 0 1rem;
}


/* Main nav links */
nav a,
.dropdown-link {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.9rem;
  font-family: 'Aktiv Grotesk SB', sans-serif;
  letter-spacing: .1rem;
  padding: 0.5rem;
  transition: opacity 0.2s;
}

nav a:hover,
.dropdown-link:hover {
  opacity: 0.8;
}

nav a,
nav .dropdown {
  height: auto;
  border-left: none;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  z-index: 1000;
  font-size: 0.85rem;
  border-radius: 4px;
}


/* Dropdown links */
.dropdown-content a {
  color: #3E748E;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Aktiv Grotesk RG', sans-serif;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.arrow {
  font-size: 1rem;
  margin-left: 0.5rem;
}


/* main video on the homepage */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: black;
  z-index: 1;
}

.hero-video-wrapper {
  position: absolute;
  top: -10%; 
  left: 0;
  width: 100%;
  height: 120%;
  z-index: -1;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel {
  position: relative;
  width: 100%;
  margin: 2rem 0;
  overflow: hidden;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-images img {
  width: 100vw;
  min-width: 100vw;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 100;
  border-radius: 50%;
}

.carousel .prev {
  left: 20px;
}

.carousel .next {
  right: 20px;
}


/* Contact Container Styles */
.contact-container-full {
  display: flex;
  justify-content: flex-start;
  padding: 20px;
  background: #3E748E;
  color: white;
}

.quick-links {
  flex: 1;
  padding: 0 20px;
}

.quick-links h3 {
  font-family: 'Aktiv Grotesk SB', sans-serif;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.quick-links ul {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  letter-spacing: .1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  margin-bottom: 8px;
}

.quick-links a {
  color: white;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.quick-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}



/* events page */
.events-filter,
.kitchen-heading {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 2rem;
}

.filter-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: .2rem;
}


.filter-options {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-btn,
.sort-dropdown {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #789DAF;
  background: none;
  color: #789DAF;
  font-family: 'Aktiv Grotesk RG', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #789DAF;
  color: white;
}

.sort-dropdown {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23789DAF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  padding-right: 2rem;
}


.events-main {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.events-container {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.event-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: white;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.event-actions {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.event-card:hover {
  transform: translateY(-5px);
}

.event-datetime {
  font-size: 0.9rem;
  font-family: 'Aktiv Grotesk RG', sans-serif;
  color: black;
  margin: 0.25rem 0 1rem;
}

.dot-separator {
  margin: 0 2.5px;
  font-weight: bold;
  color: #555;
}


.event-datetime .event-date,
.event-datetime .event-time {
  display: inline;
  letter-spacing: .05rem;
}

.event-title {
  font-family: 'Aktiv Grotesk SB', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #3E748E;
}

.event-business-name {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.event-description {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: #333;
  font-size: 0.95rem;
}

.event-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Save button icons */
/* .save-btn i {
  margin-right: 0.5rem;
} */

/* .save-btn.saved i {
  color: #d4af37;
}

.save-btn {
  background: none;
  border: none;
  color: #789DAF;
  cursor: pointer;
  font-family: 'Aktiv Grotesk RG', sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
} */

/* .save-btn.saved {
  color: #d4af37;
} */

/* pop-up event */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
  padding: 2rem;
}

.modal-content {
  background-color: #ffffff;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 600px;
  font-family: 'Aktiv Grotesk RG', sans-serif;
  color: #333;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1.25rem;
  font-size: 2rem;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: #000;
}

#modal-title {
  font-family: 'Aktiv Grotesk SB', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #3E748E;
}

#modal-datetime {
  font-size: 0.95rem;
  letter-spacing: .05rem;
  color: black;
  margin-bottom: 1rem;
}

#modal-location {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: #444;
}

#modal-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

#modal-website {
  font-size: 0.95rem;
  margin-top: 1rem;
}

#modal-website a {
  color: #3E748E;
  text-decoration: underline;
}

#modal-website a:hover {
  opacity: 0.8;
}

.modal-business-name {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #555;
  margin-bottom: 0.25rem;
}



.event-submit {
  background-color: #e9f1f5;
  padding: 3rem 1rem 2rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
}

.event-submit h2 {
  font-family: 'Aktiv Grotesk SB', sans-serif;
  color: #3E748E;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.event-submit p {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  color: #555;
  margin-bottom: 1rem;
}

.form-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3E748E;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'Aktiv Grotesk SB', sans-serif;
  transition: background-color 0.3s ease;
}

.form-button:hover {
  background-color: #2c5a70;
}


/* Loading and error messages */
.loading-message,
.no-events,
.error-message {
  font-size: 20px;
  text-align: center;
  padding: 2rem;
  font-family: 'Aktiv Grotesk RG', sans-serif;
  color: #555;
  grid-column: 1 / -1;
}

.error-message {
  color: #d9534f;
}

/* kitchen rent page */
.kitchen-heading h1 {
  font-family: 'Aktiv Grotesk SB', sans-serif;
  font-size: 32px;
  color: #789DAF;
  padding-left: .2rem;
  padding-top: 1rem;
}

.kitchen-subheading {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  font-size: 1.7rem;
  color: #000;
  padding-left: 0.2rem;
  margin-bottom: 0.8rem;
}

.kitchen-content {
  max-width: 700px;
  padding-left: 1rem;
  padding-right: 2rem;
}


.kitchen-content p {
  font-family: 'Aktiv Grotesk RG', sans-serif;
  font-size: 1.2rem;
  color: #000;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 0.2rem;
}

/* === Cesar's Directory Custom Styling === */
.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
}

.business-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #333;
  transition: transform 0.2s ease;
}

.business-card:hover {
  transform: translateY(-5px);
}

.business-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.business-card h3 {
  font-family: 'Aktiv Grotesk SB', sans-serif;
  font-size: 1.2rem;
  margin: 1rem;
}

.business-card .read-more {
  display: inline-block;
  font-family: 'Aktiv Grotesk RG', sans-serif;
  color: #3E748E;
  text-decoration: none;
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
}

.business-card .read-more:hover {
  text-decoration: underline;
}

/* map page */
#map {
  position: relative;
  /* top: 0; 
  bottom: 0;  */
  width: 100%;
  margin: 0;
  height: 100%;
}

.map-overlay {
  position: absolute;
  color: black;
  top: 120px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




/* --- DESKTOP --- */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

/* --- MOBILE --- */
@media (max-width: 768px) {

  /* homepage */
  .homepage {
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .map-overlay {
    top: 360px;
    right: 15px;
  }

  /* navbar */
  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
  }

  .nav-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0.5rem 0;
  }

  .dropdown-content {
    display: none;
    position: static;
    transform: none;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.08);
    background-color: white;
    padding-left: 0;
    border-radius: 6px;
    margin-top: 0.25rem;
    width: 100%;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    color: #3E748E;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    font-family: 'Aktiv Grotesk RG', sans-serif;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    border-radius: 4px;
  }

  /* Footer */
  .contact-container-full {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }


  /* --- EVENT PAGE --- */

  /* Events Filter Buttons & Dropdown */
  .filter-header,
  .filter-options {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sort-and-filters {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-btn,
  .sort-dropdown {
    width: 100%;
    text-align-last: center;
  }

  /* Event Cards Layout */
  .events-container {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0.5rem;
  }

  .event-card {
    padding: 1rem;
  }

  .event-title {
    font-size: 1.25rem;
  }

  .event-datetime {
    font-size: 0.85rem;
  }

  .event-description {
    font-size: 0.95rem;
  }

  /* .save-btn {
    font-size: 0.85rem;
  } */

  /* Modal */
  .modal-content {
    position: relative;
    padding: 2rem 2.5rem 2rem 2rem;
    border-radius: 12px;
    background-color: #ffffff;
    max-width: 600px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }

  #modal-title {
    font-family: 'Aktiv Grotesk SB', sans-serif;
    font-size: 2rem;
    margin: 0 0 1rem;
    color: #3E748E;
    line-height: 1.2;
  }

  .modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.75rem;
    font-weight: bold;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
  }

  .modal-close:hover {
    color: #000;
  }

  /* CTA Section */
  .event-submit {
    padding: 2rem 1rem;
  }

  .event-submit h2 {
    font-size: 1.4rem;
  }

  .event-submit p {
    font-size: 0.95rem;
  }

  .form-button {
    width: 100%;
    text-align: center;
  }

  /* profile page */
  .profile-page main section {
    flex-direction: column;
    gap: 1.5rem;
  }

  .profile-page .biz-img-wrapper {
    min-width: 100%;
    margin-left: 0;
  }

  .profile-page #biz-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
  }

  .profile-page #biz-map {
    height: 250px;
  }

  .profile-page #biz-name {
    font-size: 1.8rem;
  }

  .directory-page .directory-card {
    flex-direction: column;
    gap: 1rem;
  }

  .directory-page .directory-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }

  .directory-page .directory-info {
    padding-left: 0;
  }

  /* profile page image */
  .profile-page .biz-img-wrapper {
    min-width: 100%;
    margin-left: 0;
  }

  .profile-page .responsive-biz-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
  }
}

/* === FIX DESKTOP LAYOUT FOR PROFILE PAGE === */
@media (min-width: 769px) {
  .profile-page main section:first-of-type {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 2.5rem;
  }

  .profile-page .biz-img-wrapper {
    flex: 1;
    max-width: 45%;
  }

  .profile-page .responsive-biz-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
  }

  .profile-page main section:first-of-type > div:last-of-type {
    flex: 1;
    min-width: 300px;
  }

  .profile-page #biz-map {
    height: 400px;
    width: 100%;
  }
}
