/* 
 * Dublin City Rentals - Main Stylesheet
 * Primary Color: #123624e6 (Green)
 * Secondary Color: #ffffff (White)
 * Tertiary Color: #9D9D9D (Grey)
 * Text Color: #2d313f
 */

/* ============================================
   GLOBAL STYLES
   ============================================ */

/* Import Lato font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

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

body {
  font-family: 'Lato', sans-serif;
  color: #2d313f;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */

.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 300;
  /* font-size: 1.5rem; */
  color: #2d313f !important;
}

.navbar-brand img {
  height: 40px;
  margin-right: 0.75rem;
}

.navbar-nav .nav-link {
  color: #2d313f !important;
  font-weight: 300;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #123624e6 !important;
}

.navbar-nav .nav-link.active {
  color: #123624e6 !important;
  font-weight: 400;
}

.navbar-nav .dropdown-toggle {
  font-weight: 300 !important;
}

.dropdown-item {
  font-weight: 300 !important;
}

.navbar-toggler {
  border-color: #123624e6;
}

.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(18, 54, 36, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#weather-widget {
  font-size: 0.9rem;
  color: #123624e6;
  /* Match your primary green */
}

#weather-icon {
  font-size: 1rem;
}

#weather-temp {
  font-weight: 300 !important;
}

/* Responsive: Hide on very small screens if needed */
@media (max-width: 576px) {
  #weather-widget {
    display: none;
  }
}

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

footer {
  background: linear-gradient(135deg, #123624e6 0%, #0a2418 100%);
  color: #ffffff;
  padding: 3rem 0 1.5rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 50px;
  margin-right: 1rem;
  filter: brightness(0) invert(1);
}

.footer-logo h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: #9D9D9D;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
  color: #9D9D9D;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #9D9D9D;
}

.footer-bottom .company-info {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-bottom .company-info {
    font-size: 0.8rem;
  }
}

/* ============================================
   CAROUSEL STYLES (HOME PAGE)
   ============================================ */

.hero-carousel {
  margin-top: 0;
}

.hero-carousel .carousel-item {
  height: calc(100vh - 72px);
  /* Subtract navbar height */
}

.hero-carousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

