/* Mountain Slate & Ember - Architectural Studio Theme */

:root {
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --light-slate: #34495E;
  --dark-slate: #1A252F;
  --ember-light: #F39C12;
  --ember-dark: #D35400;
  --text-light: #ECF0F1;
  --text-dark: #2C3E50;
  --white: #FFFFFF;
  --gray-light: #BDC3C7;
  --gray-dark: #7F8C8D;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: #F5F5F5;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-slate) 100%) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar.sticky-top,
.navbar.fixed-top {
  backdrop-filter: blur(10px);
  background: rgba(44, 62, 80, 0.95) !important;
}

.navbar-brand {
  color: var(--white) !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 2px solid var(--white) !important;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
  background-color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-slate) 50%, var(--dark-slate) 100%);
  overflow: hidden;
}

.parallax-section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 37, 47, 0.9) 100%);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .display-2 {
  font-weight: 700;
  letter-spacing: 2px;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
  font-size: 1.5rem;
  animation: fadeInUp 1.2s ease-out;
  color: var(--text-light) !important;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  padding: 1rem 2.5rem !important;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-lg:hover {
  background-color: var(--ember-dark) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem;
}

.btn-outline-secondary {
  border: 2px solid var(--secondary-color) !important;
  color: var(--secondary-color) !important;
  background-color: transparent !important;
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color) !important;
}

.btn-outline-light {
  border: 2px solid var(--white) !important;
  color: var(--white) !important;
  background-color: transparent !important;
}

.btn-outline-light:hover {
  background-color: var(--white) !important;
  color: var(--primary-color) !important;
}

/* Scroll Indicator */
.scroll-indicator {
  bottom: 2rem !important;
  animation: bounce 2s infinite;
  z-index: 2;
}

.scroll-indicator .bi {
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Availability Ticker */
.availability-ticker {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--ember-light) 100%);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
  color: var(--white) !important;
  font-weight: 600;
}

.ticker-content .bi {
  color: var(--white) !important;
}

/* Cards */
.card {
  border-radius: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
  background: var(--white);
  border: none !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  background: var(--white);
}

.card-title {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-slate) 100%) !important;
  color: var(--white) !important;
  font-weight: 600;
  border: none !important;
}

/* Carousel */
.carousel {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-item {
  min-height: 500px;
  background: var(--primary-color);
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-color) !important;
  border: 2px solid var(--white) !important;
}

/* Team Cards */
.team-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  height: 400px;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(44, 62, 80, 0.95) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transition: all 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.1);
}

.team-card:hover .team-overlay {
  background: linear-gradient(to top, rgba(230, 126, 34, 0.95) 0%, rgba(44, 62, 80, 0.8) 100%);
}

.team-bio {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  color: var(--white) !important;
}

.team-card:hover .team-bio {
  max-height: 200px;
}

/* Room/Project Cards */
.room-card {
  border-radius: 15px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.room-card:hover {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.room-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.room-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.room-card:hover .room-image img {
  transform: scale(1.1);
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.bg-light {
  background-color: var(--white) !important;
}

.bg-dark {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

.view-room-btn {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-room-btn:hover {
  background-color: var(--ember-dark) !important;
  transform: translateX(5px);
}

/* Ken Burns Effect */
.ken-burns-container {
  overflow: hidden;
  height: 500px;
  border-radius: 15px;
  position: relative;
}

.ken-burns-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Amenity Cards */
.amenity-card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.amenity-card:hover {
  border-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--ember-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.amenity-card:hover .icon-wrapper {
  transform: rotate(360deg) scale(1.1);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 3rem;
  border-left: 3px solid var(--secondary-color);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-item:last-child {
  border-left-color: transparent;
}

/* Tabs and Pills */
.nav-pills .nav-link {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--gray-light);
  margin: 0.25rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav-pills .nav-link.active {
  background-color: var(--secondary-color) !important;
  color: var(--white) !important;
  border-color: var(--secondary-color);
}

.tab-content {
  padding: 2rem 0;
}

.tab-pane {
  animation: fadeIn 0.5s ease;
}

/* Forms */
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(230, 126, 34, 0.25) !important;
  background-color: var(--white) !important;
  color: var(--text-dark) !important;
}

.form-floating label {
  color: var(--gray-dark) !important;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
  color: var(--secondary-color) !important;
}

.form-check-input {
  border: 2px solid var(--gray-light);
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--secondary-color) !important;
  border-color: var(--secondary-color) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
}

.invalid-feedback {
  color: #dc3545 !important;
  font-weight: 600;
}

.form-range {
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  background: var(--secondary-color);
}

.form-range::-moz-range-thumb {
  background: var(--secondary-color);
}

/* Facility Map */
.facility-map {
  position: relative;
  min-height: 500px;
  background: var(--gray-light);
  border-radius: 15px;
  overflow: hidden;
}

.map-hotspot {
  position: absolute;
  cursor: pointer;
}

.hotspot-marker {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  border: 3px solid var(--white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}

.map-hotspot:hover .hotspot-marker {
  transform: scale(1.2);
}

.hotspot-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  padding: 0.75rem 1rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  color: var(--primary-color) !important;
  font-weight: 600;
}

.map-hotspot:hover .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-slate) 100%) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 1.25rem;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--ember-light) 100%) !important;
  color: var(--white) !important;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
}

