/* 
  Main Stylesheet for HotelCorporateCodeWorld.com
  Author: HotelCorporateCodeWorld Team
*/

:root {
  /* Color Variables */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --border-color: #dee2e6;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  
  /* Font Variables */
  --body-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --heading-font: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  
  /* Spacing Variables */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  
  /* Other Variables */
  --border-radius: 0.25rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--primary-color);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Button Styles */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

/* Header and Navigation */
header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 0.75rem 1rem;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-color);
  padding: 0;
}

.logo {
  height: 40px;
  width: auto;
}

.nav-link {
  color: var(--primary-color);
  font-weight: 500;
  margin: 0 0.25rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--secondary-color);
  background-color: rgba(52, 152, 219, 0.1);
}

.dropdown-menu {
  border: none;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 4rem 0;
  margin-bottom: 2rem;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  padding-right: 4rem;
  height: 3rem;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  box-shadow: var(--box-shadow);
}

.search-button {
  position: absolute;
  right: 0;
  top: 0;
  height: 3rem;
  border-radius: 0 50px 50px 0;
  padding: 0 1.5rem;
}

/* Hotel Code Tables */
.code-table {
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.code-table thead {
  background-color: var(--primary-color);
  color: #fff;
}

.code-table th {
  font-weight: 600;
}

.code-table tbody tr {
  transition: background-color 0.2s ease;
}

.code-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* Hotel Category Cards */
.hotel-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem;
}

.hotel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hotel-card-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.hotel-card-body {
  padding: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--light-color);
  color: var(--text-color);
  padding: 3rem 0 1rem;
  margin-top: 3rem;
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.2rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.2);
  color: var(--secondary-color);
}

footer ul.list-unstyled li {
  margin-bottom: 0.5rem;
}

footer hr {
  margin: 2rem 0;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-color);
  color: #fff;
  padding: 1rem 0;
  z-index: 2000;
  display: none;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 999;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  opacity: 0.7;
  border-radius: 50%;
  padding: 0;
}

#backToTop:hover {
  opacity: 1;
}

/* About Page */
.about-section {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
}

.benefits-list {
  list-style-type: none;
  padding-left: 0;
}

.benefits-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li i {
  color: var(--success-color);
  margin-right: 0.5rem;
}

/* Contact Page */
.contact-form {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

/* Blog Posts */
.blog-post {
  background-color: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.blog-post-content {
  padding: 1.5rem;
}

.blog-post-meta {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

/* Media Queries */
@media (max-width: 992px) {
  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 0.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hotel-card-img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .navbar-brand {
    max-width: 180px;
  }
  
  .logo {
    height: 30px;
  }
  
  .search-input {
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .search-button {
    height: 2.5rem;
    padding: 0 1rem;
  }
  
  .hotel-card-img {
    height: 120px;
  }
}

/* Print Styles */
@media print {
  header, footer, .d-print-none {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  a {
    text-decoration: none !important;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 90%;
    color: #666;
  }
  
  .container {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Accessibility Improvements */
:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
} 