/* ====================================
   GLOBAL STYLES - Nufarul Plaza
   Common CSS classes used across all pages
   ==================================== */

/* ========== UTILITY CLASSES ========== */

.main-page {
  font-family: "Caudex", serif;
  background-color: #e5decc;
}

/* Color Classes */
.bg-azure {
  background-color: #1d3f47;
}

.text-azure {
  color: #1d3f47;
}

.bg-gray-azure {
  background-color: #557178;
}

.bg-bej {
  background-color: #e5decc;
}

.text-bej {
  color: #e5decc;
}

.bg-green {
  background-color: #a1c570;
}

.text-green {
  color: #a1c570;
}

/* ========== COMMON ELEMENTS ========== */

.logo-holder {
  width: 20%;
  border-radius: 10px;
  padding: 10px;
}

.icon-holder {
  height: 50px;
  width: 50px;
  border-radius: 10px;
}

.icon-holder i {
  font-size: 24px;
  color: #e5decc;
}

.penthaus-image {
  height: 500px;
}

@media (max-width: 768px) {
  .penthaus-image {
    height: 300px;
  }
}

/* ========== GO TO TOP BUTTON ========== */

.go_top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #1d3f47;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 4px 15px rgba(29, 63, 71, 0.3);
  z-index: 999;
}

.go_top:hover {
  background-color: #a1c570;
  transform: translateY(10px);
  box-shadow: 0 6px 20px rgba(161, 197, 112, 0.4);
}

.go_top i {
  font-size: 24px;
  color: #e5decc;
}

@media (max-width: 768px) {
  .go_top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .go_top i {
    font-size: 20px;
  }
}

/* ========== SCROLL DOWN ANIMATION ========== */

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-down i {
  font-size: 40px;
  color: #e5decc;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-10px);
  }

  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (max-width: 768px) {
  .scroll-down {
    bottom: 20px;
  }

  .scroll-down i {
    font-size: 30px;
  }
}

/* ========== HERO TEXT ========== */

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 1200px;
}

.hero-text h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  color: #e5decc;
  font-weight: 700;
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-text {
    width: 95%;
  }
}

/* ========== BUILDING FLOOR STYLES ========== */

.building-floor-wrapper {
  position: relative;
  overflow: hidden;
}

.building-floor {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.building-floor:hover {
  transform: scale(1.02);
}

.floor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 63, 71, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.building-floor-wrapper:hover .floor-overlay {
  opacity: 1;
}

.floor-overlay h3 {
  color: #e5decc;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========== HEADER & NAVIGATION ========== */

header {
  transition: all 0.3s ease;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  transition: all 0.3s ease;
  padding: 8px 15px !important;
}

.navbar-nav .nav-link:hover {
  opacity: 0.8;
}

.navbar-toggler .toggle-bar {
  width: 25px;
  height: 3px;
  display: block;
  margin: 4px 0;
  transition: 0.3s;
  background-color: #e5decc;
}

.navbar-toggler .toggle-wrap span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #e5decc;
  margin: 4px 0;
}

.sub_menu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sub_menu ul li a:hover {
  opacity: 0.8;
  padding-left: 20px !important;
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .navbar-brand img {
    height: 50px !important;
  }

  .navbar-collapse {
    background-color: #1d3f47;
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
  }

  .sub_menu {
    position: static !important;
    box-shadow: none;
    margin-top: 10px;
    border-radius: 5px;
    padding: 10px;
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  .sub_menu ul {
    width: 100%;
    padding: 0 !important;
  }

  .sub_menu ul li {
    width: 100%;
  }

  .sub_menu ul li a {
    white-space: normal !important;
    word-wrap: break-word;
  }

  .navbar-nav .nav-item {
    margin: 5px 0;
  }
}

/* ========== HERO SECTIONS ========== */

.catalog-hero h1,
.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.catalog-hero p,
.contact-hero p {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
}

/* ========== CONTACT ELEMENTS ========== */

.contact_tag {
  display: inline-flex;
  align-items: center;
  background: rgba(29, 63, 71, 0.08);
  color: #1d3f47;
  padding: 8px 14px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact_tag i {
  margin-right: 8px;
  color: #1d3f47;
}

.contact-divider {
  height: 2px;
  width: 60px;
  background: #a1c570;
  border-radius: 2px;
}

/* ========== APARTMENT CARDS ========== */

.apartment-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 30px;
  position: relative;
}

.apartment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.apartment-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apartment-card-body {
  padding: 20px;
}

.apartment-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d3f47;
  margin-bottom: 10px;
}

.apartment-rooms {
  color: #a1c570;
  font-weight: 600;
  margin-bottom: 15px;
}

.apartment-details {
  font-size: 0.9rem;
  color: #557178;
  line-height: 1.8;
}

/* ========== APARTMENT MODAL ========== */

.apartment-detail-modal .modal-dialog {
  max-width: 1200px;
}

.apartment-detail-modal .modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}

.apartment-detail-modal .modal-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  padding: 20px;
  background: transparent;
}

.apartment-detail-modal .modal-header .close {
  font-size: 2.5rem;
  font-weight: 300;
  color: #1d3f47;
  opacity: 0.8;
  text-shadow: none;
  padding: 0;
  margin: 0;
}

.apartment-detail-modal .modal-header .close:hover {
  opacity: 1;
  color: #a1c570;
}

.apartment-detail-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.apartment-image-wrapper {
  padding: 40px;
  background: white;
}

@media (max-width: 991px) {
  .apartment-image-wrapper {
    padding: 30px 25px;
  }
}

.apartment-info-section {
  padding: 40px 35px;
}

@media (max-width: 991px) {
  .apartment-info-section {
    padding: 30px 25px;
  }
}

.apartment-info-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1d3f47;
  margin-bottom: 20px;
}

.apartment-info-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #e5decc;
}

.apartment-info-item:last-child {
  border-bottom: none;
}

.apartment-info-label {
  font-weight: 600;
  color: #557178;
}

.apartment-info-value {
  font-weight: 700;
  color: #1d3f47;
}

.apartment-additional-info {
  margin-top: 30px;
  padding: 20px;
  background: rgba(161, 197, 112, 0.15);
  border-radius: 10px;
  border-left: 4px solid #a1c570;
}

.apartment-additional-info h4 {
  color: #1d3f47;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.apartment-additional-info p {
  color: #557178;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.apartment-contact-btn {
  display: block;
  width: 100%;
  margin-top: 30px;
  padding: 15px 30px;
  background-color: #a1c570;
  color: white;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(161, 197, 112, 0.3);
}

.apartment-contact-btn:hover {
  background-color: #1d3f47;
  color: #e5decc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(29, 63, 71, 0.4);
  text-decoration: none;
}

.apartment-contact-btn i {
  margin-right: 8px;
}

.special-offer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #1d3f47;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(29, 63, 71, 0.4);
  z-index: 10;
}

/* ========== NEWSLETTER SECTION ========== */

.newsletter_section {
  background-color: #e5decc;
}

.newsletter_box {
  background-color: #a1c570;
  border-radius: 14px;
  padding: 30px;
}

.newsletter_box h2,
.newsletter_box p {
  color: #1d3f47;
}

.newsletter_box .form-control {
  border-radius: 10px;
}

.newsletter_box .btn {
  background: #1d3f47;
  color: #e5decc;
  border-radius: 10px;
}

/* ========== SECTION TITLES ========== */

.section_title h2 {
  color: #1d3f47;
}

.section_title p {
  color: #1d3f47;
}