.accordion-body {
  background: var(--white);
  color: var(--text-dark) !important;
  padding: 1.5rem;
}

/* Modal */
.modal-content {
  border-radius: 15px;
  border: none;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-slate) 100%);
  color: var(--white) !important;
  border-bottom: none;
  padding: 1.5rem;
}

.modal-title {
  color: var(--white) !important;
  font-weight: 700;
}

.btn-close,
.btn-close-white {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.btn-close:hover,
.btn-close-white:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
  background: var(--white);
  color: var(--text-dark) !important;
}

.modal-footer {
  background: #F8F9FA;
  border-top: 1px solid var(--gray-light);
  padding: 1.5rem;
}

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  padding: 1.25rem;
  font-weight: 500;
}

.alert-info {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: var(--white) !important;
}

/* Chat Button */
.position-fixed {
  z-index: 1040;
}

.position-fixed.m-4 {
  bottom: 0;
  right: 0;
}

.rounded-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--ember-light) 100%) !important;
  color: var(--white) !important;
  border: none;
  box-shadow: 0 4px 20px rgba(230, 126, 34, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.rounded-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(230, 126, 34, 0.5);
}

/* Ratio Container */
.ratio {
  border-radius: 15px;
  overflow: hidden;
}

/* Text Colors */
.text-white {
  color: var(--white) !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.7) !important;
}

.text-muted {
  color: var(--gray-dark) !important;
}

.text-dark {
  color: var(--text-dark) !important;
}

.text-decoration-none {
  text-decoration: none !important;
  color: inherit;
  transition: all 0.3s ease;
}

.text-decoration-none:hover {
  color: var(--secondary-color) !important;
}

.text-decoration-underline {
  text-decoration: underline !important;
}

/* Icons */
.bi {
  vertical-align: middle;
}

.bi-star-fill {
  color: var(--ember-light);
}

/* Shadows */
.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Sections */
section {
  padding: 5rem 0;
}

.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

/* Display Headings */
.display-2,
.display-3,
.display-4,
.display-5 {
  font-weight: 700;
  color: var(--primary-color);
}

.hero-section .display-2,
.hero-section .display-3,
.hero-section .display-4 {
  color: var(--white) !important;
}

/* Backgrounds */
.bg-light {
  background-color: #F8F9FA !important;
}

.bg-white {
  background-color: var(--white) !important;
}

.bg-dark {
  background-color: var(--primary-color) !important;
}

/* Footer Styling */
footer {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

footer a {
  color: var(--text-light) !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

footer .list-unstyled li {
  margin-bottom: 0.75rem;
}

footer h5,
footer .h5 {
  color: var(--white) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h5::after,
footer .h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover !important;
}

/* Opacity */
.opacity-25 {
  opacity: 0.25 !important;
}

/* Input Group */
.input-group {
  border-radius: 8px;
  overflow: hidden;
}

.input-group .form-control {
  border-right: none;
}

.input-group .btn {
  border-left: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(230, 126, 34, 0.7);
  }
  50% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(230, 126, 34, 0);
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translateX(0);
  }
  100% {
    transform: scale(1.2) translateX(-5%);
  }
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(44, 62, 80, 0.98);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 10px;
  }

  .hero-section .display-2 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.2rem;
  }

  section {
    padding: 3rem 0;
  }

  .carousel-item,
  .carousel-item img {
    min-height: 350px;
    height: 350px;
  }

  .team-card {
    height: 350px;
  }

  .ken-burns-container {
    height: 350px;
  }
}

@media (max-width: 767.98px) {
  .hero-section .display-2 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .card-img-top {
    height: 200px;
  }

  .room-image {
    height: 200px;
  }

  .amenity-card {
    padding: 1.5rem;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }
}

@media (max-width: 575.98px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-section {
    min-height: 80vh;
  }

  .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.95rem;
  }

  .carousel-item,
  .carousel-item img {
    min-height: 250px;
    height: 250px;
  }

  .team-card {
    height: 300px;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  .scroll-indicator,
  .position-fixed,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}