/* Custom CSS for Horizon B&B */

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

/* CSS Variables - Colors from the logo */
:root {
  --primary-color: #e91e63; /* Pink from logo */
  --secondary-color: #ff9800; /* Orange from logo */
  --accent-color: #3f51b5; /* Navy blue from logo */
  --gradient-primary: linear-gradient(135deg, #e91e63 0%, #ff9800 100%);
  --gradient-secondary: linear-gradient(135deg, #3f51b5 0%, #e91e63 100%);
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
  --shadow-strong: 0 8px 30px rgba(0,0,0,0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Override Bootstrap primary colors */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--gradient-primary);
  filter: brightness(1.1);
}

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

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

.badge.bg-primary {
  background: var(--gradient-primary) !important;
}

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-dark);
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
}

.lead {
  font-weight: 400;
  color: var(--text-muted);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  /* Typography mobile */
  .hero-section h1 {
    font-size: 2.5rem !important;
    text-align: center;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem !important;
    text-align: center;
  }
  
  .hero-content p {
    font-size: 1.1rem !important;
    text-align: center;
  }
  
  /* Layout mobile */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col, .col-lg-6, .col-md-6, .col-sm-6 {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 2rem;
  }
  
  /* Cards mobile */
  .card {
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .room-card {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  
  .service-card {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  /* Navigation mobile */
  .navbar-nav {
    text-align: center;
  }
  
  .nav-item-elegant {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  /* Buttons mobile */
  .btn {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .btn-group {
    width: 100%;
  }
  
  .btn-group .btn {
    width: auto;
    flex: 1;
  }
  
  /* Hero mobile */
  .hero-content {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  /* Service items */
  .service-item {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .service-icon {
    margin-bottom: 1rem !important;
    text-align: center;
  }
  
  /* WiFi section */
  .wifi-section {
    padding: 2rem 1rem !important;
    text-align: center;
  }
  
  .credential-box {
    padding: 1.5rem !important;
    text-align: center;
  }
  
  /* Info cards */
  .info-card {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .cleaning-schedule {
    padding-left: 0.5rem;
    text-align: center;
  }
  
  /* Modal mobile */
  .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .modal-content {
    text-align: center;
  }
  
  /* Hover effects reduced on mobile */
  .hover-lift:hover {
    transform: translateY(-3px);
  }
  
  .card:hover {
    transform: translateY(-3px);
  }
  
  .room-card:hover {
    transform: translateY(-3px);
  }
  
  /* Text alignment */
  .text-center-mobile {
    text-align: center !important;
  }
  
  /* Room cards mobile optimization */
  .room-card .card-body {
    text-align: center;
    padding: 1.5rem !important;
  }
  
  .room-card h4 {
    text-align: center;
    font-size: 1.5rem;
  }
  
  .room-card .room-specs {
    text-align: center;
    justify-content: center;
  }
  
  .room-card .room-specs .row {
    justify-content: center;
  }
  
  .room-card .room-specs .col-6 {
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  /* Page hero mobile */
  .page-hero {
    text-align: center;
    padding: 3rem 0 !important;
  }
  
  .page-hero h1 {
    font-size: 2.2rem !important;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .page-hero .lead {
    text-align: center;
    font-size: 1rem;
  }
  
  /* Room spotlight mobile */
  .room-spotlight .row {
    flex-direction: column;
  }
  
  .room-spotlight .col-lg-8,
  .room-spotlight .col-lg-4 {
    text-align: center;
  }
  
  .room-spotlight .room-gallery {
    margin-bottom: 2rem;
  }
  
  .room-spotlight h3 {
    text-align: center;
    font-size: 1.75rem;
  }
  
  .room-spotlight p {
    text-align: center;
  }
  
  .room-spotlight .room-specs {
    text-align: center;
    justify-content: center;
  }
  
  /* Room thumbnails mobile */
  .room-thumbnail {
    margin-bottom: 1rem;
  }
  
  .main-room-image {
    margin-bottom: 1.5rem;
  }
  
  /* Room badge mobile */
  .room-badge {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  /* Special rooms section mobile */
  .special-rooms .card {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .special-rooms .card-body {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .special-rooms h4 {
    text-align: center;
    font-size: 1.5rem;
  }
  
  /* Uniform spacing for all sections */
  section {
    padding: 3rem 0;
  }
  
  /* Image responsive mobile */
  .img-fluid {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
  }
  
  h1, h2, h3, h4, h5, h6 {
    text-align: center;
  }
  
  .lead {
    text-align: center;
  }
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--text-dark) !important;
  font-size: 1.5rem;
  text-decoration: none;
}

/* Elegant Navigation Items - Desktop */
.nav-item-elegant {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark) !important;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  position: relative;
  font-weight: 500;
}

.nav-item-elegant:hover {
  color: var(--primary-color) !important;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1), rgba(255, 152, 0, 0.1));
  transform: translateY(-2px);
}

.nav-item-elegant .nav-icon {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  transition: var(--transition);
}

.nav-item-elegant span {
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-item-elegant:hover .nav-icon {
  transform: scale(1.1);
}

/* Elegant Button */
.btn-elegant {
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.btn-elegant:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* Legacy navigation for compatibility */
.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.4) 0%, rgba(255, 152, 0, 0.2) 100%);
  z-index: -1;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

/* Page Hero */
.page-hero {
  padding: 120px 0 80px;
}

.min-vh-50 {
  min-height: 50vh;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* Custom Card Styles */
.room-card {
  transition: var(--transition);
}

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

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

.room-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

/* Service Cards */
.service-card {
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.service-icon {
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* Gallery */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-card:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-card img {
  transition: var(--transition);
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* Blog Cards */
.blog-card {
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-category {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}

/* Contact Cards */
.contact-info-card {
  transition: var(--transition);
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* Gradients */
.bg-gradient {
  background: var(--gradient-primary);
}

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

.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;
}

.bg-gradient-info {
  background: linear-gradient(135deg, #17a2b8 0%, #007bff 100%) !important;
}

.bg-gradient-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

/* Forms */
.form-control {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

.form-select {
  border-radius: var(--border-radius);
  border: 2px solid #e9ecef;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 12px 24px;
  transition: var(--transition);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Booking Engine */
.booking-engine-container {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.booking-engine-placeholder {
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Article Styles */
.article-header {
  padding-top: 120px;
}

.article-featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.article-meta {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.highlight-box {
  border-left: 4px solid var(--primary-color);
}

.cta-box {
  background: var(--gradient-primary) !important;
}

/* Cards */
.card {
  transition: var(--transition);
  border: none;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-img-top {
  transition: var(--transition);
}

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

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

/* Number badges for articles */
.number-badge {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Social Links */
.social-links a {
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-2px);
  color: var(--primary-color) !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
}

footer .social-links a:hover {
  color: var(--secondary-color) !important;
}

/* Utilities */
.rounded-4 {
  border-radius: var(--border-radius) !important;
}

.shadow-sm {
  box-shadow: var(--shadow-light) !important;
}

.shadow {
  box-shadow: var(--shadow-medium) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-strong) !important;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .page-hero {
    padding: 100px 0 60px;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .card {
    margin-bottom: 2rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .row.g-4 > .col-lg-4,
  .row.g-4 > .col-md-6 {
    margin-bottom: 1.5rem;
  }
  
  .navbar-collapse {
    background-color: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-medium);
  }
  
  .navbar-nav {
    align-items: flex-start !important;
    text-align: left;
    padding: 0;
  }
  
  /* Mobile Navigation - Stack Vertically with left alignment */
  .nav-item-elegant {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 0.25rem 0;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 8px;
  }
  
  .nav-item-elegant:hover {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    transform: none;
  }
  
  .nav-item-elegant .nav-icon {
    margin-bottom: 0;
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
  }
  
  .article-featured-image img {
    height: 250px;
  }
  
  .number-badge {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  /* Mobile Centering Improvements */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: 0;
    margin-right: 0;
  }
  
  .col-md-6, .col-lg-4, .col-lg-3, .col-lg-6 {
    margin-bottom: 2rem;
  }
  
  /* Card improvements for mobile */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Gallery mobile optimization */
  .gallery-card {
    margin-bottom: 1rem;
  }
  
  /* Service cards mobile centering */
  .service-card {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  /* Room cards mobile optimization */
  .room-card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .social-links {
    display: none !important;
  }
  
  .container {
    max-width: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000;
    --secondary-color: #000;
    --text-dark: #000;
    --text-muted: #333;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