.carousel-caption {
  background: rgba(18, 54, 36, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  bottom: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(18, 54, 36, 0.8);
  border-radius: 50%;
  padding: 1.5rem;
}

/* ============================================
   HOME PAGE CONTENT STYLES
   ============================================ */

.home-content {
  padding: 4rem 0;
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.content-text {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.content-text h2 {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.content-text p {
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============================================
   PROPERTY CARD STYLES
   ============================================ */

.property-listings {
  padding: 4rem 0;
}

.property-listings h1 {
  color: #123624e6;
  font-weight: 300;
  margin-bottom: 3rem;
  text-align: center;
}

.property-card {
  border: none;
  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;
  margin-bottom: 2rem;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.property-card .card-body {
  padding: 1.5rem;
}

.property-card .card-title {
  color: #123624e6;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.property-card .card-text {
  color: #2d313f;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.property-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d313f;
  font-size: 0.9rem;
}

.property-feature i {
  color: #123624e6;
  font-size: 1.1rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #123624e6;
  margin-bottom: 1rem;
}

.property-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #9D9D9D;
}

.btn-contact {
  background-color: #123624e6;
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  width: 100%;
}

.btn-contact:hover {
  background-color: #0a2418;
  color: #ffffff;
  transform: scale(1.05);
}

/* ============================================
   ABOUT DUBLIN PAGE STYLES
   ============================================ */

.about-dublin {
  padding: 4rem 0;
}

.about-dublin h1 {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.about-dublin-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-dublin-image {
  flex: 0 0 45%;
}

.about-dublin-image img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-dublin-text {
  flex: 1;
}

.about-dublin-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* ============================================
   DUBLIN HOUSING MARKET PAGE STYLES
   ============================================ */

.housing-market {
  padding: 4rem 0;
}

.housing-market h1 {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.housing-market .accordion {
  /* max-width: 900px; */
  margin: 0 auto;
}

.housing-market .accordion-item {
  border: 1px solid #e9ecef;
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.housing-market .accordion-button {
  background-color: #ffffff;
  color: #2d313f;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.25rem;
}

.housing-market .accordion-button:not(.collapsed) {
  background-color: #123624e6;
  color: #ffffff;
  box-shadow: none;
}

.housing-market .accordion-button:focus {
  box-shadow: none;
  border-color: #123624e6;
}

.housing-market .accordion-button::after {
  filter: brightness(0) saturate(100%);
}

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

.newsletter-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #9D9D9D;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.newsletter-date i {
  color: #123624e6;
}

.housing-market .accordion-body {
  padding: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================
   MARKET REGULATIONS PAGE STYLES
   ============================================ */

.market-regulations {
  padding: 4rem 0;
}

.market-regulations h1 {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.regulations-content {
  /* max-width: 900px; */
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.regulations-content h2 {
  color: #123624e6;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.regulations-content h2:first-of-type {
  margin-top: 0;
}

.regulations-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.regulations-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.regulations-content ul li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* ============================================
   MARKET FORCES PAGE STYLES
   ============================================ */

.market-forces {
  padding: 4rem 0;
}

.market-forces h1 {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.forces-content {
  /* max-width: 900px; */
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.forces-content h2 {
  color: #123624e6;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.forces-content h2:first-of-type {
  margin-top: 0;
}

.forces-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.forces-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.forces-content ul li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

/* ============================================
   ABOUT US PAGE STYLES
   ============================================ */

.about-us {
  padding: 4rem 0;
}

.about-us h1 {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.about-us-content {
  /* max-width: 900px; */
  margin: 0 auto;
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-us-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================================
   CONTACT US PAGE STYLES
   ============================================ */

.contact-us {
  padding: 4rem 0;
}

.contact-us h1 {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.contact-content {
  /* max-width: 700px; */
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.contact-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #123624e6 0%, #0a2418 100%);
  color: #ffffff;
  padding: 1.5rem 2.5rem;
  border-radius: 50px;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 1rem 0;
}

.contact-email:hover {
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(18, 54, 36, 0.3);
}

.contact-email i {
  font-size: 1.5rem;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet devices */
@media (max-width: 992px) {
  .hero-carousel .carousel-item {
    height: calc(100vh - 72px);
    /* Maintain full height minus navbar */
  }

  .about-dublin-content {
    flex-direction: column;
  }

  .about-dublin-image {
    flex: 0 0 100%;
    margin-bottom: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .hero-carousel .carousel-item {
    height: calc(100vh - 72px);
    /* Maintain full height minus navbar */
  }

  .carousel-caption {
    padding: 1rem;
    bottom: 1rem;
  }

  .carousel-caption h5 {
    font-size: 1.2rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .content-text {
    padding: 1.5rem;
  }

  .property-listings,
  .about-dublin,
  .housing-market,
  .market-regulations,
  .market-forces,
  .about-us,
  .contact-us {
    padding: 2rem 0;
  }

  .regulations-content,
  .forces-content,
  .about-us-content {
    padding: 1.5rem;
  }

  .contact-content {
    padding: 2rem 1.5rem;
  }

  .contact-email {
    font-size: 1.1rem;
    padding: 1.25rem 2rem;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .navbar-brand img {
    height: 35px;
  }

  .footer-logo img {
    height: 40px;
  }

  .footer-logo h3 {
    font-size: 1.4rem;
  }
}

/* Small mobile devices */
@media (max-width: 576px) {
  .hero-carousel .carousel-item {
    height: calc(100vh - 72px);
    /* Maintain full height minus navbar */
  }

  .property-features {
    flex-direction: column;
    gap: 0.75rem;
  }

  .about-dublin-text p,
  .regulations-content p,
  .forces-content p {
    text-align: left;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.section-title {
  color: #123624e6;
  font-weight: 700;
  margin-bottom: 2rem;
}

.text-primary-green {
  color: #123624e6 !important;
}

.bg-primary-green {
  background-color: #123624e6 !important;
}

.text-grey {
  color: #9D9D9D !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}


/* ============================================
   SCROLL TO TOP BUTTON STYLES
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #123624e6;
  /* Primary green background */
  color: #ffffff;
  /* White arrow */
  border: 2px solid #9D9D9D;
  /* Grey border */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  /* Hidden by default */
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Subtle pulsating animation */
@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.scroll-to-top:hover {
  animation: pulsate 1.5s infinite;
  /* Subtle pulsate on hover */
}

.scroll-to-top:active {
  transform: scale(0.95);
  /* Slight shrink on click */
}


/* Pagination Styles */
.pagination {
  margin-top: 2rem;
}

.page-link {
  color: #123624e6;
}

.page-item.active .page-link {
  background-color: #123624e6;
  border-color: #123624e6;
}

.page-link:hover {
  color: #0a2418;
}

/* Cookie Banner Styles */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #123624e6;
  color: #ffffff;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner-content p {
  margin: 0;
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .cookie-banner-content {
    flex-direction: column;
    text-align: center;
  }
}