Files
TenerifeProp/public/css/components.css

536 lines
8.4 KiB
CSS

/* Navigation */
.navbar {
padding: 20px 0;
transition: all 0.4s ease;
background: transparent;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
}
.navbar.scrolled {
background: rgba(255, 255, 255, 0.98);
box-shadow: var(--shadow);
padding: 15px 0;
}
.navbar-brand {
font-family: var(--font-heading);
font-weight: 800;
font-size: 1.8rem;
color: white !important;
transition: all 0.3s ease;
}
.navbar.scrolled .navbar-brand {
color: var(--primary) !important;
}
.navbar-brand span {
color: var(--secondary);
}
.nav-link {
color: rgba(255, 255, 255, 0.9) !important;
font-weight: 500;
padding: 10px 20px !important;
transition: all 0.3s ease;
position: relative;
}
.navbar.scrolled .nav-link {
color: var(--dark) !important;
}
.nav-link:hover {
color: var(--secondary) !important;
}
.nav-link::after {
content: '';
position: absolute;
bottom: 5px;
left: 20px;
width: 0;
height: 2px;
background: var(--secondary);
transition: width 0.3s ease;
}
.nav-link:hover::after {
width: calc(100% - 40px);
}
/* Language Switcher */
.lang-switcher {
display: flex;
gap: 5px;
margin-left: 20px;
}
.lang-btn {
padding: 8px 16px;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 25px;
background: transparent;
color: white;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.3s ease;
}
.navbar.scrolled .lang-btn {
border-color: var(--primary);
color: var(--primary);
}
.lang-btn.active {
background: white;
color: var(--primary);
border-color: white;
}
.navbar.scrolled .lang-btn.active {
background: var(--primary);
color: white;
}
.lang-btn:hover {
transform: scale(1.05);
}
/* Property Card */
.property-card {
background: white;
border-radius: var(--radius-lg);
overflow: hidden;
box-shadow: var(--shadow);
transition: all 0.4s ease;
margin-bottom: 30px;
height: 100%;
display: flex;
flex-direction: column;
}
.property-card:hover {
transform: translateY(-10px);
box-shadow: var(--shadow-lg);
}
.property-image {
position: relative;
height: 250px;
overflow: hidden;
}
.property-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.property-card:hover .property-image img {
transform: scale(1.1);
}
.property-badges {
position: absolute;
top: 15px;
left: 15px;
display: flex;
gap: 8px;
}
.property-badge {
padding: 5px 15px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
}
.badge-new {
background: var(--accent);
color: white;
}
.badge-exclusive {
background: var(--secondary);
color: var(--dark);
}
.badge-agricultural {
background: var(--primary);
color: white;
}
.badge-urban {
background: var(--badge-urban);
color: white;
}
.badge-house {
background: var(--badge-house);
color: white;
}
.badge-ruins {
background: var(--badge-ruins);
color: white;
}
.property-content {
padding: 25px;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.property-type {
color: var(--primary);
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
margin-bottom: 8px;
}
.property-title {
font-size: 1.2rem;
margin-bottom: 10px;
color: var(--dark);
flex-grow: 1;
}
.property-location {
color: var(--gray);
font-size: 0.9rem;
margin-bottom: 15px;
}
.property-location i {
margin-right: 5px;
}
.property-features {
display: flex;
gap: 20px;
padding-top: 15px;
border-top: 1px solid #eee;
margin-bottom: 15px;
}
.property-feature {
display: flex;
align-items: center;
gap: 5px;
font-size: 0.85rem;
color: var(--gray);
}
.property-feature i {
color: var(--primary);
}
.property-price {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
margin-top: auto;
}
/* Footer */
footer {
background: var(--dark);
color: white;
padding: 80px 0 30px;
}
.footer-brand {
font-family: var(--font-heading);
font-size: 2rem;
font-weight: 800;
margin-bottom: 20px;
}
.footer-brand span {
color: var(--secondary);
}
.footer-about {
color: rgba(255, 255, 255, 0.7);
line-height: 1.8;
margin-bottom: 25px;
}
.footer-title {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 25px;
color: white;
}
.footer-links {
list-style: none;
padding: 0;
}
.footer-links li {
margin-bottom: 12px;
}
.footer-links a {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
transition: all 0.3s ease;
}
.footer-links a:hover {
color: var(--secondary);
padding-left: 10px;
}
.footer-contact-item {
display: flex;
align-items: center;
gap: 15px;
margin-bottom: 15px;
color: rgba(255, 255, 255, 0.7);
}
.footer-contact-item i {
color: var(--secondary);
font-size: 1.2rem;
}
.social-links {
display: flex;
gap: 15px;
margin-top: 30px;
}
.social-link {
width: 50px;
height: 50px;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 1.3rem;
transition: all 0.3s ease;
text-decoration: none;
}
.social-link:hover {
background: var(--primary);
color: white;
transform: translateY(-5px);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
margin-top: 50px;
padding-top: 30px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}
.footer-bottom p {
margin: 0;
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
}
.footer-legal {
display: flex;
gap: 25px;
}
.footer-legal a {
color: rgba(255, 255, 255, 0.5);
font-size: 0.9rem;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-legal a:hover {
color: var(--secondary);
}
/* Forms */
.form-control,
.form-select {
border: 2px solid #e9ecef;
border-radius: var(--radius-md);
padding: 12px 18px;
transition: all 0.3s ease;
width: 100%;
font-family: var(--font-primary);
}
.form-control:focus,
.form-select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 0.2rem rgba(26, 95, 74, 0.15);
outline: none;
}
.form-label {
font-weight: 600;
color: var(--dark);
margin-bottom: 8px;
display: block;
}
/* Cards */
.card {
background: white;
border-radius: var(--radius-lg);
box-shadow: var(--shadow);
border: 1px solid #eee;
overflow: hidden;
}
.card-header {
padding: 20px 25px;
border-bottom: 1px solid #eee;
font-weight: 600;
}
.card-body {
padding: 25px;
}
/* Alerts */
.alert {
padding: 15px 20px;
border-radius: var(--radius-md);
margin-bottom: 20px;
position: relative;
}
.alert-success {
background: rgba(40, 167, 69, 0.1);
border: 1px solid var(--success);
color: var(--success);
}
.alert-error {
background: rgba(239, 68, 68, 0.1);
border: 1px solid var(--danger);
color: var(--danger);
}
.alert-warning {
background: rgba(245, 158, 11, 0.1);
border: 1px solid var(--warning);
color: var(--warning);
}
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
z-index: 2000;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}
.modal.active {
opacity: 1;
visibility: visible;
}
.modal-content {
background: white;
border-radius: var(--radius-lg);
width: 90%;
max-width: 600px;
max-height: 90vh;
overflow-y: auto;
position: relative;
transform: translateY(20px);
transition: transform 0.3s ease;
}
.modal.active .modal-content {
transform: translateY(0);
}
.modal-header {
padding: 20px 25px;
border-bottom: 1px solid #eee;
display: flex;
justify-content: space-between;
align-items: center;
}
.modal-title {
font-size: 1.3rem;
font-weight: 600;
margin: 0;
}
.modal-close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: var(--gray);
transition: color 0.3s ease;
}
.modal-close:hover {
color: var(--dark);
}
.modal-body {
padding: 25px;
}
.modal-footer {
padding: 15px 25px;
border-top: 1px solid #eee;
display: flex;
justify-content: flex-end;
gap: 10px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.footer-bottom {
flex-direction: column;
text-align: center;
}
.footer-legal {
flex-direction: column;
gap: 10px;
}
.property-features {
flex-direction: column;
gap: 10px;
}
.modal-content {
width: 95%;
margin: 0 10px;
}
}